/[gentoo-x86]/media-libs/libgpod/libgpod-0.8.2.ebuild
Gentoo

Contents of /media-libs/libgpod/libgpod-0.8.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Thu Aug 16 22:03:03 2012 UTC (2 years, 4 months ago) by johu
Branch: MAIN
Changes since 1.6: +2 -2 lines
Stable for x86, wrt bug #423155

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 robbat2 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 johu 1.7 # $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/libgpod-0.8.2.ebuild,v 1.6 2012/08/11 18:04:03 ago Exp $
4 robbat2 1.1
5 ssuominen 1.2 EAPI=4
6 robbat2 1.1
7     PYTHON_DEPEND="python? 2:2.6"
8    
9 ssuominen 1.5 inherit eutils mono python toolchain-funcs
10 robbat2 1.1
11     DESCRIPTION="Shared library to access the contents of an iPod"
12     HOMEPAGE="http://www.gtkpod.org/libgpod/"
13 ssuominen 1.3 SRC_URI="mirror://sourceforge/gtkpod/${P}.tar.bz2"
14 robbat2 1.1
15     LICENSE="LGPL-2"
16     SLOT="0"
17 johu 1.7 KEYWORDS="amd64 x86"
18 robbat2 1.1 IUSE="+gtk python +udev ios mono static-libs"
19    
20     RDEPEND=">=app-pda/libplist-1.0
21     >=dev-db/sqlite-3
22     >=dev-libs/glib-2.16:2
23     dev-libs/libxml2
24     sys-apps/sg3_utils
25     gtk? ( x11-libs/gdk-pixbuf:2 )
26     ios? ( app-pda/libimobiledevice )
27     python? (
28     >=media-libs/mutagen-1.8
29     >=dev-python/pygobject-2.8:2
30     )
31     udev? ( sys-fs/udev )
32     mono? (
33     >=dev-lang/mono-1.9.1
34     >=dev-dotnet/gtk-sharp-2.12
35     )"
36     DEPEND="${RDEPEND}
37     python? ( >=dev-lang/swig-1.3.24 )
38     dev-libs/libxslt
39     dev-util/intltool
40 jdhore 1.4 virtual/pkgconfig"
41 robbat2 1.1
42 ssuominen 1.2 DOCS="AUTHORS NEWS README* TROUBLESHOOTING"
43    
44 robbat2 1.1 pkg_setup() {
45     if use python; then
46     python_set_active_version 2
47     python_pkg_setup
48     fi
49     }
50    
51     src_prepare() {
52     >py-compile
53     }
54    
55     src_configure() {
56 ssuominen 1.5 local udevdir=/lib/udev
57     use udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
58    
59 robbat2 1.1 econf \
60     $(use_enable static-libs static) \
61     $(use_enable udev) \
62     $(use_enable gtk gdk-pixbuf) \
63     $(use_enable python pygobject) \
64     --without-hal \
65     $(use_with ios libimobiledevice) \
66 ssuominen 1.5 --with-udev-dir="${udevdir}" \
67 robbat2 1.1 --with-html-dir=/usr/share/doc/${PF}/html \
68     $(use_with python) \
69     $(use_with mono)
70     }
71    
72     src_install() {
73 ssuominen 1.2 default
74 ssuominen 1.5 prune_libtool_files --all
75 robbat2 1.1 }
76    
77     pkg_postinst() {
78     use python && python_mod_optimize gpod
79     }
80    
81     pkg_postrm() {
82     use python && python_mod_cleanup gpod
83     }

  ViewVC Help
Powered by ViewVC 1.1.20