blob: 92429f6102dfee77828b7558c3f5953399acd779 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/madman/madman-0.93.ebuild,v 1.1 2004/07/12 19:43:15 eradicator Exp $
IUSE=""
inherit eutils
DESCRIPTION="MP3 organizer/ID3 tag-editor extrodinaire"
HOMEPAGE="http://madman.sf.net"
SRC_URI="mirror://sourceforge/madman/${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
#-amd64: 0.93: see bug #56821
KEYWORDS="~x86 -amd64 ~sparc"
DEPEND=">=x11-libs/qt-3.1.0-r3
>=media-libs/libvorbis-1.0
>=media-sound/xmms-1.2.7-r20
>=media-libs/id3lib-3.8.3"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gcc34.patch
}
addpredict_from_config() {
# This is a hack to be able to dynamically determine which directories
# scons will try to create .scons* files in.
for i in `$1 --libs --cflags | tr ' ' '\n' |
grep -E -- '-L|-I' | cut -c 3-`; do
addpredict $i
done;
}
src_compile() {
# Since I have found no way to prevent scons from trying to create
# .scons$PID and .sconsign files, I have instead just added the
# directiories where it tries to create them to the predict path.
addpredict "${QTDIR}/include"
addpredict "${QTDIR}/lib"
addpredict_from_config glib-config
addpredict_from_config xmms-config
tar xzf scons-local-0.95.tar.gz
./scons.py ${MAKEOPTS} prefix=/usr || die
}
src_install() {
# Since I cannot make scons install the files in a different directory than
# prefix is set to (without recompiling everyting), I opted to install
# madman "by hand".
dobin main/madman
dodoc README
dodoc COPYING
newdoc plugins/README README.plugins
dodir /usr/lib/${PN}/plugins
exeinto /usr/lib/${PN}/plugins
doexe `find plugins -perm -100 -a -type f`
}
|