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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 28 19:50:39 2009 UTC (10 years, 3 months ago) by volkmar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Typo in installed file names.
(Portage version: 14420-svn/cvs/Linux ppc)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/plowshare/plowshare-0.8.ebuild,v 1.1 2009/09/28 00:04:04 volkmar Exp $
4
5 EAPI="2"
6
7 DESCRIPTION="Command-line downloader and uploader for file-sharing websites"
8 HOMEPAGE="http://code.google.com/p/plowshare/"
9 SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~ppc"
14 IUSE="+javascript +megaupload view-captcha"
15
16 RDEPEND="
17 javascript? ( dev-lang/spidermonkey )
18 megaupload? ( dev-lang/python
19 dev-python/imaging )
20 view-captcha? ( media-gfx/aview )
21 app-shells/bash
22 app-text/recode
23 app-text/tesseract
24 media-gfx/imagemagick[tiff]
25 net-misc/curl
26 sys-apps/util-linux"
27 DEPEND=""
28
29 # NOTES:
30 # dev-lang/spidermonkey is actually any javascript interpreter using /usr/bin/js
31
32 src_prepare() {
33 if ! use megaupload; then
34 sed -i -e "s: megaupload::" src/upload.sh src/download.sh \
35 || die "sed failed"
36 rm src/modules/megaupload.sh || die "rm failed"
37 fi
38 if ! use javascript; then
39 sed -i -e "s: mediafire::" src/upload.sh src/download.sh \
40 || die "sed failed"
41 sed -i -e "s: zshare::" src/upload.sh src/download.sh \
42 || die "sed failed"
43 rm src/modules/{mediafire,zshare}.sh
44 fi
45 }
46
47 src_test() {
48 ./test/test_lib.sh || die "test failed"
49 }
50
51 src_install() {
52 insinto /usr/share/${PN}
53 doins src/lib.sh || die "doins failed"
54
55 insinto /usr/share/${PN}/modules
56 doins -r src/modules/* || die "doins failed"
57
58 exeinto /usr/share/${PN}
59 doexe src/{download,upload}.sh || die "doexe failed"
60
61 dosym /usr/share/${PN}/download.sh /usr/bin/plowdown
62 dosym /usr/share/${PN}/upload.sh /usr/bin/plowdup
63
64 dodoc CHANGELOG README || die "dodoc failed"
65 }
66
67 pkg_postinst() {
68 if ! use javascript; then
69 ewarn "Without javascript you will not be able to use zshare and mediafire"
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20