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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Dec 19 13:58:02 2006 UTC (12 years, 11 months ago) by gustavoz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Cleanup and 2.5.7.1-r1 sparc stable directly to get rid of broken oldie
(Portage version: 2.1.1-r2)
 (Signed Manifest commit)

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.4.1-r1.ebuild,v 1.11 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 sparc"
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 # Use our own $CXXFLAGS
28 cd ${S}
29 cp configure configure.orig
30 sed -e "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g;s:OPTFLAGS=\"-O2\":OPTFLAGS=\"\":g" \
31 configure.orig >configure
32
33 # Fix a miscompile with gcc-3.2.2 and CFLAGS="-O2"
34 # <azarah@gentoo.org> (30 Mar 2003)
35 epatch ${FILESDIR}/${P}-fix-statusbar-crash.patch
36
37 # Fix bad #elif directives in sndserv.cc for big endian machines
38 # <weeve@gentoo.org> (28 Mar 2004)
39 use sparc && epatch ${FILESDIR}/${PN}-sndserv-bigendian.patch
40 }
41
42 src_compile() {
43
44 econf --enable-release \
45 $(use_enable oss) \
46 $(use_enable esd) \
47 $(use_enable nls) || die "econf failed"
48
49 # workaround unsupported gtk_ calls for >=x11-libs/gtk+-2.2.4
50 sed -e 's:.*GTK_DISABLE_DEPRECATED.*::' -i ${S}/config.h
51
52 emake || die
53 }
54
55 src_install () {
56
57 dodir /usr/bin
58 dodir /usr/share/d4x
59
60 einstall || die
61
62 insinto /usr/share/pixmaps
63 doins share/*.png share/*.xpm
64
65 if use kde
66 then
67 insinto /usr/share/applnk/Internet
68 newins share/nt.desktop d4x.desktop
69 fi
70
71 if use gnome
72 then
73 echo "Categories=Application;Network;" >> ${S}/share/nt.desktop
74 insinto /usr/share/applications
75 newins share/nt.desktop d4x.desktop
76 fi
77
78 rm -rf ${D}/usr/share/d4x/{FAQ*,INSTALL*,README*,LICENSE,NAMES,TROUBLES}
79 dodoc AUTHORS COPYING ChangeLog* NEWS PLANS TODO \
80 DOC/{FAQ*,LICENSE,NAMES,README*,TROUBLES,THANKS}
81 }

  ViewVC Help
Powered by ViewVC 1.1.20