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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 16 07:50:35 2012 UTC (7 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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-20110914.ebuild,v 1.1 2011/09/18 02:17:50 volkmar Exp $
4
5 EAPI="2"
6
7 inherit bash-completion-r1
8
9 MY_P="${PN}-snapshot-git${PV}"
10
11 DESCRIPTION="Command-line downloader and uploader for file-sharing websites"
12 HOMEPAGE="http://code.google.com/p/plowshare/"
13 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~ppc ~x86"
18 IUSE="bash-completion +javascript +perl scripts view-captcha"
19
20 RDEPEND="
21 javascript? ( dev-lang/spidermonkey )
22 perl? ( dev-lang/perl
23 media-gfx/imagemagick[perl] )
24 view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )
25 app-shells/bash
26 || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) )
27 app-text/tesseract[tiff]
28 || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] )
29 net-misc/curl
30 sys-apps/util-linux"
31 DEPEND=""
32
33 S=${WORKDIR}/${MY_P}
34
35 # NOTES:
36 # spidermonkey dep should be any javascript interpreter using /usr/bin/js
37
38 # TODO:
39 # dev-java/rhino could probably be an alternative for spidermonkey
40
41 src_prepare() {
42 if ! use javascript; then
43 sed -i -e 's:^mediafire.*::' \
44 -e 's:^zshare.*::' \
45 -e 's:^badongo.*::' \
46 -e 's:^dataport_cz.*::' \
47 -e 's:^1fichier.*::' \
48 src/modules/config || die "sed failed"
49 rm src/modules/{mediafire,zshare,badongo,dataport_cz,1fichier}.sh || die "rm failed"
50 fi
51 if ! use perl; then
52 sed -i -e 's:^netload_in.*::' \
53 -e 's:^badongo.*::' \
54 src/modules/config || die "sed failed"
55 rm src/modules/netload_in.sh || die "rm failed"
56 if use javascript; then
57 rm src/modules/badongo.sh || die "rm failed"
58 fi
59
60 # Don't install perl file helpers.
61 sed -i -e 's:\(.*src/core.sh\).*:\1:' Makefile || die "sed failed"
62 fi
63
64 # Don't let 'make install' install docs.
65 sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed"
66
67 if use bash-completion; then
68 sed -i -e \
69 's:CDIR=/usr/local/share/plowshare/modules/config:CDIR=/usr/share/plowshare/modules/config:' \
70 etc/plowshare.completion || die "sed failed"
71 fi
72 }
73
74 src_compile() {
75 # There is a Makefile but it's not compiling anything, let's not try.
76 :
77 }
78
79 src_test() {
80 # Disable tests because all of them need a working Internet connection.
81 :
82 }
83
84 src_install() {
85 DESTDIR="${D}" PREFIX="/usr" emake install || die "emake install failed"
86
87 dodoc AUTHORS CHANGELOG README || die "dodoc failed"
88
89 if use scripts; then
90 exeinto /usr/bin/
91 doexe contrib/{caturl,plowdown_{add_remote_loop,loop,parallel}}.sh \
92 || die "doins failed"
93 fi
94
95 if use bash-completion; then
96 newbashcomp etc/${PN}.completion ${PN} || die "newbashcomp failed"
97 fi
98 }
99
100 pkg_postinst() {
101 if ! use javascript; then
102 ewarn "Without javascript you will not be able to use:"
103 ewarn " zshare, mediafire, badongo, dataport_cz and 1fichier."
104 fi
105 if ! use perl; then
106 ewarn "Without perl you will not be able to use:"
107 ewarn " netload.in and badongo."
108 fi
109 }

  ViewVC Help
Powered by ViewVC 1.1.20