blob: c62bb60d78a4733b9abdc2da8295f049734f4805 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/id3lib/id3lib-3.8.3-r4.ebuild,v 1.6 2006/02/06 14:47:12 gustavoz Exp $
inherit eutils autotools
MY_P=${P/_/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Id3 library for C/C++"
HOMEPAGE="http://id3lib.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc ~x86"
IUSE="doc examples"
RDEPEND="sys-libs/zlib"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/${P}-zlib.patch"
epatch "${FILESDIR}/${P}-test_io.patch"
epatch "${FILESDIR}/${P}-autoconf259.patch"
epatch "${FILESDIR}/${P}-doxyinput.patch"
AT_M4DIR="${S}/m4" eautoreconf
}
src_compile() {
econf || die "econf failed"
emake || die "emake failed"
if use doc; then
cd doc/
doxygen Doxyfile || die "doxygen failed"
fi
}
src_install() {
make DESTDIR="${D}" install || die "Install failed"
dodoc AUTHORS ChangeLog HISTORY README THANKS TODO
# some example programs to be placed in docs dir.
if use examples; then
cp -pPR examples ${D}/usr/share/doc/${PF}/examples
cd ${D}/usr/share/doc/${PF}/examples
make distclean
fi
if use doc; then
dohtml -r doc
fi
}
|