Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2013 00:17:21 +0000 (UTC)
From:      Alberto Villa <avilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317562 - in head: . devel devel/libplist devel/libplist/files devel/py-libplist devel/py-libplist/files
Message-ID:  <201305070017.r470HLHk033405@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avilla
Date: Tue May  7 00:17:21 2013
New Revision: 317562
URL: http://svnweb.freebsd.org/changeset/ports/317562

Log:
  - Update libplist to 1.10.
  - Split Python bindings from the main port, and put them into
    devel/py-libplist.

Added:
  head/devel/py-libplist/
  head/devel/py-libplist/Makefile   (contents, props changed)
  head/devel/py-libplist/files/
  head/devel/py-libplist/files/CMakeLists.txt   (contents, props changed)
  head/devel/py-libplist/pkg-plist   (contents, props changed)
Deleted:
  head/devel/libplist/files/
Modified:
  head/UPDATING
  head/devel/Makefile
  head/devel/libplist/Makefile
  head/devel/libplist/distinfo   (contents, props changed)
  head/devel/libplist/pkg-descr   (contents, props changed)
  head/devel/libplist/pkg-plist   (contents, props changed)

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Mon May  6 23:01:58 2013	(r317561)
+++ head/UPDATING	Tue May  7 00:17:21 2013	(r317562)
@@ -5,6 +5,13 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20130507:
+  AFFECTS: users of devel/libplist
+  AUTHOR: avilla@FreeBSD.org
+
+  libplist Python bindings were split from the main port. To get them you
+  need to install devel/py-libplist.
+
 20130506:
   AFFECTS: users of TeX
   AUTHOR: hrs@FreeBSD.org
@@ -49,7 +56,7 @@ you update your ports collection, before
 
   * DVI ware
    - print/tex-xdvik: XDvi
- 
+
 20130503:
   AFFECTS: users of security/libgcrypt and any port that depends on it
   AUTHOR: ehaupt@FreeBSD.org
@@ -61,7 +68,7 @@ you update your ports collection, before
   # portmaster -r libgcrypt
 
   or
-  
+
   # portupgrade -rf libgcrypt
 
   Alternatively, you may install sysutils/bsdadminscripts, run pkg_libchk and

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon May  6 23:01:58 2013	(r317561)
+++ head/devel/Makefile	Tue May  7 00:17:21 2013	(r317562)
@@ -3538,6 +3538,7 @@
     SUBDIR += py-kss-core
     SUBDIR += py-levenshtein
     SUBDIR += py-liblarch
+    SUBDIR += py-libplist
     SUBDIR += py-ll-core
     SUBDIR += py-lock_file
     SUBDIR += py-lockfile

Modified: head/devel/libplist/Makefile
==============================================================================
--- head/devel/libplist/Makefile	Mon May  6 23:01:58 2013	(r317561)
+++ head/devel/libplist/Makefile	Tue May  7 00:17:21 2013	(r317562)
@@ -1,63 +1,47 @@
 # $FreeBSD$
 
 PORTNAME=	libplist
-PORTVERSION=	1.8
-CATEGORIES=	devel
+PORTVERSION=	1.10
+PORTREVISION?=	0
+CATEGORIES?=	devel
 MASTER_SITES=	http://www.libimobiledevice.org/downloads/
 
-MAINTAINER=	avilla@FreeBSD.org
-COMMENT=	Library to handle Apple Property List format
+MAINTAINER?=	avilla@FreeBSD.org
+COMMENT?=	Library to handle Apple Property List format
 
-LICENSE=	LGPL21
+LICENSE?=	LGPL21
+
+SLAVE_PORT?=	no
 
-USE_GNOME=	libxml2
-# Unlisted dependency.
 USE_BZIP2=	yes
-USES=		cmake iconv
-# Required for iconv headers.
-CFLAGS+=	-I${LOCALBASE}/include
+USES=		cmake pkgconfig
+
+.if ${SLAVE_PORT} == "no"
+
+USE_GNOME=	libxml2
+CMAKE_ARGS=	-DENABLE_CYTHON:BOOL=False \
+		-DENABLE_SWIG:BOOL=False
 MAKE_JOBS_UNSAFE=	yes
 USE_LDCONFIG=	${LOCALBASE}/lib
 
 PORTDOCS=	AUTHORS NEWS README
 
-OPTIONS_DEFINE=	CYTHON SWIG
-
-CYTHON_DESC=	Cython Python bindings
-SWIG_DESC=	Swig Python bindings
-
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MCYTHON}
-BUILD_DEPENDS+=	cython:${PORTSDIR}/lang/cython
-USE_PYTHON=	yes
-CMAKE_ARGS+=	-DENABLE_CYTHON:BOOL=On
-PLIST_SUB+=	CYTHON=""
-.else
-CMAKE_ARGS+=	-DENABLE_CYTHON:BOOL=Off
-PLIST_SUB+=	CYTHON="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSWIG}
-BUILD_DEPENDS+=	swig:${PORTSDIR}/devel/swig13
-USE_PYTHON=	yes
-CMAKE_ARGS+=	-DENABLE_SWIG:BOOL=On
-PLIST_SUB+=	SWIG=""
-.else
-CMAKE_ARGS+=	-DENABLE_SWIG:BOOL=Off
-PLIST_SUB+=	SWIG="@comment "
-.endif
-
-pre-configure:
-	${REINPLACE_CMD} -e 's:$${CMAKE_INSTALL_LIBDIR}/pkgconfig:libdata/pkgconfig:' \
+post-patch:
+# Required for iconv headers (included by libxml2). Do not add to
+# CFLAGS as it may break updates from old versions.
+	@${REINPLACE_CMD} -e 's,$${LIBXML2_INCLUDE_DIR},$${LIBXML2_INCLUDE_DIR} ${LOCALBASE}/include,' \
+		${WRKSRC}/src/CMakeLists.txt
+	@${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_LIBDIR}/pkgconfig,libdata/pkgconfig,' \
 		${WRKSRC}/CMakeLists.txt
 
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
+.endif # ${SLAVE_PORT} == "no"
+
 .include <bsd.port.mk>

Modified: head/devel/libplist/distinfo
==============================================================================
--- head/devel/libplist/distinfo	Mon May  6 23:01:58 2013	(r317561)
+++ head/devel/libplist/distinfo	Tue May  7 00:17:21 2013	(r317562)
@@ -1,2 +1,2 @@
-SHA256 (libplist-1.8.tar.bz2) = a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec
-SIZE (libplist-1.8.tar.bz2) = 81278
+SHA256 (libplist-1.10.tar.bz2) = f44c52a0f8065d41d44772a7484f93bc5e7da21a8f4a9ad3f38a36b827eeff0b
+SIZE (libplist-1.10.tar.bz2) = 82519

Modified: head/devel/libplist/pkg-descr
==============================================================================
--- head/devel/libplist/pkg-descr	Mon May  6 23:01:58 2013	(r317561)
+++ head/devel/libplist/pkg-descr	Tue May  7 00:17:21 2013	(r317562)
@@ -1,11 +1,14 @@
-libimobiledevice is a software library that talks the protocols to
-support iPhone, iPod Touch and iPad devices on Linux. Unlike other
-projects, it does not depend on using any existing proprietary
-libraries and does not require jailbreaking. It allows other software
-to easily access the device's filesystem, retrieve information about
-the device and its internals, backup/restore the device, manage
-SpringBoard icons, manage installed applications, retrieve
-addressbook/calendars/notes and bookmarks and synchronize music and
-video to the device.
+libimobiledevice is a cross-platform software library that talks the
+protocols to support iPhone, iPod Touch, iPad and Apple TV devices.
+Unlike other projects, it does not depend on using any existing
+proprietary libraries and does not require jailbreaking. It allows
+other software to easily access the device's filesystem, retrieve
+information about the device and its internals, backup/restore the
+device, manage SpringBoard icons, manage installed applications,
+retrieve addressbook/calendars/notes and bookmarks and synchronize
+music and video to the device.
+
+This port installs the library required to handle Apple Binary and XML
+Property Lists.
 
 WWW: http://www.libimobiledevice.org

Modified: head/devel/libplist/pkg-plist
==============================================================================
--- head/devel/libplist/pkg-plist	Mon May  6 23:01:58 2013	(r317561)
+++ head/devel/libplist/pkg-plist	Tue May  7 00:17:21 2013	(r317562)
@@ -1,32 +1,25 @@
-bin/plutil
-bin/plutil-1.8
+bin/plistutil
+bin/plistutil-1.10
 include/plist/Array.h
 include/plist/Boolean.h
 include/plist/Data.h
 include/plist/Date.h
 include/plist/Dictionary.h
 include/plist/Integer.h
+include/plist/Key.h
 include/plist/Node.h
 include/plist/Real.h
 include/plist/String.h
 include/plist/Structure.h
-%%CYTHON%%include/plist/cython/plist.pxd
+include/plist/Uid.h
 include/plist/plist++.h
 include/plist/plist.h
-%%SWIG%%include/plist/swig/plist.i
 lib/libplist++.so
 lib/libplist++.so.1
-lib/libplist++.so.1.1.8
+lib/libplist++.so.1.1.10
 lib/libplist.so
 lib/libplist.so.1
-lib/libplist.so.1.1.8
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/__init__.py
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/_plist.so
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/plist.py
-%%CYTHON%%%%PYTHON_SITELIBDIR%%/plist.so
+lib/libplist.so.1.1.10
 libdata/pkgconfig/libplist++.pc
 libdata/pkgconfig/libplist.pc
-%%SWIG%%@dirrm %%PYTHON_SITELIBDIR%%/plist
-%%SWIG%%@dirrm include/plist/swig
-%%CYTHON%%@dirrm include/plist/cython
 @dirrm include/plist

Added: head/devel/py-libplist/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libplist/Makefile	Tue May  7 00:17:21 2013	(r317562)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTREVISION=	0
+CATEGORIES=	devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	avilla@FreeBSD.org
+COMMENT=	Python bindings for libplist
+
+LIB_DEPENDS=	plist:${PORTSDIR}/${MASTER_PORT}
+BUILD_DEPENDS=	cython:${PORTSDIR}/lang/cython \
+		swig2.0:${PORTSDIR}/devel/swig20
+
+USE_PYTHON=	yes
+SLAVE_PORT=	yes
+MASTERDIR=	${.CURDIR:H:H}/devel/libplist
+# Required to reference installed libplist.
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_JOBS_SAFE=	yes
+
+PLIST=		${.CURDIR}/pkg-plist
+FILESDIR=	${.CURDIR}/files
+
+post-patch:
+	@${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}
+	@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
+		${WRKSRC}/CMakeLists.txt
+
+.include "${MASTERDIR}/Makefile"

Added: head/devel/py-libplist/files/CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libplist/files/CMakeLists.txt	Tue May  7 00:17:21 2013	(r317562)
@@ -0,0 +1,14 @@
+set(CMAKE_MODULE_PATH
+    ${CMAKE_SOURCE_DIR}/cmake
+    ${CMAKE_SOURCE_DIR}/cmake/modules)
+
+# Required by SWIG.
+include_directories(/usr/local/include)
+
+find_package(Cython REQUIRED)
+find_package(SWIG REQUIRED)
+find_package(PythonInterp REQUIRED)
+find_package(PythonLibs REQUIRED)
+
+add_subdirectory(cython)
+add_subdirectory(swig)

Added: head/devel/py-libplist/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libplist/pkg-plist	Tue May  7 00:17:21 2013	(r317562)
@@ -0,0 +1,9 @@
+include/plist/cython/plist.pxd
+include/plist/swig/plist.i
+%%PYTHON_SITELIBDIR%%/plist.so
+%%PYTHON_SITELIBDIR%%/plist/__init__.py
+%%PYTHON_SITELIBDIR%%/plist/_plist.so
+%%PYTHON_SITELIBDIR%%/plist/plist.py
+@dirrm %%PYTHON_SITELIBDIR%%/plist
+@dirrm include/plist/swig
+@dirrm include/plist/cython



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305070017.r470HLHk033405>