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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Oct 13 18:15:22 2012 UTC (20 months, 3 weeks ago) by wired
Branch: MAIN
Changes since 1.6: +26 -26 lines
version bump, sync with live ebuild. bugs fixed: #412843 #416175 #420565 and #434084

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

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.5 2012/05/03 06:01:03 jdhore Exp $
4
5 EAPI="4"
6
7 IUSE="aria2 +curl gstreamer hide-temp-files libnotify nls"
8 if [[ ${PV} == *9999* ]]; then
9 inherit autotools git-2
10 KEYWORDS=""
11 SRC_URI=""
12 EGIT_REPO_URI="git://urlget.git.sourceforge.net/gitroot/urlget/uget"
13 else
14 KEYWORDS="~amd64 ~ppc ~x86"
15 SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz"
16 fi
17
18 DESCRIPTION="Download manager using gtk+ and libcurl"
19 HOMEPAGE="http://urlget.sourceforge.net/"
20
21 LICENSE="LGPL-2.1"
22 SLOT="0"
23
24 REQUIRED_USE="|| ( aria2 curl )"
25
26 RDEPEND="
27 dev-libs/libpcre
28 >=dev-libs/glib-2.32:2
29 >=x11-libs/gtk+-3.4:3
30 curl? ( >=net-misc/curl-7.10 )
31 gstreamer? ( media-libs/gstreamer )
32 libnotify? ( x11-libs/libnotify )
33 "
34 DEPEND="${RDEPEND}
35 dev-util/intltool
36 virtual/pkgconfig
37 sys-devel/gettext"
38
39 src_prepare() {
40 if [[ ${PV} == *9999* ]]; then
41 eautoreconf
42 intltoolize || die "intltoolize failed"
43 eautoreconf
44 fi
45 }
46
47 src_configure() {
48 econf $(use_enable nls) \
49 $(use_enable curl plugin-curl) \
50 $(use_enable aria2 plugin-aria2) \
51 $(use_enable gstreamer) \
52 $(use_enable hide-temp-files hidden) \
53 $(use_enable libnotify notify)
54 }
55
56 src_compile() {
57 emake || die "emake failed"
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install
62
63 # the build system forgets this :p
64 dobin uget-cmd/uget-cmd
65
66 if [[ ${PV} == *9999* ]]; then
67 dodoc AUTHORS ChangeLog README
68 else
69 dodoc AUTHORS ChangeLog NEWS README
70 fi
71 }
72
73 pkg_postinst() {
74 if use aria2; then
75 echo
76 elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been"
77 elog "built. This allows you to control a local or remote instance of aria2"
78 elog "through xmlrpc. To use aria2 locally you have to emerge"
79 elog "net-misc/aria2 with the xmlrpc USE enabled manually."
80 echo
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20