blob: 0ce502f5a587b43ce2581e9d7ad1ecdf6dcb7c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/libplist/libplist-1.8-r1.ebuild,v 1.7 2013/02/02 22:23:32 ago Exp $
EAPI=4
PYTHON_DEPEND="python? 2:2.7"
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 ~arm ~ppc ~ppc64 x86 ~amd64-fbsd"
IUSE="python"
RDEPEND="dev-libs/libxml2"
DEPEND="${RDEPEND}
python? ( >=dev-python/cython-0.14.1-r1 )" #410349
DOCS=( AUTHORS NEWS README )
MAKEOPTS+=" -j1" #406365
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_configure() {
# Use cython instead of swig to match behavior of libimobiledevice >= 1.1.2
local mycmakeargs=(
-DCMAKE_SKIP_RPATH=ON
$(cmake-utils_use_enable python CYTHON)
-DENABLE_SWIG=OFF
)
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
}
|