blob: 0aeafa5007550068cbb18bf1164c160b6c322a31 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Martin Schlemmer <azarah@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-misc/nt/nt-2.0.ebuild,v 1.6 2002/07/09 10:05:47 phoenix Exp $
#name of tarball changed
MY_P="${P/nt/d4x}"
#handle release candidates
MY_P="${MY_P/_rc/RC}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="GTK based download manager for X."
SRC_URI="http://www.krasu.ru/soft/chuchelo/files/${MY_P}.tar.gz"
HOMEPAGE="http://www.krasu.ru/soft/chuchelo/"
KEYWORDS="x86"
LICENSE="nt"
DEPEND="=x11-libs/gtk+-1.2*
>=dev-libs/glib-1.2.10
>=media-libs/gdk-pixbuf-0.2.5
esd? ( >=media-sound/esound-0.2.7 )"
SLOT="0"
src_unpack() {
unpack ${A}
# Use our own $CXXFLAGS
cd ${S}
cp configure configure.orig
sed -e "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g" \
configure.orig >configure
patch -p1 <${FILESDIR}/nt-2.0-gcc31.patch || die
}
src_compile() {
myconf=""
use nls || myconf="${myconf} --disable-nls"
use esd || myconf="${myconf} --disable-esd"
use oss || myconf="${myconf} --disable-oss"
./configure --host=${HOST} \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-release \
${myconf} || die
emake || die
}
src_install () {
dodir /usr/bin
dodir /usr/share/d4x
make prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die
dodoc AUTHORS COPYING ChangeLog* NEWS PLANS README TODO
cd ${S}/DOC
dodoc FAQ* LICENSE NAMES TROUBLES THANKS
cd ${S}
insinto /usr/share/pixmaps
doins *.png *.xpm
if [ "`use gnome`" ] ; then
insinto /usr/share/gnome/apps/Internet
doins nt.desktop
fi
}
|