From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- www-client/uget/Manifest | 3 + .../files/uget-1.10.4-gnutls-backport-fix.patch | 125 +++++++++++++++++++++ .../uget/files/uget-1.10.4-linguas-fix.patch | 14 +++ www-client/uget/files/uget-ar-hardcoded.patch | 26 +++++ www-client/uget/metadata.xml | 23 ++++ www-client/uget/uget-1.10.3-r1.ebuild | 89 +++++++++++++++ www-client/uget/uget-1.10.3.ebuild | 82 ++++++++++++++ www-client/uget/uget-1.10.4.ebuild | 98 ++++++++++++++++ www-client/uget/uget-1.8.0.ebuild | 76 +++++++++++++ www-client/uget/uget-9999.ebuild | 94 ++++++++++++++++ 10 files changed, 630 insertions(+) create mode 100644 www-client/uget/Manifest create mode 100644 www-client/uget/files/uget-1.10.4-gnutls-backport-fix.patch create mode 100644 www-client/uget/files/uget-1.10.4-linguas-fix.patch create mode 100644 www-client/uget/files/uget-ar-hardcoded.patch create mode 100644 www-client/uget/metadata.xml create mode 100644 www-client/uget/uget-1.10.3-r1.ebuild create mode 100644 www-client/uget/uget-1.10.3.ebuild create mode 100644 www-client/uget/uget-1.10.4.ebuild create mode 100644 www-client/uget/uget-1.8.0.ebuild create mode 100644 www-client/uget/uget-9999.ebuild (limited to 'www-client/uget') diff --git a/www-client/uget/Manifest b/www-client/uget/Manifest new file mode 100644 index 000000000000..cb53852a2bf4 --- /dev/null +++ b/www-client/uget/Manifest @@ -0,0 +1,3 @@ +DIST uget-1.10.3.tar.gz 484395 SHA256 2ff3f51a2fc7b927777c81e002032a08f819c18d050b570cd6ca0be76a459324 SHA512 c939832ad2b635e5b1d1e448bf075c13362e3f69f708e6669ad435f6467b258441d5adef34cea176082fa107865c2edd3ceb54c5b9074f0d71f94496e4995a34 WHIRLPOOL 473ec38a4d922481ae50205cf8283d2b9ce259bfcc6f8ef964c5c69f9d6f860e872676e8327d45bca5efd4d22e34d699f9e2b43ac4a2cfdc7c6a8728cc2df640 +DIST uget-1.10.4.tar.gz 576147 SHA256 a25c5cc9af4e87a2c22206f376ffce70697ef743a902ecf028b50a586180a622 SHA512 013654ea6d06e8075bb216082dd85e7a4d1ed8510af4ecaf49c816dbf127f1adb157ca275a574f87900d7980cbe70e1e918fe54f0ceb4d0115da0ba07d4f2273 WHIRLPOOL dfb993029a9019e91a540c7ab98a2b708e726e902f0a13abb0bb52ace592f92b848a5233ff903fd4cbd5cb67fe0fe7c0c36c66704af79482cf40e3dbc5661212 +DIST uget-1.8.0.tar.gz 426031 SHA256 ee9e785990747af85da7701c5add4f1e31f3f404be56dbd9f495149c76b7a937 SHA512 c68c591b3c513c4829dfee735cbe8d4ee2c47aed0c5962002de9462c6c12b731e51756785e834aadaef1cb47182b9e560dd836d2e4861f053ec1f2f447c2c68d WHIRLPOOL 203ae0cbbb46440fdc6a551edb0ffd602bea27c7f9a1b185f2db80d19e04c79e22f158b3a6966354c23130592803253d5f63f143a4eecd841dadc9ed7c515c66 diff --git a/www-client/uget/files/uget-1.10.4-gnutls-backport-fix.patch b/www-client/uget/files/uget-1.10.4-gnutls-backport-fix.patch new file mode 100644 index 000000000000..77e031488641 --- /dev/null +++ b/www-client/uget/files/uget-1.10.4-gnutls-backport-fix.patch @@ -0,0 +1,125 @@ +diff -u -ru uget-1.10.4-orig/configure.ac uget-1.10.4/configure.ac +--- uget-1.10.4-orig/configure.ac 2014-05-08 05:48:17.316939998 +0300 ++++ uget-1.10.4/configure.ac 2014-05-08 05:48:34.668232311 +0300 +@@ -145,23 +145,45 @@ + ) + + if test "x$plugin_curl" = "xyes"; then +- AC_DEFINE(HAVE_PLUGIN_CURL, 1, [Define to 1 to enable cURL plug-in.]) ++ AC_DEFINE(HAVE_PLUGIN_CURL, 1, [Define to 1 to enable cURL plug-in.]) + fi + + ## ---------------- + ## GnuTLS +-AC_ARG_ENABLE( ++AC_ARG_WITH( + [gnutls], +- AC_HELP_STRING([--enable-gnutls], [Enable GnuTLS support.]), +- [enable_gnutls="$enableval"], +- [enable_gnutls="no"] ++ AC_HELP_STRING([--with-gnutls[=@<:@no/auto/yes@:>@]], [Enable GnuTLS support.]), ++ [with_gnutls="$withval"], ++ [with_gnutls="auto"] + ) +-if test "x$enable_gnutls" = "xyes"; then +- PKG_CHECK_MODULES(GNUTLS, gnutls) +- AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if gnutls support is required.]) +- # for ArchLinux +- AC_SUBST(GNUTLS_CFLAGS) +- AC_SUBST(GNUTLS_LIBS) ++if test "x$with_gnutls" != "xno"; then ++# AC_CHECK_HEADER(gcrypt.h, [USE_GNUTLS_GCRYPT=1], [USE_GNUTLS_GCRYPT=0]) ++# if test "$USE_GNUTLS_GCRYPT" = "1"; then ++# LIBGCRYPT_CFLAGS="" ++# AC_SUBST(LIBGCRYPT_CFLAGS) ++# fi ++# AC_CHECK_HEADER(gcrypt/gcrypt.h, [USE_GNUTLS_GCRYPT=1], [USE_GNUTLS_GCRYPT=0]) ++# if test "$USE_GNUTLS_GCRYPT" = "1"; then ++# LIBGCRYPT_CFLAGS="" ++# AC_SUBST(LIBGCRYPT_CFLAGS, [""]) ++# fi ++# AC_CHECK_LIB(gcrypt, gcry_control, [USE_GNUTLS_GCRYPT=1], [USE_GNUTLS_GCRYPT=0]) ++# if test "$USE_GNUTLS_GCRYPT" = "1"; then ++# LIBGCRYPT_LIBS="-lgcrypt" ++# AC_SUBST(LIBGCRYPT_LIBS, ["-lgcrypt"]) ++# fi ++ AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config) ++ if test "x$LIBGCRYPT_CONFIG" = "x" ; then ++ if test "x$with_gnutls" = "xyes"; then ++ AC_MSG_ERROR(Unable to find libgcrypt-config, please install libgcrypt) ++ fi ++ else ++ LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` ++ LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` ++ AC_SUBST(LIBGCRYPT_CFLAGS) ++ AC_SUBST(LIBGCRYPT_LIBS) ++ AC_DEFINE(USE_GNUTLS, 1, [Define to 1 if gnutls support is required.]) ++ fi + fi + + ## ----------------- +@@ -188,7 +210,7 @@ + PKG_CHECK_MODULES(LIBPWMD, [libpwmd-7.0 >= 7.0.0]) + AC_DEFINE(HAVE_LIBPWMD, 1, [Define to 1 if libpwmd support is required.]) + fi +-AM_CONDITIONAL([WITH_LIBPWMD], [test "x$enable_pwmd" = "xyes"]) ++AM_CONDITIONAL([WITH_LIBPWMD], [test "x$enable_pwmd" = "xyes"]) + + ## ----------------- + ## HIDE_TEMPORARY_FILE +diff -u -ru uget-1.10.4-orig/uget-gtk/Makefile.am uget-1.10.4/uget-gtk/Makefile.am +--- uget-1.10.4-orig/uget-gtk/Makefile.am 2014-05-08 05:48:17.341936098 +0300 ++++ uget-1.10.4/uget-gtk/Makefile.am 2014-05-08 05:48:34.668232311 +0300 +@@ -1,10 +1,14 @@ + bin_PROGRAMS = uget-gtk + +-UGET_GTK_LIBS = @GTK_LIBS@ @GIO_LIBS@ @GTHREAD_LIBS@ @CURL_LIBS@ @GNUTLS_LIBS@ @LIBNOTIFY_LIBS@ @APP_INDICATOR_LIBS@ @GSTREAMER_LIBS@ @LIBPWMD_LIBS@ ++UGET_GTK_LIBS = @GTK_LIBS@ @GIO_LIBS@ @GTHREAD_LIBS@ \ ++ @CURL_LIBS@ @LIBGCRYPT_LIBS@ \ ++ @LIBNOTIFY_LIBS@ @APP_INDICATOR_LIBS@ @GSTREAMER_LIBS@ @LIBPWMD_LIBS@ + + # set the include path found by configure + uget_gtk_CPPFLAGS = -DDATADIR='"$(datadir)"' -I$(top_srcdir)/uglib -I$(top_srcdir)/uget-gtk +-uget_gtk_CFLAGS = @LFS_CFLAGS@ @GTK_CFLAGS@ @GIO_CFLAGS@ @GTHREAD_CFLAGS@ @CURL_CFLAGS@ @GNUTLS_CFLAGS@ @LIBNOTIFY_CFLAGS@ @APP_INDICATOR_CFLAGS@ @GSTREAMER_CFLAGS@ @LIBPWMD_CFLAGS@ ++uget_gtk_CFLAGS = @LFS_CFLAGS@ @GTK_CFLAGS@ @GIO_CFLAGS@ @GTHREAD_CFLAGS@ \ ++ @CURL_CFLAGS@ @LIBGCRYPT_CFLAGS@ \ ++ @LIBNOTIFY_CFLAGS@ @APP_INDICATOR_CFLAGS@ @GSTREAMER_CFLAGS@ @LIBPWMD_CFLAGS@ + uget_gtk_LDFLAGS = @LFS_LDFLAGS@ + uget_gtk_LDADD = $(top_builddir)/uglib/libuglib.a $(UGET_GTK_LIBS) + +diff -u -ru uget-1.10.4-orig/uget-gtk/UgApp-gtk-main.c uget-1.10.4/uget-gtk/UgApp-gtk-main.c +--- uget-1.10.4-orig/uget-gtk/UgApp-gtk-main.c 2014-05-08 05:48:17.341936098 +0300 ++++ uget-1.10.4/uget-gtk/UgApp-gtk-main.c 2014-05-08 05:48:43.267889859 +0300 +@@ -113,17 +113,17 @@ + #include + + // GnuTLS +-#ifdef HAVE_GNUTLS ++#ifdef USE_GNUTLS + #include + #include + + GCRY_THREAD_OPTION_PTHREAD_IMPL; + +-void init_gnutls_locks (void) ++void init_locks (void) + { +- gcry_control (GCRYCTL_SET_THREAD_CBS); ++ gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); + } +-#endif // HAVE_GNUTLS ++#endif // USE_GNUTLS + + // GStreamer + #ifdef HAVE_GSTREAMER +@@ -199,8 +199,8 @@ + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + +-#ifdef HAVE_GNUTLS +- init_gnutls_locks (); ++#ifdef USE_GNUTLS ++ init_locks (); + #endif + + string = ug_arg_find_version (argc, argv); diff --git a/www-client/uget/files/uget-1.10.4-linguas-fix.patch b/www-client/uget/files/uget-1.10.4-linguas-fix.patch new file mode 100644 index 000000000000..9482f1e4b84d --- /dev/null +++ b/www-client/uget/files/uget-1.10.4-linguas-fix.patch @@ -0,0 +1,14 @@ +--- po/Makefile.in.in.old 2014-05-08 05:07:04.860525201 +0300 ++++ po/Makefile.in.in 2014-05-08 05:29:13.404227684 +0300 +@@ -56,9 +56,9 @@ + + PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) + +-USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) ++USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(PO_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) + +-USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) ++USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else LLINGUAS=""; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) + + POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) + diff --git a/www-client/uget/files/uget-ar-hardcoded.patch b/www-client/uget/files/uget-ar-hardcoded.patch new file mode 100644 index 000000000000..f9ce7bb2f1df --- /dev/null +++ b/www-client/uget/files/uget-ar-hardcoded.patch @@ -0,0 +1,26 @@ +--- configure.ac 2013-04-23 21:14:51.367980659 +0200 ++++ configure.ac 2013-04-23 21:19:23.096311763 +0200 +@@ -19,6 +19,9 @@ + ## Use library (static library) + AC_PROG_RANLIB + ++## Determine the archiver ++AM_PROG_AR ++ + ## Use libtool (share and static library) (add libtoolize to autogen.sh) + # AC_PROG_LIBTOOL + # LT_PREREQ([2.2.6]) + + +--- uglib/Makefile.in 2013-04-23 21:14:51.405980565 +0200 ++++ uglib/Makefile.in 2013-04-23 21:17:22.358607880 +0200 +@@ -51,7 +51,7 @@ + CONFIG_CLEAN_FILES = + CONFIG_CLEAN_VPATH_FILES = + LIBRARIES = $(noinst_LIBRARIES) +-AR = ar ++AR = @AR@ + ARFLAGS = cru + libuglib_a_AR = $(AR) $(ARFLAGS) + libuglib_a_LIBADD = + diff --git a/www-client/uget/metadata.xml b/www-client/uget/metadata.xml new file mode 100644 index 000000000000..f91cf6615e16 --- /dev/null +++ b/www-client/uget/metadata.xml @@ -0,0 +1,23 @@ + + + + + wired@gentoo.org + Alex Alexander + + + Uget is a download manager. It allows you to classify URLs before downloading + them, and allows you to import URLs from HTML files. Every category has an + independent configuration that can be inherited by each download in that + category. + + + Enable support for net-misc/aria2 through xmlrpc. + You'll find the plugin in the app's settings. + Make temporary files that are used while downloading hidden. + Use x11-libs/gtk+:3 instead of x11-libs/gtk+:2 + + + urlget + + diff --git a/www-client/uget/uget-1.10.3-r1.ebuild b/www-client/uget/uget-1.10.3-r1.ebuild new file mode 100644 index 000000000000..818b61e4123d --- /dev/null +++ b/www-client/uget/uget-1.10.3-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit base autotools + +IUSE="aria2 +curl gstreamer hide-temp-files libnotify nls" +if [[ ${PV} == *9999* ]]; then + inherit git-2 + KEYWORDS="" + SRC_URI="" + EGIT_REPO_URI="git://urlget.git.sourceforge.net/gitroot/urlget/uget" +else + KEYWORDS="~amd64 ~arm ~ppc ~x86" + SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz" +fi + +DESCRIPTION="Download manager using gtk+ and libcurl" +HOMEPAGE="http://www.ugetdm.com" + +LICENSE="LGPL-2.1" +SLOT="0" + +REQUIRED_USE="|| ( aria2 curl )" + +RDEPEND=" + dev-libs/libpcre + >=dev-libs/glib-2.32:2 + >=x11-libs/gtk+-3.4:3 + curl? ( >=net-misc/curl-7.10 ) + gstreamer? ( media-libs/gstreamer:0.10 ) + libnotify? ( x11-libs/libnotify ) + " +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-ar-hardcoded.patch + eautoreconf + + if [[ ${PV} == *9999* ]]; then + intltoolize || die "intltoolize failed" + eautoreconf + fi + + # fix the .desktop file for QA + sed -i 's/Network;FileTransfer/Network;FileTransfer;/g' uget-gtk.desktop +} + +src_configure() { + econf $(use_enable nls) \ + $(use_enable curl plugin-curl) \ + $(use_enable aria2 plugin-aria2) \ + $(use_enable gstreamer) \ + $(use_enable hide-temp-files hidden) \ + $(use_enable libnotify notify) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + # the build system forgets this :p + dobin uget-cmd/uget-cmd + + if [[ ${PV} == *9999* ]]; then + dodoc AUTHORS ChangeLog README + else + dodoc AUTHORS ChangeLog NEWS README + fi +} + +pkg_postinst() { + if use aria2; then + echo + elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been" + elog "built. This allows you to control a local or remote instance of aria2" + elog "through xmlrpc. To use aria2 locally you have to emerge" + elog "net-misc/aria2 with the xmlrpc USE enabled manually." + echo + fi +} diff --git a/www-client/uget/uget-1.10.3.ebuild b/www-client/uget/uget-1.10.3.ebuild new file mode 100644 index 000000000000..f8c30acfdb76 --- /dev/null +++ b/www-client/uget/uget-1.10.3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +IUSE="aria2 +curl gstreamer hide-temp-files libnotify nls" +if [[ ${PV} == *9999* ]]; then + inherit autotools git-2 + KEYWORDS="" + SRC_URI="" + EGIT_REPO_URI="git://urlget.git.sourceforge.net/gitroot/urlget/uget" +else + KEYWORDS="amd64 ppc x86" + SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz" +fi + +DESCRIPTION="Download manager using gtk+ and libcurl" +HOMEPAGE="http://www.ugetdm.com" + +LICENSE="LGPL-2.1" +SLOT="0" + +REQUIRED_USE="|| ( aria2 curl )" + +RDEPEND=" + dev-libs/libpcre + >=dev-libs/glib-2.32:2 + >=x11-libs/gtk+-3.4:3 + curl? ( >=net-misc/curl-7.10 ) + gstreamer? ( media-libs/gstreamer:0.10 ) + libnotify? ( x11-libs/libnotify ) + " +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + if [[ ${PV} == *9999* ]]; then + eautoreconf + intltoolize || die "intltoolize failed" + eautoreconf + fi +} + +src_configure() { + econf $(use_enable nls) \ + $(use_enable curl plugin-curl) \ + $(use_enable aria2 plugin-aria2) \ + $(use_enable gstreamer) \ + $(use_enable hide-temp-files hidden) \ + $(use_enable libnotify notify) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + # the build system forgets this :p + dobin uget-cmd/uget-cmd + + if [[ ${PV} == *9999* ]]; then + dodoc AUTHORS ChangeLog README + else + dodoc AUTHORS ChangeLog NEWS README + fi +} + +pkg_postinst() { + if use aria2; then + echo + elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been" + elog "built. This allows you to control a local or remote instance of aria2" + elog "through xmlrpc. To use aria2 locally you have to emerge" + elog "net-misc/aria2 with the xmlrpc USE enabled manually." + echo + fi +} diff --git a/www-client/uget/uget-1.10.4.ebuild b/www-client/uget/uget-1.10.4.ebuild new file mode 100644 index 000000000000..218135e1bda3 --- /dev/null +++ b/www-client/uget/uget-1.10.4.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils + +LANGUAGES="linguas_ar linguas_be linguas_bn_BD linguas_cs linguas_da linguas_de + linguas_es linguas_fr linguas_hu linguas_id linguas_it linguas_ka_GE linguas_pl + linguas_pt_BR linguas_ru linguas_tr linguas_uk linguas_vi linguas_zh_CN + linguas_zh_TW" + +IUSE="aria2 +curl gnutls gstreamer hide-temp-files libnotify nls ${LANGUAGES}" + +if [[ ${PV} == *9999* ]]; then + inherit git-2 + KEYWORDS="" + SRC_URI="" + EGIT_REPO_URI="git://git.code.sf.net/p/urlget/uget" +else + KEYWORDS="~amd64 ~arm ~ppc ~x86" + SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz" +fi + +DESCRIPTION="Download manager using gtk+ and libcurl" +HOMEPAGE="http://www.ugetdm.com" + +LICENSE="LGPL-2.1" +SLOT="0" + +REQUIRED_USE="|| ( aria2 curl )" + +RDEPEND=" + dev-libs/libpcre + >=dev-libs/glib-2.32:2 + >=x11-libs/gtk+-3.4:3 + curl? ( >=net-misc/curl-7.10 ) + gnutls? ( net-libs/gnutls dev-libs/libgcrypt ) + gstreamer? ( media-libs/gstreamer:0.10 ) + libnotify? ( x11-libs/libnotify ) + " +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-ar-hardcoded.patch + epatch "${FILESDIR}"/${P}-gnutls-backport-fix.patch + eautoreconf + + if [[ ${PV} == *9999* ]]; then + intltoolize || die "intltoolize failed" + eautoreconf + fi + + # fix LINGUAS not getting applied + epatch "${FILESDIR}"/${PN}-1.10.4-linguas-fix.patch +} + +src_configure() { + econf $(use_enable nls) \ + $(use_enable curl plugin-curl) \ + $(use_enable aria2 plugin-aria2) \ + $(use_with gnutls) \ + $(use_enable gstreamer) \ + $(use_enable hide-temp-files hidden) \ + $(use_enable libnotify notify) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + # the build system forgets this :p + dobin uget-cmd/uget-cmd + + if [[ ${PV} == *9999* ]]; then + dodoc AUTHORS ChangeLog README + else + dodoc AUTHORS ChangeLog NEWS README + fi +} + +pkg_postinst() { + if use aria2; then + echo + elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been" + elog "built. This allows you to control a local or remote instance of aria2" + elog "through xmlrpc. To use aria2 locally you have to emerge" + elog "net-misc/aria2 with the xmlrpc USE enabled manually." + echo + fi +} diff --git a/www-client/uget/uget-1.8.0.ebuild b/www-client/uget/uget-1.8.0.ebuild new file mode 100644 index 000000000000..d0767ddee8d9 --- /dev/null +++ b/www-client/uget/uget-1.8.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit base + +DESCRIPTION="Download manager using gtk+ and libcurl" +HOMEPAGE="http://www.ugetdm.com" +SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="aria2 +curl gstreamer gtk3 hide-temp-files libnotify nls" + +REQUIRED_USE="|| ( aria2 curl )" + +RDEPEND=" + dev-libs/libpcre + >=dev-libs/glib-2:2 + !gtk3? ( + >=x11-libs/gtk+-2.18:2 + ) + gtk3? ( + x11-libs/gtk+:3 + ) + curl? ( >=net-misc/curl-7.10 ) + gstreamer? ( media-libs/gstreamer:0.10 ) + libnotify? ( x11-libs/libnotify ) + " +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + # add missing file, fix tests, bug #376203 + echo "uglib/UgPlugin-aria2.c" >> po/POTFILES.in || + die "echo in po/POTFILES.in failed" +} + +src_configure() { + econf $(use_enable nls) \ + $(use_with gtk3) \ + $(use_enable curl plugin-curl) \ + $(use_enable aria2 plugin-aria2) \ + $(use_enable gstreamer) \ + $(use_enable hide-temp-files hidden) \ + $(use_enable libnotify notify) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + # the build system forgets this :p + dobin uget-cmd/uget-cmd + + dodoc AUTHORS ChangeLog NEWS README +} + +pkg_postinst() { + if use aria2; then + echo + elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been" + elog "built. This allows you to control a local or remote instance of aria2" + elog "through xmlrpc. To use aria2 locally you have to emerge" + elog "net-misc/aria2 with the xmlrpc USE enabled manually." + echo + fi +} diff --git a/www-client/uget/uget-9999.ebuild b/www-client/uget/uget-9999.ebuild new file mode 100644 index 000000000000..852d53c51f06 --- /dev/null +++ b/www-client/uget/uget-9999.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils + +LANGUAGES="linguas_ar linguas_be linguas_bn_BD linguas_cs linguas_da linguas_de + linguas_es linguas_fr linguas_hu linguas_id linguas_it linguas_ka_GE linguas_pl + linguas_pt_BR linguas_ru linguas_tr linguas_uk linguas_vi linguas_zh_CN + linguas_zh_TW" + +IUSE="aria2 +curl gnutls gstreamer hide-temp-files libnotify nls ${LANGUAGES}" + +if [[ ${PV} == *9999* ]]; then + inherit git-2 + KEYWORDS="" + SRC_URI="" + EGIT_REPO_URI="git://git.code.sf.net/p/urlget/uget" +else + KEYWORDS="~amd64 ~arm ~ppc ~x86" + SRC_URI="mirror://sourceforge/urlget/${P}.tar.gz" +fi + +DESCRIPTION="Download manager using gtk+ and libcurl" +HOMEPAGE="http://www.ugetdm.com" + +LICENSE="LGPL-2.1" +SLOT="0" + +REQUIRED_USE="|| ( aria2 curl )" + +RDEPEND=" + dev-libs/libpcre + >=dev-libs/glib-2.32:2 + >=x11-libs/gtk+-3.4:3 + curl? ( >=net-misc/curl-7.10 ) + gnutls? ( net-libs/gnutls dev-libs/libgcrypt ) + gstreamer? ( media-libs/gstreamer:0.10 ) + libnotify? ( x11-libs/libnotify ) + " +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + if [[ ${PV} == *9999* ]]; then + intltoolize || die "intltoolize failed" + eautoreconf + fi + + # fix LINGUAS not getting applied + epatch "${FILESDIR}"/${PN}-1.10.4-linguas-fix.patch +} + +src_configure() { + econf $(use_enable nls) \ + $(use_enable curl plugin-curl) \ + $(use_enable aria2 plugin-aria2) \ + $(use_with gnutls) \ + $(use_enable gstreamer) \ + $(use_enable hide-temp-files hidden) \ + $(use_enable libnotify notify) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + # the build system forgets this :p + dobin uget-cmd/uget-cmd + + if [[ ${PV} == *9999* ]]; then + dodoc AUTHORS ChangeLog README + else + dodoc AUTHORS ChangeLog NEWS README + fi +} + +pkg_postinst() { + if use aria2; then + echo + elog "You've enabled the aria2 USE flag, so the aria2 plug-in has been" + elog "built. This allows you to control a local or remote instance of aria2" + elog "through xmlrpc. To use aria2 locally you have to emerge" + elog "net-misc/aria2 with the xmlrpc USE enabled manually." + echo + fi +} -- cgit v1.2.3-65-gdbad