/[gentoo-x86]/net-misc/d4x/d4x-2.5.0_rc4.ebuild
Gentoo

Contents of /net-misc/d4x/d4x-2.5.0_rc4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Aug 20 18:42:56 2005 UTC (14 years, 3 months ago) by smithj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
2.5.0-r1 stable on x86, old ebuild cleanout
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/d4x-2.5.0_rc4.ebuild,v 1.7 2005/01/13 15:28:18 liquidx Exp $
4
5 IUSE="nls esd gnome oss kde"
6
7 inherit eutils
8
9 S="${WORKDIR}/${P/_}"
10 DESCRIPTION="GTK based download manager for X."
11 SRC_URI="http://www.krasu.ru/soft/chuchelo/files/${P/_}.tar.gz"
12 HOMEPAGE="http://www.krasu.ru/soft/chuchelo/"
13
14 KEYWORDS="x86 ~amd64"
15 SLOT="0"
16 LICENSE="Artistic"
17
18 DEPEND=">=x11-libs/gtk+-2.0.6
19 >=dev-libs/glib-2.0.6
20 >=sys-devel/gettext-0.11.2
21 esd? ( >=media-sound/esound-0.2.7 )"
22
23 src_unpack() {
24
25 unpack ${A}
26
27 # Newer gcc needs us to explicitly cast 'const gchar *' to 'gchar *'
28 epatch ${FILESDIR}/${P}-fix-cast.patch
29
30 # Use our own $CXXFLAGS
31 cd ${S}
32 cp configure configure.orig
33 sed -e "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g;s:OPTFLAGS=\"-O2\":OPTFLAGS=\"\":g" \
34 configure.orig >configure
35 }
36
37 src_compile() {
38
39 myconf=""
40
41 use nls \
42 && myconf="${myconf} --enable-nls" \
43 || myconf="${myconf} --disable-nls"
44
45 use esd \
46 && myconf="${myconf} --enable-esd" \
47 || myconf="${myconf} --disable-esd"
48
49 use oss \
50 && myconf="${myconf} --enable-oss" \
51 || myconf="${myconf} --disable-oss"
52
53 econf --enable-release \
54 ${myconf} || die
55
56 emake || die
57 }
58
59 src_install () {
60
61 dodir /usr/bin
62 dodir /usr/share/d4x
63
64 einstall || die
65
66 insinto /usr/share/pixmaps
67 doins share/*.png share/*.xpm
68
69 if use kde
70 then
71 insinto /usr/share/applnk/Internet
72 newins share/nt.desktop d4x.desktop
73 fi
74
75 if use gnome
76 then
77 echo "Categories=Application;Network;" >> ${S}/share/nt.desktop
78 insinto /usr/share/applications
79 newins share/nt.desktop d4x.desktop
80 fi
81
82 rm -rf ${D}/usr/share/d4x/{FAQ*,INSTALL*,README*,LICENSE,NAMES,TROUBLES}
83 dodoc AUTHORS COPYING ChangeLog* NEWS PLANS TODO \
84 DOC/{FAQ*,LICENSE,NAMES,README*,TROUBLES,THANKS}
85 }

  ViewVC Help
Powered by ViewVC 1.1.20