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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 10 20:39:41 2014 UTC (5 years, 9 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, rename older ebuild for new upstream versioning

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C74525F2)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-20131130.ebuild,v 1.1 2014/01/05 21:33:45 voyageur Exp $
4
5 EAPI=5
6
7 inherit bash-completion-r1
8
9 MY_P="${PN}4-snapshot-git${PV}.3c63b19"
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 scripts view-captcha"
19
20 RDEPEND="
21 >=app-shells/bash-4
22 || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) )
23 || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] )
24 net-misc/curl
25 sys-apps/util-linux
26 javascript? ( || ( dev-lang/spidermonkey:0 dev-java/rhino ) )
27 view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )"
28 DEPEND=""
29
30 S=${WORKDIR}/${MY_P}
31
32 # NOTES:
33 # javascript dep should be any javascript interpreter using /usr/bin/js
34
35 # Modules using detect_javascript
36 JS_MODULES="letitbit rapidgator zalaa zippyshare"
37
38 src_prepare() {
39 if ! use javascript; then
40 for module in ${JS_MODULES}; do
41 sed -i -e "s:^${module}.*::" src/modules/config || die "${module} sed failed"
42 rm src/modules/${module}.sh || die "${module} rm failed"
43 done
44 fi
45
46 # Don't let 'make install' install docs.
47 sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed"
48
49 if use bash-completion; then
50 sed -i -e \
51 "s,/usr/local\(/share/plowshare4/modules/config\),${EPREFIX}/usr\1," \
52 etc/plowshare.completion || die "sed failed"
53 fi
54 }
55
56 src_compile() {
57 # There is a Makefile but it's not compiling anything, let's not try.
58 :
59 }
60
61 src_test() {
62 # Disable tests because all of them need a working Internet connection.
63 :
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" PREFIX="/usr" install
68
69 dodoc AUTHORS README
70
71 if use scripts; then
72 exeinto /usr/bin/
73 doexe contrib/{plowdown_{add_remote_loop,loop,parallel}}.sh
74 fi
75
76 if use bash-completion; then
77 newbashcomp etc/${PN}.completion ${PN}
78 fi
79 }
80
81 pkg_postinst() {
82 if ! use javascript; then
83 ewarn "Without javascript you will not be able to use:"
84 ewarn " ${JS_MODULES}"
85 fi
86 }

  ViewVC Help
Powered by ViewVC 1.1.20