Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-pda/libplist/
Date: Mon, 21 Dec 2015 15:43:57
Message-Id: 1450712608.4826b789dafc0839fa08e45c7ff6411695e2afbd.axs@gentoo
1 commit: 4826b789dafc0839fa08e45c7ff6411695e2afbd
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 15:24:47 2015 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 15:43:28 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4826b789
7
8 app-pda/libplist: version bumps, fix multi-python builds
9
10 Reworked the ebuild so that it will properly build for multiple python
11 implementations. Committed 1.11-r2 for immediate stablereq, and bumped to latest
12 upstream 1.12
13
14 Package-Manager: portage-2.2.24
15
16 app-pda/libplist/Manifest | 1 +
17 app-pda/libplist/libplist-1.11-r2.ebuild | 79 ++++++++++++++++++++++++++++++++
18 app-pda/libplist/libplist-1.12.ebuild | 79 ++++++++++++++++++++++++++++++++
19 3 files changed, 159 insertions(+)
20
21 diff --git a/app-pda/libplist/Manifest b/app-pda/libplist/Manifest
22 index ca10a4f..020ea78 100644
23 --- a/app-pda/libplist/Manifest
24 +++ b/app-pda/libplist/Manifest
25 @@ -1 +1,2 @@
26 DIST libplist-1.11.tar.bz2 355365 SHA256 28e1518eeea054f4eec9a1c93d9575d56193b290c53c1b753773a5e0add95235 SHA512 1c415670877c7091ded541dc36a6bc91132f714a0d3590090ead40ed972e0e076285441d3d219827cc425bc41fcbc101825e937620b7b4f2c1afe4bef8487fa2 WHIRLPOOL a2c74d3454b80696ab45922fe410833912554588d9ed5c177cbed1865bd98099b29a20ab6cf14a0b7c98de59d082fd15392915a94f33d27b16109300a0de2e4c
27 +DIST libplist-1.12.tar.bz2 384321 SHA256 0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be SHA512 8af40d8f457ca9a8a9061e9429698c696200714cc05dcbe981e900106c52cd5222edb9dd8d8976bccd0c8997508ed14fb2e10f0ed29383f2ad4f7c5eb7eec0b3 WHIRLPOOL 7d3c4f7822683018b5b0e794d509b9cf5a703605ed772df849ad9ebba6e8191f2eb629444c07d2dcb265520d24c94f13287f200fec34779c9e6fe029536183a7
28
29 diff --git a/app-pda/libplist/libplist-1.11-r2.ebuild b/app-pda/libplist/libplist-1.11-r2.ebuild
30 new file mode 100644
31 index 0000000..2f5331b
32 --- /dev/null
33 +++ b/app-pda/libplist/libplist-1.11-r2.ebuild
34 @@ -0,0 +1,79 @@
35 +# Copyright 1999-2015 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
41 +inherit eutils python-r1
42 +
43 +DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
44 +HOMEPAGE="http://www.libimobiledevice.org/"
45 +SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
46 +
47 +LICENSE="GPL-2 LGPL-2.1"
48 +SLOT="0/2" # based on SONAME of libplist.so
49 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd"
50 +IUSE="python static-libs"
51 +
52 +RDEPEND=">=dev-libs/libxml2-2.7.8
53 + python? ( ${PYTHON_DEPS} )"
54 +DEPEND="${RDEPEND}
55 + virtual/pkgconfig
56 + python? ( >=dev-python/cython-0.17[${PYTHON_USEDEP}] )"
57 +
58 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
59 +
60 +DOCS=( AUTHORS NEWS README )
61 +
62 +RESTRICT="test" # TODO: src_test() was dropped from 1.10 (cmake) -> 1.11 (autotools)
63 +
64 +BUILD_DIR="${S}_build"
65 +
66 +src_configure() {
67 + local ECONF_SOURCE=${S}
68 + local myeconfargs=( $(use_enable static-libs static) )
69 +
70 + do_configure() {
71 + mkdir -p "${BUILD_DIR}" || die
72 + pushd "${BUILD_DIR}" >/dev/null || die
73 + econf "${myeconfargs[@]}" "${@}"
74 + popd >/dev/null || die
75 + }
76 +
77 + do_configure --without-cython
78 + use python && python_foreach_impl do_configure
79 +}
80 +
81 +src_compile() {
82 + python_compile() {
83 + emake -C "${BUILD_DIR}"/cython -j1 \
84 + VPATH="${S}/cython:${native_builddir}/cython" \
85 + plist_la_LIBADD="${native_builddir}/src/libplist.la"
86 + }
87 +
88 + local native_builddir=${BUILD_DIR}
89 + pushd "${BUILD_DIR}" >/dev/null || die
90 + emake -j1
91 + use python && python_foreach_impl python_compile
92 + popd >/dev/null || die
93 +}
94 +
95 +src_install() {
96 + python_install() {
97 + emake -C "${BUILD_DIR}/cython" -j1 \
98 + VPATH="${S}/cython:${native_builddir}/cython" \
99 + DESTDIR="${D}" install
100 + }
101 +
102 + local native_builddir=${BUILD_DIR}
103 + pushd "${BUILD_DIR}" >/dev/null || die
104 + emake -j1 DESTDIR="${D}" install
105 + use python && python_foreach_impl python_install
106 + popd >/dev/null || die
107 +
108 + if use python ; then
109 + insinto /usr/include/plist/cython
110 + doins cython/plist.pxd
111 + fi
112 + prune_libtool_files --all
113 +}
114
115 diff --git a/app-pda/libplist/libplist-1.12.ebuild b/app-pda/libplist/libplist-1.12.ebuild
116 new file mode 100644
117 index 0000000..f674ed0
118 --- /dev/null
119 +++ b/app-pda/libplist/libplist-1.12.ebuild
120 @@ -0,0 +1,79 @@
121 +# Copyright 1999-2015 Gentoo Foundation
122 +# Distributed under the terms of the GNU General Public License v2
123 +# $Id$
124 +
125 +EAPI=5
126 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
127 +inherit eutils python-r1
128 +
129 +DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
130 +HOMEPAGE="http://www.libimobiledevice.org/"
131 +SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
132 +
133 +LICENSE="GPL-2 LGPL-2.1"
134 +SLOT="0/3" # based on SONAME of libplist.so
135 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd"
136 +IUSE="python static-libs"
137 +
138 +RDEPEND=">=dev-libs/libxml2-2.7.8
139 + python? ( ${PYTHON_DEPS} )"
140 +DEPEND="${RDEPEND}
141 + virtual/pkgconfig
142 + python? ( >=dev-python/cython-0.17[${PYTHON_USEDEP}] )"
143 +
144 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
145 +
146 +DOCS=( AUTHORS NEWS README )
147 +
148 +RESTRICT="test" # TODO: src_test() was dropped from 1.10 (cmake) -> 1.11 (autotools)
149 +
150 +BUILD_DIR="${S}_build"
151 +
152 +src_configure() {
153 + local ECONF_SOURCE=${S}
154 + local myeconfargs=( $(use_enable static-libs static) )
155 +
156 + do_configure() {
157 + mkdir -p "${BUILD_DIR}" || die
158 + pushd "${BUILD_DIR}" >/dev/null || die
159 + econf "${myeconfargs[@]}" "${@}"
160 + popd >/dev/null || die
161 + }
162 +
163 + do_configure --without-cython
164 + use python && python_foreach_impl do_configure
165 +}
166 +
167 +src_compile() {
168 + python_compile() {
169 + emake -C "${BUILD_DIR}"/cython -j1 \
170 + VPATH="${S}/cython:${native_builddir}/cython" \
171 + plist_la_LIBADD="${native_builddir}/src/libplist.la"
172 + }
173 +
174 + local native_builddir=${BUILD_DIR}
175 + pushd "${BUILD_DIR}" >/dev/null || die
176 + emake -j1
177 + use python && python_foreach_impl python_compile
178 + popd >/dev/null || die
179 +}
180 +
181 +src_install() {
182 + python_install() {
183 + emake -C "${BUILD_DIR}/cython" -j1 \
184 + VPATH="${S}/cython:${native_builddir}/cython" \
185 + DESTDIR="${D}" install
186 + }
187 +
188 + local native_builddir=${BUILD_DIR}
189 + pushd "${BUILD_DIR}" >/dev/null || die
190 + emake -j1 DESTDIR="${D}" install
191 + use python && python_foreach_impl python_install
192 + popd >/dev/null || die
193 +
194 + if use python ; then
195 + insinto /usr/include/plist/cython
196 + doins cython/plist.pxd
197 + fi
198 + prune_libtool_files --all
199 +}