/[gentoo-x86]/app-pda/libplist/libplist-1.8-r1.ebuild
Gentoo

Contents of /app-pda/libplist/libplist-1.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Feb 2 22:23:32 2013 UTC (3 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Add ~arm, wrt bug #449220

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-pda/libplist/libplist-1.8-r1.ebuild,v 1.6 2012/12/31 14:16:59 ago Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2:2.7"
8
9 inherit cmake-utils python
10
11 DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
12 HOMEPAGE="http://www.libimobiledevice.org/"
13 SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2"
14
15 LICENSE="GPL-2 LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-fbsd"
18 IUSE="python"
19
20 RDEPEND="dev-libs/libxml2"
21 DEPEND="${RDEPEND}
22 python? ( >=dev-python/cython-0.14.1-r1 )" #410349
23
24 DOCS=( AUTHORS NEWS README )
25
26 MAKEOPTS+=" -j1" #406365
27
28 pkg_setup() {
29 if use python; then
30 python_set_active_version 2
31 python_pkg_setup
32 fi
33 }
34
35 src_configure() {
36 # Use cython instead of swig to match behavior of libimobiledevice >= 1.1.2
37 local mycmakeargs=(
38 -DCMAKE_SKIP_RPATH=ON
39 $(cmake-utils_use_enable python CYTHON)
40 -DENABLE_SWIG=OFF
41 )
42
43 cmake-utils_src_configure
44 }
45
46 src_test() {
47 cd "${CMAKE_BUILD_DIR}"
48
49 local testfile
50 for testfile in "${S}"/test/data/*; do
51 LD_LIBRARY_PATH=src ./test/plist_test "${testfile}" || die
52 done
53 }

  ViewVC Help
Powered by ViewVC 1.1.13