diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2013-06-13 16:22:05 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2013-06-13 16:22:05 +0000 |
commit | 7442da246886d1d7bfb50742578cd5f1aef86c79 (patch) | |
tree | adcb509a4e57068e5f670b090751e77644c169ab /net-misc/plowshare | |
parent | Version bump. Migrate to distutils-r1. (diff) | |
download | gentoo-2-7442da246886d1d7bfb50742578cd5f1aef86c79.tar.gz gentoo-2-7442da246886d1d7bfb50742578cd5f1aef86c79.tar.bz2 gentoo-2-7442da246886d1d7bfb50742578cd5f1aef86c79.zip |
Adding myself to maintainers, version bump (bash4-only version)
(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key C74525F2)
Diffstat (limited to 'net-misc/plowshare')
-rw-r--r-- | net-misc/plowshare/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/plowshare/metadata.xml | 3 | ||||
-rw-r--r-- | net-misc/plowshare/plowshare-20130520.ebuild | 85 |
3 files changed, 95 insertions, 3 deletions
diff --git a/net-misc/plowshare/ChangeLog b/net-misc/plowshare/ChangeLog index 7952150d4f0d..6dc1607782a0 100644 --- a/net-misc/plowshare/ChangeLog +++ b/net-misc/plowshare/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/plowshare -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.21 2012/08/17 16:51:21 kensington Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.22 2013/06/13 16:22:05 voyageur Exp $ + +*plowshare-20130520 (13 Jun 2013) + + 13 Jun 2013; Bernard Cafarelli <voyageur@gentoo.org> + +plowshare-20130520.ebuild, metadata.xml: + Adding myself to maintainers, version bump (bash4-only version) 17 Aug 2012; Michael Palimaka <kensington@gentoo.org> -plowshare-20120609-r1.ebuild, -plowshare-20120609.ebuild: diff --git a/net-misc/plowshare/metadata.xml b/net-misc/plowshare/metadata.xml index a4f950e2619f..bb68408abafc 100644 --- a/net-misc/plowshare/metadata.xml +++ b/net-misc/plowshare/metadata.xml @@ -2,7 +2,8 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer> - <email>maintainer-needed@gentoo.org</email> + <email>voyageur@gentoo.org</email> + <name>Bernard Cafarelli</name> </maintainer> <use> <flag name="scripts">Install some additional helper scripts</flag> diff --git a/net-misc/plowshare/plowshare-20130520.ebuild b/net-misc/plowshare/plowshare-20130520.ebuild new file mode 100644 index 000000000000..29d6d7a7d3d8 --- /dev/null +++ b/net-misc/plowshare/plowshare-20130520.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-20130520.ebuild,v 1.1 2013/06/13 16:22:05 voyageur Exp $ + +EAPI=5 + +inherit bash-completion-r1 + +MY_P="${PN}4-snapshot-git${PV}.2b2d736" + +DESCRIPTION="Command-line downloader and uploader for file-sharing websites" +HOMEPAGE="http://code.google.com/p/plowshare/" +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="bash-completion +javascript scripts view-captcha" + +RDEPEND=" + >=app-shells/bash-4 + || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) ) + || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] ) + net-misc/curl + sys-apps/util-linux + javascript? ( || ( dev-lang/spidermonkey dev-java/rhino ) ) + view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )" +DEPEND="" + +S=${WORKDIR}/${MY_P} + +# NOTES: +# javascript dep should be any javascript interpreter using /usr/bin/js + +src_prepare() { + # Modules using detect_javascript + if ! use javascript; then + sed -i -e 's:^rapidgator.*::' \ + -e 's:^zalaa*::' \ + -e 's:^zippyshare*::' \ + src/modules/config || die "sed failed" + rm src/modules/{rapidgator,zalaa,zipyyshare}.sh || die "rm failed" + fi + + # Don't let 'make install' install docs. + sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed" + + if use bash-completion; then + sed -i -e \ + "s,/usr/local\(/share/plowshare4/modules/config\),${EPREFIX}/usr\1," \ + etc/plowshare.completion || die "sed failed" + fi +} + +src_compile() { + # There is a Makefile but it's not compiling anything, let's not try. + : +} + +src_test() { + # Disable tests because all of them need a working Internet connection. + : +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + + dodoc AUTHORS README + + if use scripts; then + exeinto /usr/bin/ + doexe contrib/{plowdown_{add_remote_loop,loop,parallel}}.sh + fi + + if use bash-completion; then + newbashcomp etc/${PN}.completion ${PN} + fi +} + +pkg_postinst() { + if ! use javascript; then + ewarn "Without javascript you will not be able to use:" + ewarn " rapidgator, zalaa, zippyshare" + fi +} |