1 |
commit: 24cd543b2081a54c09225e6bf7e663372305468a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 9 21:58:40 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 9 22:01:17 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24cd543b |
7 |
|
8 |
app-pda/libplist: Switch to python-single-r1, disable py3 |
9 |
|
10 |
Replace the semi-broken Python support code in ebuild with |
11 |
python-single-r1. The original code used python-r1 and rebuilt the whole |
12 |
package (incl. C libraries) for each implementation, even when Python |
13 |
support was explicitly disabled. |
14 |
|
15 |
Furthermore, the used autoconf macros break with Python 3.2+. Therefore, |
16 |
the Python 3 support has been disabled entirely until the relevant code |
17 |
is fixed. |
18 |
|
19 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=567370 |
20 |
|
21 |
app-pda/libplist/libplist-1.11-r1.ebuild | 56 ++++++++++++++++++++++++++++++++ |
22 |
1 file changed, 56 insertions(+) |
23 |
|
24 |
diff --git a/app-pda/libplist/libplist-1.11-r1.ebuild b/app-pda/libplist/libplist-1.11-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..2fa2438 |
27 |
--- /dev/null |
28 |
+++ b/app-pda/libplist/libplist-1.11-r1.ebuild |
29 |
@@ -0,0 +1,56 @@ |
30 |
+# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+# ac_python_devel.m4 is broken with python3 |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+inherit python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)" |
40 |
+HOMEPAGE="http://www.libimobiledevice.org/" |
41 |
+SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="GPL-2 LGPL-2.1" |
44 |
+SLOT="0/2" # based on SONAME of libplist.so |
45 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd" |
46 |
+IUSE="python static-libs" |
47 |
+ |
48 |
+RDEPEND=">=dev-libs/libxml2-2.7.8" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ virtual/pkgconfig |
51 |
+ python? ( |
52 |
+ ${PYTHON_DEPS} |
53 |
+ >=dev-python/cython-0.17[${PYTHON_USEDEP}] |
54 |
+ )" |
55 |
+ |
56 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
57 |
+ |
58 |
+DOCS=( AUTHORS NEWS README ) |
59 |
+ |
60 |
+RESTRICT="test" # TODO: src_test() was dropped from 1.10 (cmake) -> 1.11 (autotools) |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ use python && python-single-r1_pkg_setup |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local myeconfargs=( $(use_enable static-libs static) ) |
68 |
+ use python || myeconfargs+=( --without-cython ) |
69 |
+ |
70 |
+ econf "${myeconfargs[@]}" |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake -j1 #406365 |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ default |
79 |
+ find "${D}" -name '*.la' -delete || die |
80 |
+ |
81 |
+ if use python; then |
82 |
+ insinto /usr/include/plist/cython |
83 |
+ doins cython/plist.pxd |
84 |
+ fi |
85 |
+} |