/[gentoo-x86]/net-misc/d4x/d4x-2.5.7.1-r1.ebuild
Gentoo

Contents of /net-misc/d4x/d4x-2.5.7.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Nov 15 20:33:35 2007 UTC (12 years, 1 month ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.7.1-r1.ebuild,v 1.5 2007/06/16 11:30:15 dertobi123 Exp $
4
5 IUSE="nls esd gnome oss kde"
6
7 inherit eutils flag-o-matic
8
9 DESCRIPTION="GTK based download manager for X."
10 SRC_URI="http://d4x.krasu.ru/files/${P}.tar.bz2"
11 HOMEPAGE="http://www.krasu.ru/soft/chuchelo/"
12
13 KEYWORDS="amd64 ~ppc sparc x86"
14 SLOT="0"
15 LICENSE="Artistic"
16
17 DEPEND=">=x11-libs/gtk+-2.0.6
18 >=dev-libs/glib-2.0.6
19 >=sys-devel/gettext-0.11.2
20 >=dev-libs/openssl-0.9.7e
21 dev-libs/boost
22 esd? ( >=media-sound/esound-0.2.7 )"
23
24 src_unpack() {
25
26 unpack ${A}
27
28 epatch "${FILESDIR}/${P}-libintl_fix.patch"
29 epatch "${FILESDIR}/${P}-speed.patch"
30
31 cd ${S}
32 # Fix "implausibly old time stamp 1970-01-01 01:00:00":
33 touch share/themes/gnome/popup/remove.png
34
35 # Use our own $CXXFLAGS
36 sed -i -e \
37 "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g;s:OPTFLAGS=\"-O2\":OPTFLAGS=\"\":g" \
38 configure
39
40 }
41
42 src_compile() {
43
44 append-flags -D_FILE_OFFSET_BITS=64
45
46 myconf="$(use_enable nls) \
47 $(use_enable esd) \
48 $(use_enable oss) \
49 --enable-release"
50 econf ${myconf} || die
51
52 emake || die
53
54 }
55
56 src_install () {
57
58 dodir /usr/bin
59 dodir /usr/share/d4x
60
61 einstall || die
62
63 insinto /usr/share/pixmaps
64 doins share/*.png share/*.xpm
65
66 if use kde
67 then
68 insinto /usr/share/applnk/Internet
69 newins share/nt.desktop d4x.desktop
70 fi
71
72 if use gnome
73 then
74 echo "Categories=Application;Network;" >> ${S}/share/nt.desktop
75 insinto /usr/share/applications
76 newins share/nt.desktop d4x.desktop
77 fi
78
79 rm -rf ${D}/usr/share/d4x/{FAQ*,INSTALL*,README*,LICENSE,AUTHORS,TROUBLES}
80 dodoc AUTHORS COPYING ChangeLog* NEWS PLANS TODO \
81 DOC/{FAQ*,LICENSE,README*,TROUBLES,THANKS}
82
83 }

  ViewVC Help
Powered by ViewVC 1.1.20