summaryrefslogtreecommitdiff
blob: b154bdc5e78f2556ad44bb45b5815ba3402c9128 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: N�st�n <pekdon@gmx.net>
# $Header: /var/cvsroot/gentoo-x86/app-cdr/gtoaster/gtoaster-1.0_beta5.ebuild,v 1.1 2002/01/28 19:12:07 azarah Exp $

# Fix so that updating can only be done by 'cp old.ebuild new.ebuild'
MY_P="`echo ${P} |sed -e 's:-::' -e 's:_b:B:'`"
S=${WORKDIR}/gtoaster
DESCRIPTION="GTK+ Frontend for cdrecord"
SRC_URI="http://gnometoaster.rulez.org/archive/${MY_P}.tgz"
HOMEPAGE="http://gnometoaster.rulez.org/"

DEPEND=">=x11-libs/gtk+-1.2
	gnome? ( >=gnome-base/gnome-core-1.2.2.1 )
	esd? ( >=media-sound/esound-0.2.22 )"

RDEPEND=">=app-cdr/cdrtools-1.11
	 >=media-sound/sox-12
	 >=media-sound/mpg123-0.59
	 >=media-sound/mp3info-0.8.4
	 ogg? ( >=media-sound/vorbis-tools-1.0_rc2 )
	 ogg? ( >=media-sound/oggtst-0.0 )"


src_compile() {

	local myconf
	use nls		|| myconf="$myconf --disable-nls"
	use gnome	&& myconf="$myconf --with-gnome --with-orbit"
	use gnome	|| myconf="$myconf --without-gnome --without-orbit"
	use esd		&& myconf="$myconf --with-esd"
	use esd		|| myconf="$myconf --without-esd"
	use oss		&& myconf="$myconf --with-oss"
	use oss		|| myconf="$myconf --without-oss"

	
	./configure --host=${CHOST}					\
		    --prefix=/usr					\
		    --sysconfdir=/etc					\
		    --localstatedir=/var/lib				\
		    --infodir=/usr/share/info				\
		    --mandir=/usr/share/man				\
	            $myconf || die

	emake || die
}

src_install() {

	make prefix=${D}/usr						\
	     sysconfdir=${D}/etc					\
	     localstatedir=${D}/var/lib					\
	     infodir=${D}/usr/share/info				\
	     mandir=${D}/usr/share/man					\
	     install || die

	dodoc ABOUT-NLS AUTHORS ChangeLog* COPYING INSTALL NEWS README TODO
	docinto user-guide
	dodoc Documentation/*.txt
	dodoc Documentation/*.html
	dodoc Documentation/*.png

        # Install icon and .desktop for menu entry
        if [ "`use gnome`" ] ; then
                insinto /usr/share/pixmaps
                doins ${S}/icons/gtoaster.png
                insinto /usr/share/gnome/apps/Applications
                doins ${FILESDIR}/gtoaster.desktop
        fi
}