summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2011-03-09 02:20:52 +0000
committerMounir Lamouri <volkmar@gentoo.org>2011-03-09 02:20:52 +0000
commit92adc01be2cd498fd4a91439f7eb326bb2d8bd66 (patch)
treee9f9c5817e8fafbd8338212f21b1b13c6c47f16b /net-misc
parentStable for HPPA (bug #357771). (diff)
downloadhistorical-92adc01be2cd498fd4a91439f7eb326bb2d8bd66.tar.gz
historical-92adc01be2cd498fd4a91439f7eb326bb2d8bd66.tar.bz2
historical-92adc01be2cd498fd4a91439f7eb326bb2d8bd66.zip
Version bump to svn revision 1327.
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/plowshare/ChangeLog8
-rw-r--r--net-misc/plowshare/Manifest6
-rw-r--r--net-misc/plowshare/metadata.xml1
-rw-r--r--net-misc/plowshare/plowshare-1327.ebuild98
4 files changed, 110 insertions, 3 deletions
diff --git a/net-misc/plowshare/ChangeLog b/net-misc/plowshare/ChangeLog
index 64d47d944a04..7e1ffee7d65b 100644
--- a/net-misc/plowshare/ChangeLog
+++ b/net-misc/plowshare/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/plowshare
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.13 2011/03/06 22:59:05 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.14 2011/03/09 02:20:51 volkmar Exp $
+
+*plowshare-1327 (09 Mar 2011)
+
+ 09 Mar 2011; Mounir Lamouri <volkmar@gentoo.org> +plowshare-1327.ebuild,
+ metadata.xml:
+ Version bump to svn revision 1327.
*plowshare-0.9.4 (06 Mar 2011)
diff --git a/net-misc/plowshare/Manifest b/net-misc/plowshare/Manifest
index f9182b989ca9..a97a8a00ca53 100644
--- a/net-misc/plowshare/Manifest
+++ b/net-misc/plowshare/Manifest
@@ -1,6 +1,8 @@
DIST plowshare-0.9.3.tgz 68435 RMD160 2def471934a2fb4d53a2fd535d22658b17ff8358 SHA1 86e29b592f61c1e623bb882a57f8188b18775080 SHA256 e51e7626b69f46d7040f5dc9e0339e75ef5148ecc498983bc1bcfccd15c48d4c
DIST plowshare-0.9.4.tgz 68193 RMD160 25e5a3cf2a06382cc4927daa4da43fcb335ae159 SHA1 c98fad1464d1d21713dbc454a24b3f740d70ad87 SHA256 ba31937b3eda1b0f77a39f977159ba9e0399a7456c2f0410eccb269976f0d885
+DIST plowshare-SVN-r1327-snapshot.tar.gz 71447 RMD160 875b00e63c0d4040a26c659de5d23a51d372b117 SHA1 29f3be902cb3ca0e6615d588118cea5f7079319e SHA256 37a486472ed9358077ce9b0e90842f2670024d29f161cb7f92360e3305fe0c8f
EBUILD plowshare-0.9.3.ebuild 3146 RMD160 0c956e9ed90046344e25aa347e743d90b4e8deac SHA1 5c22e43afb0833adc5b1d1a5173d7b4d37617680 SHA256 e2f5d9f83642e93b6954a902f11b24b9cd687fb4da9074390fdbbc0ac2cc01fb
EBUILD plowshare-0.9.4.ebuild 3086 RMD160 845b0b5c7af49c6bf5ca80d562b2d85546dd10f7 SHA1 eb33e15d62b46e8056427769db142cea25ff8722 SHA256 c66f3b161f40f60162ef3fc82825f660823c980967969ec7dead89d89edc4470
-MISC ChangeLog 2301 RMD160 5b66d3e12606bcec58264d5a5513be9e3ac781e5 SHA1 597035ade3810d93c28b86828861e5663571d34e SHA256 b77b3815b4c8777941c2dc5b92a07abbcaacf40f08ea993ed7c6fcda78946d72
-MISC metadata.xml 331 RMD160 92ad07c059e3471b47ab1ffc1fbafd7c5dbdd506 SHA1 2da77f69f8270b43240291387c75798f839fb7b3 SHA256 8a31eb75ee0cac69ada8f6892668e6bde21c48eed717289f32236ec1c2f6cad5
+EBUILD plowshare-1327.ebuild 2816 RMD160 24cd66c347bd6abddef1e072128b3478cdfb9301 SHA1 bf5a63e37270fa67afa62d7f83b5bde5ca023ff9 SHA256 3b1d587b0ca4a8cab4cffe909d40b64f1d79996ebee0f23205131b09ab1158d9
+MISC ChangeLog 2461 RMD160 da33b048e51f14c1bd6b36d9a0c4658c12ab3877 SHA1 a6cc00ad55059f74141743d18c0f72961d2a1278 SHA256 a559f95077a5e53f4fb9f3600eff665f724675ee9ca02cc3159eeef0bed28164
+MISC metadata.xml 400 RMD160 68a619edab6b2b019b4c29995ec6c3ffcdc04b91 SHA1 5bbbfb4eff5b0477d5a1b1b4bdd60d9ad4a83c07 SHA256 16a2677d37e1f63f8efd793e4cfe6257ccd46235f7b6048bf4fac7c4180c21e5
diff --git a/net-misc/plowshare/metadata.xml b/net-misc/plowshare/metadata.xml
index 7daff8077c08..82a19b34037b 100644
--- a/net-misc/plowshare/metadata.xml
+++ b/net-misc/plowshare/metadata.xml
@@ -7,6 +7,7 @@
<name>Mounir Lamouri</name>
</maintainer>
<use>
+ <flag name="scripts">Install some additional helper scripts</flag>
<flag name="view-captcha">View captcha with aview</flag>
</use>
</pkgmetadata>
diff --git a/net-misc/plowshare/plowshare-1327.ebuild b/net-misc/plowshare/plowshare-1327.ebuild
new file mode 100644
index 000000000000..eab404f2cd0d
--- /dev/null
+++ b/net-misc/plowshare/plowshare-1327.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-1327.ebuild,v 1.1 2011/03/09 02:20:52 volkmar Exp $
+
+EAPI="2"
+
+MY_P="${PN}-SVN-r${PV}-snapshot"
+
+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="+javascript +perl scripts view-captcha"
+
+RDEPEND="
+ javascript? ( dev-lang/spidermonkey )
+ perl? ( dev-lang/perl
+ media-gfx/imagemagick[perl] )
+ view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )
+ app-shells/bash
+ || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) )
+ app-text/tesseract[tiff]
+ || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] )
+ net-misc/curl
+ sys-apps/util-linux"
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+# NOTES:
+# spidermonkey dep should be any javascript interpreter using /usr/bin/js
+
+# TODO:
+# dev-java/rhino could probably be an alternative for spidermonkey
+
+src_prepare() {
+ if ! use javascript; then
+ sed -i -e 's:^\(MODULES=".*\)mediafire:\1:' \
+ -e 's:^\(MODULES=".*\)zshare:\1:' \
+ -e 's:^\(MODULES=\".*\)badongo:\1:' \
+ src/{delete,download,list,upload}.sh || die "sed failed"
+ rm src/modules/{mediafire,zshare,badongo}.sh || die "rm failed"
+ fi
+ if ! use perl; then
+ sed -i -e 's:^\(MODULES=\".*\)netload_in:\1:' \
+ -e 's:^\(MODULES=\".*\)badongo:\1:' \
+ src/{delete,download,list,upload}.sh || die "sed failed"
+ rm src/modules/netload_in.sh || die "rm failed"
+ if use javascript; then
+ rm src/modules/badongo.sh || die "rm failed"
+ fi
+
+ # Don't install perl file helpers.
+ sed -i -e 's:\(.*src/lib.sh\).*:\1:' Makefile || die "sed failed"
+ fi
+
+ # Don't let 'make install' install docs.
+ sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed"
+}
+
+src_compile() {
+ # There is a Makefile but it's not compiling anything, let's not try.
+ :
+}
+
+src_test() {
+ # don't use test_modules.sh because it needs a working internet connection
+ if ! use perl; then
+ sed -i -e "s:\(.*\.pl\):#\1:" test/test_lib.sh || die "sed failed"
+ fi
+ ./test/test_lib.sh || die "test failed"
+}
+
+src_install() {
+ DESTDIR="${D}" PREFIX="/usr" emake install || "emake install failed"
+
+ dodoc CHANGELOG README || die "dodoc failed"
+
+ if use scripts; then
+ exeinto /usr/bin/
+ doexe contrib/{caturl,plowdown_{add_remote_loop,loop,parallel}}.sh \
+ || die "doins failed"
+ fi
+}
+
+pkg_postinst() {
+ if ! use javascript; then
+ ewarn "Without javascript you will not be able to use:"
+ ewarn " zshare, mediafire and badongo."
+ fi
+ if ! use perl; then
+ ewarn "Without perl you will not be able to use:"
+ ewarn " netload.in and badongo"
+ fi
+}