blob: 18655efd36815b789a9ef8d72703e7029e10f567 (
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
79
80
81
82
83
84
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/tunepimp/tunepimp-0.4.2.ebuild,v 1.3 2006/05/24 19:19:26 flameeyes Exp $
inherit eutils distutils perl-app libtool autotools
MY_P="lib${P}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="Client library to create MusicBrainz enabled tagging applications"
HOMEPAGE="http://www.musicbrainz.org/products/tunepimp"
SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="examples flac mp3 readline perl python vorbis taglib aac"
RDEPEND=">=media-libs/musicbrainz-2.1.0
flac? ( media-libs/flac )
vorbis? ( media-libs/libvorbis )
readline? ( sys-libs/readline )
mp3? ( media-libs/libmad )
taglib? ( >=media-libs/taglib-1.4 )
aac? ( media-libs/libmp4v2 )
!media-sound/trm"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-libiconv.patch"
epatch "${FILESDIR}/${P}-noautomatic.patch"
# do not try to link against obsolete libtermcap
sed -i -e 's,-ltermcap,-lncurses,' "${S}/configure.in"
# Link against libpthread on FreeBSD
sed -i -e 's:-lthr:-lpthread:g' "${S}/lib/threads/posix/Makefile.am"
eautoreconf
elibtoolize
}
src_compile() {
econf \
$(use_with taglib) \
$(use_with aac mp4v2) \
$(use_enable !mp3 lgpl) \
$(use_with flac) \
$(use_with vorbis) \
$(use_with readline) \
--disable-dependency-tracking \
|| die "configure failed"
emake || die "emake failed"
if use perl; then
cd ${S}/perl/tunepimp-perl
perl-app_src_compile || die "perl module failed to compile"
fi
}
src_install() {
cd ${S}
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog INSTALL README TODO
if use python; then
cd ${S}/python
distutils_src_install
if use examples ; then
insinto /usr/share/doc/${PF}/examples/
doins examples/*
fi
fi
if use perl; then
cd ${S}/perl/tunepimp-perl
perl-module_src_install || die "perl module failed to install"
if use examples ; then
insinto /usr/share/doc/${PF}/examples/
doins examples/*
fi
fi
}
|