/[gentoo-x86]/www-client/uget/uget-1.8.0.ebuild
Gentoo

Contents of /www-client/uget/uget-1.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu May 3 06:01:03 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
Changes since 1.4: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/uget/uget-1.8.0.ebuild,v 1.4 2012/03/08 11:41:25 phajdan.jr Exp $
4
5 EAPI="4"
6
7 inherit base
8
9 DESCRIPTION="Download manager using gtk+ and libcurl"
10 HOMEPAGE="http://urlget.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="aria2 +curl gstreamer gtk3 hide-temp-files libnotify nls"
17
18 REQUIRED_USE="|| ( aria2 curl )"
19
20 RDEPEND="
21 dev-libs/libpcre
22 >=dev-libs/glib-2:2
23 !gtk3? (
24 >=x11-libs/gtk+-2.18:2
25 )
26 gtk3? (
27 x11-libs/gtk+:3
28 )
29 curl? ( >=net-misc/curl-7.10 )
30 gstreamer? ( media-libs/gstreamer )
31 libnotify? ( x11-libs/libnotify )
32 "
33 DEPEND="${RDEPEND}
34 dev-util/intltool
35 virtual/pkgconfig
36 sys-devel/gettext"
37
38 src_prepare() {
39 # add missing file, fix tests, bug #376203
40 echo "uglib/UgPlugin-aria2.c" >> po/POTFILES.in ||
41 die "echo in po/POTFILES.in failed"
42 }
43
44 src_configure() {
45 econf $(use_enable nls) \
46 $(use_with gtk3) \
47 $(use_enable curl plugin-curl) \
48 $(use_enable aria2 plugin-aria2) \
49 $(use_enable gstreamer) \
50 $(use_enable hide-temp-files hidden) \
51 $(use_enable libnotify notify)
52 }
53
54 src_compile() {
55 emake || die "emake failed"
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install
60
61 # the build system forgets this :p
62 dobin uget-cmd/uget-cmd
63
64 dodoc AUTHORS ChangeLog NEWS README
65 }
66
67 pkg_postinst() {
68 if use aria2; then
69 echo
70 elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been"
71 elog "built. This allows you to control a local or remote instance of aria2"
72 elog "through xmlrpc. To use aria2 locally you have to emerge"
73 elog "net-misc/aria2 with the xmlrpc USE enabled manually."
74 echo
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20