summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2010-02-15 22:29:12 +0000
committerMounir Lamouri <volkmar@gentoo.org>2010-02-15 22:29:12 +0000
commitd115412fd1baf9c8ed2e1b7d69e17bd1d571af53 (patch)
tree0b2a46c99a50416fe6aafd477b0cd2a9e3a3013a /net-misc
parentxine-ui fix for libpng 1.4 (diff)
downloadgentoo-2-d115412fd1baf9c8ed2e1b7d69e17bd1d571af53.tar.gz
gentoo-2-d115412fd1baf9c8ed2e1b7d69e17bd1d571af53.tar.bz2
gentoo-2-d115412fd1baf9c8ed2e1b7d69e17bd1d571af53.zip
Version bump to 0.9.1
(Portage version: 15321-svn/cvs/Linux ppc)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/plowshare/ChangeLog7
-rw-r--r--net-misc/plowshare/plowshare-0.9.1.ebuild94
2 files changed, 100 insertions, 1 deletions
diff --git a/net-misc/plowshare/ChangeLog b/net-misc/plowshare/ChangeLog
index 2ca5f726e6a9..f3acb193b3b1 100644
--- a/net-misc/plowshare/ChangeLog
+++ b/net-misc/plowshare/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/plowshare
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.7 2010/02/09 18:38:45 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.8 2010/02/15 22:29:12 volkmar Exp $
+
+*plowshare-0.9.1 (15 Feb 2010)
+
+ 15 Feb 2010; Mounir Lamouri <volkmar@gentoo.org> +plowshare-0.9.1.ebuild:
+ Version bump to 0.9.1
*plowshare-0.9 (09 Feb 2010)
diff --git a/net-misc/plowshare/plowshare-0.9.1.ebuild b/net-misc/plowshare/plowshare-0.9.1.ebuild
new file mode 100644
index 000000000000..54affb42469d
--- /dev/null
+++ b/net-misc/plowshare/plowshare-0.9.1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-0.9.1.ebuild,v 1.1 2010/02/15 22:29:12 volkmar Exp $
+
+EAPI="2"
+
+DESCRIPTION="Command-line downloader and uploader for file-sharing websites"
+HOMEPAGE="http://code.google.com/p/plowshare/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples +javascript +perl 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
+ app-text/tesseract[tiff]
+ || ( app-text/tesseract[linguas_en] >=app-text/tesseract-2.04-r1 )
+ media-gfx/imagemagick[tiff]
+ net-misc/curl
+ sys-apps/util-linux"
+DEPEND=""
+
+# NOTES:
+# spidermonkey dep should be any javascript interpreter using /usr/bin/js
+# linguas_en is a workaround for bug 287373 and bug 297991
+
+src_prepare() {
+ if ! use javascript; then
+ sed -i -e 's:^\(MODULES=".*\)mediafire:\1:' \
+ -e 's:^\(MODULES=".*\)zshare:\1:' \
+ src/{delete,download,upload}.sh || die "sed failed"
+ rm src/modules/{mediafire,zshare}.sh || die "rm failed"
+ fi
+ if ! use perl; then
+ sed -i -e 's:^\(MODULES=\".*\)netload_in:\1:' \
+ -e 's:^\(MODULES=\".*\)loadfiles:\1:' \
+ src/{delete,download,upload}.sh || die "sed failed"
+ rm src/modules/{loadfiles,netload_in}.sh || die "rm failed"
+ fi
+}
+
+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() {
+ insinto /usr/share/${PN}
+ doins src/lib.sh || die "doins failed"
+
+ if use perl; then
+ doins src/strip_{single_color,grey}.pl || die "doins failed"
+ fi
+
+ insinto /usr/share/${PN}/modules
+ doins -r src/modules/* || die "doins failed"
+
+ insinto /usr/share/${PN}/tesseract
+ doins -r src/tesseract/* || die "doins failed"
+
+ exeinto /usr/share/${PN}
+ doexe src/{delete,download,upload}.sh || die "doexe failed"
+
+ dosym /usr/share/${PN}/download.sh /usr/bin/plowdown
+ dosym /usr/share/${PN}/upload.sh /usr/bin/plowup
+ dosym /usr/share/${PN}/delete.sh /usr/bin/plowdel
+
+ dodoc CHANGELOG README || die "dodoc failed"
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/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 zshare and mediafire"
+ fi
+ if ! use perl; then
+ ewarn "Without perl you will not be able to use netload.in and loadfiles.in"
+ fi
+}