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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Feb 3 14:39:22 2015 UTC (4 years, 10 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Version bump

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

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-1.0.6.ebuild,v 1.1 2014/10/27 10:26:56 voyageur Exp $
4
5 EAPI=5
6
7 inherit bash-completion-r1
8
9 DESCRIPTION="Command-line downloader and uploader for file-sharing websites"
10 HOMEPAGE="http://code.google.com/p/plowshare/"
11 # Fetched from http://${PN}.googlecode.com/archive/v${PV}.tar.gz
12 SRC_URI="http://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~ppc ~x86"
17 IUSE="bash-completion +javascript view-captcha"
18
19 RDEPEND="
20 >=app-shells/bash-4
21 || ( app-text/recode ( dev-lang/perl dev-perl/HTML-Parser ) )
22 || ( media-gfx/imagemagick[tiff] media-gfx/graphicsmagick[imagemagick,tiff] )
23 net-misc/curl
24 sys-apps/util-linux
25 javascript? ( || ( dev-lang/spidermonkey:0 dev-java/rhino ) )
26 view-captcha? ( || ( media-gfx/aview media-libs/libcaca ) )"
27 DEPEND=""
28
29 # NOTES:
30 # javascript dep should be any javascript interpreter using /usr/bin/js
31
32 # Modules using detect_javascript
33 JS_MODULES="flashx letitbit nowdownload_co oboom rapidgator yourvideohost zalaa zippyshare"
34
35 src_prepare() {
36 if ! use javascript; then
37 for module in ${JS_MODULES}; do
38 sed -i -e "s:^${module}.*::" src/modules/config || die "${module} sed failed"
39 rm src/modules/${module}.sh || die "${module} rm failed"
40 done
41 fi
42
43 # Fix doc install path
44 sed -i -e "/^DOCDIR/s|plowshare4|${P}|" Makefile || die "sed failed"
45
46 if ! use bash-completion
47 then
48 sed -i -e \ "/^install:/s/install_bash_completion//" \
49 Makefile || die "sed failed"
50 fi
51 }
52
53 src_compile() {
54 # There is a Makefile but it's not compiling anything, let's not try.
55 :
56 }
57
58 src_test() {
59 # Disable tests because all of them need a working Internet connection.
60 :
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" PREFIX="/usr" \
65 PLOWSHARE_FORCE_VERSION="${PV}" install
66 }
67
68 pkg_postinst() {
69 if ! use javascript; then
70 ewarn "Without javascript you will not be able to use:"
71 ewarn " ${JS_MODULES}"
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20