blob: f8aedf1976b7d08977ea281d1989849439b3507e (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libgpod/libgpod-0.6.0.ebuild,v 1.11 2008/11/01 16:47:41 tester Exp $
inherit eutils subversion autotools
DESCRIPTION="Shared library to access the contents of an iPod"
HOMEPAGE="http://www.gtkpod.org/libgpod.html"
SRC_URI=""
ESVN_REPO_URI="https://gtkpod.svn.sourceforge.net/svnroot/gtkpod/libgpod/trunk/"
ESVN_STORE_DIR="${DISTDIR}/svn-src"
ESVN_PROJECT="${PN/-svn}"
ESVN_BOOTSTRAP="./autogen.sh"
S="${WORKDIR}/${P/_/}"
LICENSE="LGPL-2"
SLOT=""
KEYWORDS="amd64 ~ia64 ppc ppc64 ~sparc x86"
IUSE="gtk python doc test hal"
RDEPEND=">=dev-libs/glib-2.4
hal? ( =sys-apps/hal-0.5* )
sys-apps/sg3_utils
dev-util/gtk-doc
gtk? ( >=x11-libs/gtk+-2 )
python? ( >=dev-lang/python-2.3
>=x11-libs/gtk+-2
media-libs/mutagen
gtk? ( >=dev-python/pygobject-2 ) )
test? ( media-libs/taglib )"
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )
python? ( >=dev-lang/swig-1.3.24 )
dev-util/pkgconfig"
src_unpack() {
subversion_src_unpack
cd "${S}"
# eautoreconf
# epatch "${FILESDIR}/${P}+gcc-4.3.patch"
# elibtoolize
}
src_compile() {
local myconf
if use gtk; then
myconf="--enable-pygobject"
else
myconf="--disable-pygobject"
fi
econf ${myconf} \
$(use_enable doc gtk-doc) \
$(use_enable gtk gdk-pixbuf) \
$(use_with hal hal) \
$(use_with python) || die "configure failed"
emake || die "make failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
dodoc README TROUBLESHOOTING AUTHORS NEWS README.SysInfo
}
pkg_postinst() {
einfo "If you use a newer Ipod like the Ipod classic, make sure to read"
einfo "the information in README.SysInfo in /usr/share/doc/${P}"
einfo "This is no needed if HAL is installed and works correctly."
}
|