Skip to content

Commit 24cd543

Browse files
committed
app-pda/libplist: Switch to python-single-r1, disable py3
Replace the semi-broken Python support code in ebuild with python-single-r1. The original code used python-r1 and rebuilt the whole package (incl. C libraries) for each implementation, even when Python support was explicitly disabled. Furthermore, the used autoconf macros break with Python 3.2+. Therefore, the Python 3 support has been disabled entirely until the relevant code is fixed. Bug: https://bugs.gentoo.org/show_bug.cgi?id=567370
1 parent 5d17d8e commit 24cd543

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 1999-2015 Gentoo Foundation
2+
# Distributed under the terms of the GNU General Public License v2
3+
# $Id$
4+
5+
EAPI=5
6+
# ac_python_devel.m4 is broken with python3
7+
PYTHON_COMPAT=( python2_7 )
8+
inherit python-single-r1
9+
10+
DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
11+
HOMEPAGE="http://www.libimobiledevice.org/"
12+
SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
13+
14+
LICENSE="GPL-2 LGPL-2.1"
15+
SLOT="0/2" # based on SONAME of libplist.so
16+
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd"
17+
IUSE="python static-libs"
18+
19+
RDEPEND=">=dev-libs/libxml2-2.7.8"
20+
DEPEND="${RDEPEND}
21+
virtual/pkgconfig
22+
python? (
23+
${PYTHON_DEPS}
24+
>=dev-python/cython-0.17[${PYTHON_USEDEP}]
25+
)"
26+
27+
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
28+
29+
DOCS=( AUTHORS NEWS README )
30+
31+
RESTRICT="test" # TODO: src_test() was dropped from 1.10 (cmake) -> 1.11 (autotools)
32+
33+
pkg_setup() {
34+
use python && python-single-r1_pkg_setup
35+
}
36+
37+
src_configure() {
38+
local myeconfargs=( $(use_enable static-libs static) )
39+
use python || myeconfargs+=( --without-cython )
40+
41+
econf "${myeconfargs[@]}"
42+
}
43+
44+
src_compile() {
45+
emake -j1 #406365
46+
}
47+
48+
src_install() {
49+
default
50+
find "${D}" -name '*.la' -delete || die
51+
52+
if use python; then
53+
insinto /usr/include/plist/cython
54+
doins cython/plist.pxd
55+
fi
56+
}

0 commit comments

Comments
 (0)