Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/rutorrent/
Date: Wed, 10 Jan 2018 08:44:49
Message-Id: 1515573870.45e3a1375b6875ff76c73c66da84b6992ab8381b.kensington@gentoo
1 commit: 45e3a1375b6875ff76c73c66da84b6992ab8381b
2 Author: Henning Schild <henning <AT> hennsch <DOT> de>
3 AuthorDate: Wed Jan 10 08:42:14 2018 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 10 08:44:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45e3a137
7
8 www-apps/rutorrent: version bump to 9999
9
10 taken from
11 https://github.com/doctaweeks/junkdrawer-overlay
12 with slight modification
13
14 Closes: https://github.com/gentoo/gentoo/pull/5322
15 Package-Manager: Portage-2.3.14, Repoman-2.3.6
16
17 www-apps/rutorrent/rutorrent-9999.ebuild | 61 ++++++++++++++++++++++++++++++++
18 1 file changed, 61 insertions(+)
19
20 diff --git a/www-apps/rutorrent/rutorrent-9999.ebuild b/www-apps/rutorrent/rutorrent-9999.ebuild
21 new file mode 100644
22 index 00000000000..28165b2caaa
23 --- /dev/null
24 +++ b/www-apps/rutorrent/rutorrent-9999.ebuild
25 @@ -0,0 +1,61 @@
26 +# Copyright 1999-2018 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=6
30 +
31 +inherit webapp
32 +
33 +DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent"
34 +HOMEPAGE="https://github.com/Novik/ruTorrent"
35 +if [[ ${PV} == 9999 ]]; then
36 + inherit git-r3
37 + EGIT_REPO_URI="https://github.com/Novik/ruTorrent.git"
38 +else
39 + SRC_URI="https://github.com/Novik/ruTorrent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 + KEYWORDS="~alpha ~amd64 ~ppc ~x86"
41 +fi
42 +
43 +LICENSE="GPL-2"
44 +IUSE=""
45 +
46 +need_httpd_cgi
47 +
48 +DEPEND="
49 + || ( dev-lang/php[xml,gd] dev-lang/php[xml,gd-external] )
50 +"
51 +RDEPEND="virtual/httpd-php"
52 +
53 +pkg_setup() {
54 + webapp_pkg_setup
55 +}
56 +
57 +src_prepare() {
58 + default
59 + find -name '\.gitignore' -type f -exec rm -rf {} \;
60 + if [[ ${PV} == 9999 ]]; then
61 + rm -rf .git
62 + fi
63 +}
64 +
65 +src_install() {
66 + webapp_src_preinst
67 +
68 + insinto "${MY_HTDOCSDIR}"
69 + doins -r .
70 +
71 + chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \
72 + "$ED${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
73 +
74 + webapp_serverowned "${MY_HTDOCSDIR}"/share
75 + webapp_serverowned "${MY_HTDOCSDIR}"/share/settings
76 + webapp_serverowned "${MY_HTDOCSDIR}"/share/torrents
77 + webapp_serverowned "${MY_HTDOCSDIR}"/share/users
78 +
79 + webapp_configfile "${MY_HTDOCSDIR}"/conf/.htaccess
80 + webapp_configfile "${MY_HTDOCSDIR}"/conf/config.php
81 + webapp_configfile "${MY_HTDOCSDIR}"/conf/access.ini
82 + webapp_configfile "${MY_HTDOCSDIR}"/conf/plugins.ini
83 + webapp_configfile "${MY_HTDOCSDIR}"/share/.htaccess
84 +
85 + webapp_src_install
86 +}