summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2012-02-10 21:07:28 +0000
committerDavide Pesavento <pesa@gentoo.org>2012-02-10 21:07:28 +0000
commitaac13b9d535e7f7e8b8385fd4c346028c2f228ac (patch)
treea9851fd8e5d70f1675af44418b65a21a7e029851 /app-pda/libplist
parentInitial import. (diff)
downloadgentoo-2-aac13b9d535e7f7e8b8385fd4c346028c2f228ac.tar.gz
gentoo-2-aac13b9d535e7f7e8b8385fd4c346028c2f228ac.tar.bz2
gentoo-2-aac13b9d535e7f7e8b8385fd4c346028c2f228ac.zip
Version bump (bug #402985). Implement src_test(). Take maintainership.
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
Diffstat (limited to 'app-pda/libplist')
-rw-r--r--app-pda/libplist/ChangeLog10
-rw-r--r--app-pda/libplist/libplist-1.8.ebuild65
-rw-r--r--app-pda/libplist/metadata.xml7
3 files changed, 78 insertions, 4 deletions
diff --git a/app-pda/libplist/ChangeLog b/app-pda/libplist/ChangeLog
index 9b65e3ee9306..ae26ddc22ef7 100644
--- a/app-pda/libplist/ChangeLog
+++ b/app-pda/libplist/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-pda/libplist
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/libplist/ChangeLog,v 1.17 2011/11/06 18:00:09 ssuominen Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libplist/ChangeLog,v 1.18 2012/02/10 21:07:28 pesa Exp $
+
+*libplist-1.8 (10 Feb 2012)
+
+ 10 Feb 2012; Davide Pesavento <pesa@gentoo.org> +libplist-1.8.ebuild,
+ metadata.xml:
+ Version bump (bug #402985). Implement src_test(). Take maintainership.
06 Nov 2011; Samuli Suominen <ssuominen@gentoo.org> -libplist-1.3.ebuild:
old
diff --git a/app-pda/libplist/libplist-1.8.ebuild b/app-pda/libplist/libplist-1.8.ebuild
new file mode 100644
index 000000000000..118e09c69202
--- /dev/null
+++ b/app-pda/libplist/libplist-1.8.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libplist/libplist-1.8.ebuild,v 1.1 2012/02/10 21:07:28 pesa Exp $
+
+EAPI=4
+
+inherit cmake-utils python
+
+DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
+HOMEPAGE="http://www.libimobiledevice.org/"
+SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="cython python"
+
+RDEPEND="dev-libs/libxml2
+ cython? ( =dev-lang/python-2* )
+ python? ( =dev-lang/python-2* )
+"
+DEPEND="${RDEPEND}
+ cython? ( dev-python/cython )
+ python? ( dev-lang/swig )
+"
+
+DOCS=(AUTHORS NEWS README)
+
+pkg_setup() {
+ if use cython || use python; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ sed -i -e 's:-Werror::' swig/CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_SKIP_RPATH=ON
+ $(cmake-utils_use_enable cython)
+ $(cmake-utils_use_enable python SWIG)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${CMAKE_BUILD_DIR}"
+
+ local testfile
+ for testfile in "${S}"/test/data/*; do
+ LD_LIBRARY_PATH=src ./test/plist_test "${testfile}" || die
+ done
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize plist
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup plist
+}
diff --git a/app-pda/libplist/metadata.xml b/app-pda/libplist/metadata.xml
index 0bef3c15362f..99e070d1af48 100644
--- a/app-pda/libplist/metadata.xml
+++ b/app-pda/libplist/metadata.xml
@@ -3,8 +3,11 @@
<pkgmetadata>
<herd>pda</herd>
<maintainer>
- <email>chainsaw@gentoo.org</email>
- <name>Tony Vroon</name>
+ <email>pesa@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="cython">Build cython-based python bindings</flag>
+ <flag name="python">Build swig-based python bindings</flag>
+ </use>
</pkgmetadata>