1 |
commit: f96ecebd8c52627632dedd94fa3a05133cbe473a |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 21 15:42:55 2015 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 21 15:43:33 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f96ecebd |
7 |
|
8 |
app-pda/libimobiledevice: version bump, fix multi-python builds |
9 |
|
10 |
Reworked the ebuild so that it will properly build for multiple python |
11 |
implementations. Committed 1.1.6-r1 for immediate stablereq, and bumped to latest |
12 |
upstream 1.2.0 |
13 |
|
14 |
Package-Manager: portage-2.2.24 |
15 |
|
16 |
app-pda/libimobiledevice/Manifest | 1 + |
17 |
.../libimobiledevice-1.1.6-r1.ebuild | 91 ++++++++++++++++++++++ |
18 |
.../libimobiledevice/libimobiledevice-1.2.0.ebuild | 91 ++++++++++++++++++++++ |
19 |
3 files changed, 183 insertions(+) |
20 |
|
21 |
diff --git a/app-pda/libimobiledevice/Manifest b/app-pda/libimobiledevice/Manifest |
22 |
index 29dd46e..6441fa7 100644 |
23 |
--- a/app-pda/libimobiledevice/Manifest |
24 |
+++ b/app-pda/libimobiledevice/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST libimobiledevice-1.1.6.tar.bz2 619429 SHA256 1fcd56489a27181617507b1d8aaf122f66d9860c0fe5af4c78f9e0ed129e33e0 SHA512 ffc741eba65e73890ff50c906520b02189169ca92e95bcd3c8805caa1b1b44e4b1eaddad438c10fdbc112a867cdcfbe6a3dd667be1c639ad5a72ce621ee41a4f WHIRLPOOL 412c6f7523cd17178f639f7c3a8baa89857eff9c85d5e009bcb991591ca1304b6e4f80c2644289105831ee74d8848bee24708b598853a9444f4188a6731b9aa7 |
27 |
+DIST libimobiledevice-1.2.0.tar.bz2 631495 SHA256 786b0de0875053bf61b5531a86ae8119e320edab724fc62fe2150cc931f11037 SHA512 0de5f768aeb5d62445892855d84ceaff776f6667733c351ed6c34bf9d500802762d1a06e5efdf57f33cafc9ee788041cd9b6748fb9bad6c2e4ae2f9b9aa93589 WHIRLPOOL ca0d709fcc844811fa19b1b149afd81c15f75c213384789b1bc1a4ec838f12ffa33c6f78753befd4eae81156cb1c002d24e7ddc50a59f374164c33ddfd37ddb6 |
28 |
|
29 |
diff --git a/app-pda/libimobiledevice/libimobiledevice-1.1.6-r1.ebuild b/app-pda/libimobiledevice/libimobiledevice-1.1.6-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..2ea6d8d |
32 |
--- /dev/null |
33 |
+++ b/app-pda/libimobiledevice/libimobiledevice-1.1.6-r1.ebuild |
34 |
@@ -0,0 +1,91 @@ |
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 communicate with Apple iPhone/iPod Touch devices" |
44 |
+HOMEPAGE="http://www.libimobiledevice.org/" |
45 |
+SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2" |
46 |
+ |
47 |
+# While COPYING* doesn't mention 'or any later version', all the headers do, hence use + |
48 |
+LICENSE="GPL-2+ LGPL-2.1+" |
49 |
+SLOT="0/4" # based on SONAME of libimobiledevice.so |
50 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
51 |
+IUSE="gnutls python static-libs" |
52 |
+ |
53 |
+RDEPEND=">=app-pda/libplist-1.11:= |
54 |
+ >=app-pda/libusbmuxd-1.0.9:= |
55 |
+ gnutls? ( |
56 |
+ dev-libs/libgcrypt:0 |
57 |
+ >=dev-libs/libtasn1-1.1 |
58 |
+ >=net-libs/gnutls-2.2.0 |
59 |
+ ) |
60 |
+ !gnutls? ( dev-libs/openssl:0 ) |
61 |
+ python? ( |
62 |
+ ${PYTHON_DEPS} |
63 |
+ app-pda/libplist[python(-),${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ virtual/pkgconfig |
67 |
+ python? ( >=dev-python/cython-0.17[${PYTHON_USEDEP}] )" |
68 |
+ |
69 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
70 |
+ |
71 |
+DOCS=( AUTHORS NEWS README ) |
72 |
+ |
73 |
+BUILD_DIR="${S}_build" |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local ECONF_SOURCE=${S} |
77 |
+ |
78 |
+ local myeconfargs=( $(use_enable static-libs static) ) |
79 |
+ use gnutls && myeconfargs+=( --disable-openssl ) |
80 |
+ |
81 |
+ do_configure() { |
82 |
+ mkdir -p "${BUILD_DIR}" || die |
83 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
84 |
+ econf "${myeconfargs[@]}" "${@}" |
85 |
+ popd >/dev/null || die |
86 |
+ } |
87 |
+ |
88 |
+ do_configure --without-cython |
89 |
+ use python && python_foreach_impl do_configure |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ python_compile() { |
94 |
+ emake -C "${BUILD_DIR}"/cython -j1 \ |
95 |
+ VPATH="${S}/cython:${native_builddir}/cython" \ |
96 |
+ imobiledevice_la_LIBADD="${native_builddir}/src/libimobiledevice.la" |
97 |
+ } |
98 |
+ |
99 |
+ local native_builddir=${BUILD_DIR} |
100 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
101 |
+ emake -j1 |
102 |
+ use python && python_foreach_impl python_compile |
103 |
+ popd >/dev/null || die |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ python_install() { |
108 |
+ emake -C "${BUILD_DIR}/cython" -j1 \ |
109 |
+ VPATH="${S}/cython:${native_builddir}/cython" \ |
110 |
+ DESTDIR="${D}" install |
111 |
+ } |
112 |
+ |
113 |
+ local native_builddir=${BUILD_DIR} |
114 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
115 |
+ emake -j1 DESTDIR="${D}" install |
116 |
+ use python && python_foreach_impl python_install |
117 |
+ popd >/dev/null || die |
118 |
+ |
119 |
+ dodoc docs/html/* |
120 |
+ if use python; then |
121 |
+ insinto /usr/include/${PN}/cython |
122 |
+ doins cython/imobiledevice.pxd |
123 |
+ fi |
124 |
+ prune_libtool_files --all |
125 |
+} |
126 |
|
127 |
diff --git a/app-pda/libimobiledevice/libimobiledevice-1.2.0.ebuild b/app-pda/libimobiledevice/libimobiledevice-1.2.0.ebuild |
128 |
new file mode 100644 |
129 |
index 0000000..9a61169 |
130 |
--- /dev/null |
131 |
+++ b/app-pda/libimobiledevice/libimobiledevice-1.2.0.ebuild |
132 |
@@ -0,0 +1,91 @@ |
133 |
+# Copyright 1999-2015 Gentoo Foundation |
134 |
+# Distributed under the terms of the GNU General Public License v2 |
135 |
+# $Id$ |
136 |
+ |
137 |
+EAPI=5 |
138 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
139 |
+inherit eutils python-r1 |
140 |
+ |
141 |
+DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices" |
142 |
+HOMEPAGE="http://www.libimobiledevice.org/" |
143 |
+SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2" |
144 |
+ |
145 |
+# While COPYING* doesn't mention 'or any later version', all the headers do, hence use + |
146 |
+LICENSE="GPL-2+ LGPL-2.1+" |
147 |
+SLOT="0/6" # based on SONAME of libimobiledevice.so |
148 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
149 |
+IUSE="gnutls python static-libs" |
150 |
+ |
151 |
+RDEPEND=">=app-pda/libplist-1.11:= |
152 |
+ >=app-pda/libusbmuxd-1.0.9:= |
153 |
+ gnutls? ( |
154 |
+ dev-libs/libgcrypt:0 |
155 |
+ >=dev-libs/libtasn1-1.1 |
156 |
+ >=net-libs/gnutls-2.2.0 |
157 |
+ ) |
158 |
+ !gnutls? ( dev-libs/openssl:0 ) |
159 |
+ python? ( |
160 |
+ ${PYTHON_DEPS} |
161 |
+ app-pda/libplist[python(-),${PYTHON_USEDEP}] |
162 |
+ )" |
163 |
+DEPEND="${RDEPEND} |
164 |
+ virtual/pkgconfig |
165 |
+ python? ( >=dev-python/cython-0.17[${PYTHON_USEDEP}] )" |
166 |
+ |
167 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
168 |
+ |
169 |
+DOCS=( AUTHORS NEWS README ) |
170 |
+ |
171 |
+BUILD_DIR="${S}_build" |
172 |
+ |
173 |
+src_configure() { |
174 |
+ local ECONF_SOURCE=${S} |
175 |
+ |
176 |
+ local myeconfargs=( $(use_enable static-libs static) ) |
177 |
+ use gnutls && myeconfargs+=( --disable-openssl ) |
178 |
+ |
179 |
+ do_configure() { |
180 |
+ mkdir -p "${BUILD_DIR}" || die |
181 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
182 |
+ econf "${myeconfargs[@]}" "${@}" |
183 |
+ popd >/dev/null || die |
184 |
+ } |
185 |
+ |
186 |
+ do_configure --without-cython |
187 |
+ use python && python_foreach_impl do_configure |
188 |
+} |
189 |
+ |
190 |
+src_compile() { |
191 |
+ python_compile() { |
192 |
+ emake -C "${BUILD_DIR}"/cython -j1 \ |
193 |
+ VPATH="${S}/cython:${native_builddir}/cython" \ |
194 |
+ imobiledevice_la_LIBADD="${native_builddir}/src/libimobiledevice.la" |
195 |
+ } |
196 |
+ |
197 |
+ local native_builddir=${BUILD_DIR} |
198 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
199 |
+ emake -j1 |
200 |
+ use python && python_foreach_impl python_compile |
201 |
+ popd >/dev/null || die |
202 |
+} |
203 |
+ |
204 |
+src_install() { |
205 |
+ python_install() { |
206 |
+ emake -C "${BUILD_DIR}/cython" -j1 \ |
207 |
+ VPATH="${S}/cython:${native_builddir}/cython" \ |
208 |
+ DESTDIR="${D}" install |
209 |
+ } |
210 |
+ |
211 |
+ local native_builddir=${BUILD_DIR} |
212 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
213 |
+ emake -j1 DESTDIR="${D}" install |
214 |
+ use python && python_foreach_impl python_install |
215 |
+ popd >/dev/null || die |
216 |
+ |
217 |
+ dodoc docs/html/* |
218 |
+ if use python; then |
219 |
+ insinto /usr/include/${PN}/cython |
220 |
+ doins cython/imobiledevice.pxd |
221 |
+ fi |
222 |
+ prune_libtool_files --all |
223 |
+} |