diff options
author | Mounir Lamouri <volkmar@gentoo.org> | 2009-09-28 00:04:04 +0000 |
---|---|---|
committer | Mounir Lamouri <volkmar@gentoo.org> | 2009-09-28 00:04:04 +0000 |
commit | f08d549f96d28e27c277b4ea5d0dabb31500341e (patch) | |
tree | 992c062d6f95accbeec928dc8dc516ede1c282f0 /net-misc/plowshare | |
parent | turn on force feedback support (bug #282032) (diff) | |
download | gentoo-2-f08d549f96d28e27c277b4ea5d0dabb31500341e.tar.gz gentoo-2-f08d549f96d28e27c277b4ea5d0dabb31500341e.tar.bz2 gentoo-2-f08d549f96d28e27c277b4ea5d0dabb31500341e.zip |
Initial commit.
(Portage version: 14420-svn/cvs/Linux ppc)
Diffstat (limited to 'net-misc/plowshare')
-rw-r--r-- | net-misc/plowshare/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/plowshare/metadata.xml | 14 | ||||
-rw-r--r-- | net-misc/plowshare/plowshare-0.8.ebuild | 71 |
3 files changed, 95 insertions, 0 deletions
diff --git a/net-misc/plowshare/ChangeLog b/net-misc/plowshare/ChangeLog new file mode 100644 index 000000000000..538a09b978d3 --- /dev/null +++ b/net-misc/plowshare/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/plowshare +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/ChangeLog,v 1.1 2009/09/28 00:04:04 volkmar Exp $ + +*plowshare-0.8 (28 Sep 2009) + + 28 Sep 2009; Mounir Lamouri <volkmar@gentoo.org> +plowshare-0.8.ebuild, + +metadata.xml: + Initial commit. + diff --git a/net-misc/plowshare/metadata.xml b/net-misc/plowshare/metadata.xml new file mode 100644 index 000000000000..a96abd2bc0b2 --- /dev/null +++ b/net-misc/plowshare/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>volkmar@gentoo.org</email> + <name>Mounir Lamouri</name> + </maintainer> + <use> + <flag name="megaupload">Enable megaupload module</flag> + <flag name="view-captcha">View captcha with aview</flag> + </use> +</pkgmetadata> + diff --git a/net-misc/plowshare/plowshare-0.8.ebuild b/net-misc/plowshare/plowshare-0.8.ebuild new file mode 100644 index 000000000000..99c95b26a5d1 --- /dev/null +++ b/net-misc/plowshare/plowshare-0.8.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-0.8.ebuild,v 1.1 2009/09/28 00:04:04 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="~ppc" +IUSE="+javascript +megaupload view-captcha" + +RDEPEND=" + javascript? ( dev-lang/spidermonkey ) + megaupload? ( dev-lang/python + dev-python/imaging ) + view-captcha? ( media-gfx/aview ) + app-shells/bash + app-text/recode + app-text/tesseract + media-gfx/imagemagick[tiff] + net-misc/curl + sys-apps/util-linux" +DEPEND="" + +# NOTES: +# dev-lang/spidermonkey is actually any javascript interpreter using /usr/bin/js + +src_prepare() { + if ! use megaupload; then + sed -i -e "s: megaupload::" src/upload.sh src/download.sh \ + || die "sed failed" + rm src/modules/megaupload.sh || die "rm failed" + fi + if ! use javascript; then + sed -i -e "s: mediafire::" src/upload.sh src/download.sh \ + || die "sed failed" + sed -i -e "s: zshare::" src/upload.sh src/download.sh \ + || die "sed failed" + rm src/modules/{mediafire,zshare}.sh + fi +} + +src_test() { + ./test/test_lib.sh || die "test failed" +} + +src_install() { + insinto /usr/share/${PN} + doins src/lib.sh || die "doins failed" + + insinto /usr/share/${PN}/modules + doins -r src/modules/* || die "doins failed" + + exeinto /usr/share/${PN} + doexe src/{download,upload}.sh || die "doexe failed" + + dosym /usr/share/${PN}/download.sh /usr/bin/plowdown + dosym /usr/share/${PN}/upload.sh /usr/bin/plowdup + + dodoc CHANGELOG README || die "dodoc failed" +} + +pkg_postinst() { + if ! use javascript; then + ewarn "Without javascript you will not be able to use zshare and mediafire" + fi +} |