/[gentoo-x86]/net-misc/plowshare/plowshare-1327.ebuild
Gentoo

Contents of /net-misc/plowshare/plowshare-1327.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 16 07:50:36 2012 UTC (7 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop maintainer as he is not able to maintain this anymore, drop old.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-1327.ebuild,v 1.2 2011/04/10 07:12:05 tove Exp $
4
5 EAPI="2"
6
7 MY_P="${PN}-SVN-r${PV}-snapshot"
8
9 DESCRIPTION="Command-line downloader and uploader for file-sharing websites"
10 HOMEPAGE="http://code.google.com/p/plowshare/"
11 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~ppc ~x86"
16 IUSE="+javascript +perl scripts view-captcha"
17
18 RDEPEND="
19 javascript? ( dev-lang/spidermonkey )
20 perl? ( dev-lang/perl
21 media-gfx/imagemagick[perl] )
22 view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )
23 app-shells/bash
24 || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) )
25 app-text/tesseract[tiff]
26 || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] )
27 net-misc/curl
28 sys-apps/util-linux"
29 DEPEND=""
30
31 S=${WORKDIR}/${MY_P}
32
33 # NOTES:
34 # spidermonkey dep should be any javascript interpreter using /usr/bin/js
35
36 # TODO:
37 # dev-java/rhino could probably be an alternative for spidermonkey
38
39 src_prepare() {
40 if ! use javascript; then
41 sed -i -e 's:^\(MODULES=".*\)mediafire:\1:' \
42 -e 's:^\(MODULES=".*\)zshare:\1:' \
43 -e 's:^\(MODULES=\".*\)badongo:\1:' \
44 src/{delete,download,list,upload}.sh || die "sed failed"
45 rm src/modules/{mediafire,zshare,badongo}.sh || die "rm failed"
46 fi
47 if ! use perl; then
48 sed -i -e 's:^\(MODULES=\".*\)netload_in:\1:' \
49 -e 's:^\(MODULES=\".*\)badongo:\1:' \
50 src/{delete,download,list,upload}.sh || die "sed failed"
51 rm src/modules/netload_in.sh || die "rm failed"
52 if use javascript; then
53 rm src/modules/badongo.sh || die "rm failed"
54 fi
55
56 # Don't install perl file helpers.
57 sed -i -e 's:\(.*src/lib.sh\).*:\1:' Makefile || die "sed failed"
58 fi
59
60 # Don't let 'make install' install docs.
61 sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed"
62 }
63
64 src_compile() {
65 # There is a Makefile but it's not compiling anything, let's not try.
66 :
67 }
68
69 src_test() {
70 # don't use test_modules.sh because it needs a working internet connection
71 if ! use perl; then
72 sed -i -e "s:\(.*\.pl\):#\1:" test/test_lib.sh || die "sed failed"
73 fi
74 ./test/test_lib.sh || die "test failed"
75 }
76
77 src_install() {
78 DESTDIR="${D}" PREFIX="/usr" emake install || die "emake install failed"
79
80 dodoc CHANGELOG README || die "dodoc failed"
81
82 if use scripts; then
83 exeinto /usr/bin/
84 doexe contrib/{caturl,plowdown_{add_remote_loop,loop,parallel}}.sh \
85 || die "doins failed"
86 fi
87 }
88
89 pkg_postinst() {
90 if ! use javascript; then
91 ewarn "Without javascript you will not be able to use:"
92 ewarn " zshare, mediafire and badongo."
93 fi
94 if ! use perl; then
95 ewarn "Without perl you will not be able to use:"
96 ewarn " netload.in and badongo"
97 fi
98 }

  ViewVC Help
Powered by ViewVC 1.1.20