diff options
author | James Broadhead <jamesbroadhead@gmail.com> | 2012-08-04 14:06:38 +0100 |
---|---|---|
committer | James Broadhead <jamesbroadhead@gmail.com> | 2012-08-04 14:06:38 +0100 |
commit | 89715eb3f895741781dc7dbc6a2c545ac5f44d8a (patch) | |
tree | 52836e801be7e0908013ca581451c7473cf611fd | |
parent | plowshare: use git-2.eclass, repoman fixes (diff) | |
download | jamesbroadhead-89715eb3f895741781dc7dbc6a2c545ac5f44d8a.tar.gz jamesbroadhead-89715eb3f895741781dc7dbc6a2c545ac5f44d8a.tar.bz2 jamesbroadhead-89715eb3f895741781dc7dbc6a2c545ac5f44d8a.zip |
plowshare: merge from main tree
-rw-r--r-- | net-misc/plowshare/Manifest | 2 | ||||
-rw-r--r-- | net-misc/plowshare/plowshare-99999999.ebuild | 47 |
2 files changed, 29 insertions, 20 deletions
diff --git a/net-misc/plowshare/Manifest b/net-misc/plowshare/Manifest index f85b36c..28d932c 100644 --- a/net-misc/plowshare/Manifest +++ b/net-misc/plowshare/Manifest @@ -1,2 +1,2 @@ -EBUILD plowshare-99999999.ebuild 2666 RMD160 2140c07fe2da2dd59c7309cd0889b7eef8f2507f SHA1 39642d075ff0f2d135b1f4aa756bd8a2ff4f456e SHA256 4741343fc66e6dab52f57d1e7083a2f2fdc14d0ab8342bda647aa18731daa027 +EBUILD plowshare-99999999.ebuild 2866 RMD160 67d772e9f1c0e9a43ba946f8298ad8883813d2f7 SHA1 7998a9e9da6780d216527b2d8262a0fbe4cd3c1b SHA256 81c554b056f9d2d37fb938b818bec7478ea2f71c2556eeee4a9e2198696e3acf MISC metadata.xml 436 RMD160 aabe3a2831078c41ad2f116801aed883928ccb61 SHA1 4cac405f8618abba2ddbb9a093affa62c8e09644 SHA256 570ee354fd5582f16fb1b090baeb3d85faf43f4aaa542a47219813960fa3c073 diff --git a/net-misc/plowshare/plowshare-99999999.ebuild b/net-misc/plowshare/plowshare-99999999.ebuild index abaa9dc..9d8919b 100644 --- a/net-misc/plowshare/plowshare-99999999.ebuild +++ b/net-misc/plowshare/plowshare-99999999.ebuild @@ -4,7 +4,7 @@ EAPI="2" -inherit git-2 +inherit bash-completion-r1 git-2 DESCRIPTION="Command-line downloader and uploader for file-sharing websites" HOMEPAGE="http://code.google.com/p/plowshare/" @@ -13,7 +13,7 @@ EGIT_REPO_URI="https://code.google.com/p/${PN}/" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~x86" -IUSE="+javascript +perl scripts view-captcha" +IUSE="bash-completion +javascript +perl scripts view-captcha" RDEPEND=" javascript? ( dev-lang/spidermonkey ) @@ -36,27 +36,35 @@ DEPEND="" src_prepare() { if ! use javascript; then - sed -i -e 's:^\(MODULES=".*\)mediafire:\1:' \ - -e 's:^\(MODULES=".*\)zshare:\1:' \ - -e 's:^\(MODULES=\".*\)badongo:\1:' \ - src/{delete,download,list,upload}.sh || die "sed failed" - rm src/modules/{mediafire,zshare,badongo}.sh || die "rm failed" + sed -i -e 's:^mediafire.*::' \ + -e 's:^badongo.*::' \ + -e 's:^dataport_cz.*::' \ + -e 's:^1fichier.*::' \ + -e 's:^turbobit.*::' \ + src/modules/config || die "sed failed" + rm src/modules/{mediafire,badongo,dataport_cz,1fichier,turbobit}.sh || die "rm failed" fi if ! use perl; then - sed -i -e 's:^\(MODULES=\".*\)netload_in:\1:' \ - -e 's:^\(MODULES=\".*\)badongo:\1:' \ - src/{delete,download,list,upload}.sh || die "sed failed" + sed -i -e 's:^netload_in.*::' \ + -e 's:^badongo.*::' \ + src/modules/config || die "sed failed" rm src/modules/netload_in.sh || die "rm failed" if use javascript; then rm src/modules/badongo.sh || die "rm failed" fi # Don't install perl file helpers. - sed -i -e 's:\(.*src/lib.sh\).*:\1:' Makefile || die "sed failed" + sed -i -e 's:\(.*src/core.sh\).*:\1:' Makefile || die "sed failed" fi # Don't let 'make install' install docs. sed -i -e "/INSTALL.*DOCDIR/d" Makefile || die "sed failed" + + if use bash-completion; then + sed -i -e \ + 's:CDIR=/usr/local/share/plowshare/modules/config:CDIR=/usr/share/plowshare/modules/config:' \ + etc/plowshare.completion || die "sed failed" + fi } src_compile() { @@ -65,32 +73,33 @@ src_compile() { } src_test() { - # don't use test_modules.sh because it needs a working internet connection - if ! use perl; then - sed -i -e "s:\(.*\.pl\):#\1:" test/test_lib.sh || die "sed failed" - fi - ./test/test_lib.sh || die "test failed" + # Disable tests because all of them need a working Internet connection. + : } src_install() { DESTDIR="${D}" PREFIX="/usr" emake install || die "emake install failed" - dodoc CHANGELOG README || die "dodoc failed" + dodoc AUTHORS CHANGELOG README || die "dodoc failed" if use scripts; then exeinto /usr/bin/ doexe contrib/{caturl,plowdown_{add_remote_loop,loop,parallel}}.sh \ || die "doins failed" fi + + if use bash-completion; then + newbashcomp etc/${PN}.completion ${PN} || die "newbashcomp failed" + fi } pkg_postinst() { if ! use javascript; then ewarn "Without javascript you will not be able to use:" - ewarn " zshare, mediafire and badongo." + ewarn " mediafire, badongo, dataport_cz, 1fichier and turbobit." fi if ! use perl; then ewarn "Without perl you will not be able to use:" - ewarn " netload.in and badongo" + ewarn " netload.in and badongo." fi } |