blob: dd02c7ef6822e269c2e76b21881d14653ef0c773 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libdmapsharing/libdmapsharing-2.1.13.ebuild,v 1.2 2011/04/08 21:51:49 eva Exp $
EAPI="3"
inherit autotools base eutils
DESCRIPTION="A library that implements the DMAP family of protocols"
HOMEPAGE="http://www.flyn.org/projects/libdmapsharing"
SRC_URI="http://www.flyn.org/projects/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="2.2"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="
dev-libs/glib:2
>=net-dns/avahi-0.6
>=net-libs/libsoup-2.32:2.4
>=media-libs/gstreamer-0.10:0.10
>=media-libs/gst-plugins-base-0.10.24:0.10
sys-libs/zlib
|| (
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2 )
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( >=dev-util/gtk-doc-1 )
"
src_prepare() {
base_src_prepare
# Fix slot support
epatch "${FILESDIR}/${P}-slotability-fix.patch"
sed "s/name=\"${PN}\"/name=\"${PN}-${SLOT}\"/" \
-i ${S}/docs/html/${PN}.devhelp* || die "sed 1 failed"
mv ${S}/docs/html/${PN}{,-${SLOT}}.devhelp
mv ${S}/docs/html/${PN}{,-${SLOT}}.devhelp2
mv ${S}/docs/${PN}{,-${SLOT}}-docs.sgml
mv ${S}/docs/${PN}{,-${SLOT}}-overrides.txt
mv ${S}/docs/${PN}{,-${SLOT}}-sections.txt
mv ${S}/docs/${PN}{,-${SLOT}}.types
# Fix build order, bug #361067
epatch "${FILESDIR}/${P}-build-order.patch"
AT_M4DIR="m4" eautoreconf
}
src_configure() {
econf --with-mdns=avahi $(use_enable doc gtk-doc)
}
src_install() {
base_src_install
find "${ED}" -name "*.la" -delete || die "la file removal failed"
dodoc AUTHORS ChangeLog NEWS TODO || die "dodoc failed"
}
|