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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Apr 13 21:50:02 2015 UTC (4 years, 9 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, new homepage, modules are now fetched by user with plowmod command, drop some old versions

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 00F7AB331B0F097F)

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

  ViewVC Help
Powered by ViewVC 1.1.20