blob: 3251fd2e248f4f20ea5e55b35137abe54fe68dd7 (
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
78
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools udev
DESCRIPTION="Shared library to access the contents of an iPod"
HOMEPAGE="http://www.gtkpod.org/libgpod/"
SRC_URI="mirror://sourceforge/gtkpod/${P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~riscv x86"
IUSE="+gtk ios +udev"
RDEPEND="
>=app-pda/libplist-1.0:=
>=dev-db/sqlite-3:3
>=dev-libs/glib-2.16:2
dev-libs/libxml2:2
sys-apps/sg3_utils:0=
gtk? ( x11-libs/gdk-pixbuf:2 )
ios? ( app-pda/libimobiledevice:= )
udev? ( virtual/udev )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-libs/libxslt
dev-util/intltool
dev-util/gtk-doc-am
sys-devel/gettext
virtual/pkgconfig
"
DOCS=( AUTHORS NEWS README{,.overview,.sqlite,.SysInfo} TROUBLESHOOTING )
PATCHES=(
"${FILESDIR}"/${P}-comment.patch # bug 537968
"${FILESDIR}"/${P}-segfault.patch # bug 565052
"${FILESDIR}"/${P}-pkgconfig_overlinking.patch
"${FILESDIR}"/${P}-implicit-int.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
--disable-pygobject
--disable-static
--without-hal
--without-mono
--without-python
--with-udev-dir="$(get_udevdir)"
$(use_enable gtk gdk-pixbuf)
$(use_with ios libimobiledevice)
$(use_enable udev)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
rm "${ED}"/usr/$(get_libdir)/pkgconfig/libgpod-sharp.pc || die
use udev && rmdir "${ED}"/tmp || die
find "${ED}" -name '*.la' -type f -delete || die
}
pkg_postinst() {
use udev && udev_reload
}
pkg_postrm() {
use udev && udev_reload
}
|