Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/amphetadesk/, net-news/amphetadesk/files/
Date: Mon, 02 May 2016 23:16:33
Message-Id: 1462230973.a81d4741363d51ac91c97154b841452360ada5ff.wizardedit@gentoo
1 commit: a81d4741363d51ac91c97154b841452360ada5ff
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 23:05:30 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 23:16:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a81d4741
7
8 net-news/amphetadesk: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-news/amphetadesk/amphetadesk-0.93.1-r1.ebuild | 42 +++++++++++++++++++++++
15 net-news/amphetadesk/files/amphetadesk.initd | 2 +-
16 2 files changed, 43 insertions(+), 1 deletion(-)
17
18 diff --git a/net-news/amphetadesk/amphetadesk-0.93.1-r1.ebuild b/net-news/amphetadesk/amphetadesk-0.93.1-r1.ebuild
19 new file mode 100644
20 index 0000000..0200adc
21 --- /dev/null
22 +++ b/net-news/amphetadesk/amphetadesk-0.93.1-r1.ebuild
23 @@ -0,0 +1,42 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +
30 +DESCRIPTION="AmphetaDesk is a free syndicated news aggregator"
31 +HOMEPAGE="http://www.disobey.com/amphetadesk/"
32 +SRC_URI="mirror://sourceforge/sourceforge/amphetadesk/${PN}-src-v${PV}.tar.gz"
33 +LICENSE="Artistic"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ppc x86"
36 +IUSE=""
37 +DEPEND="dev-lang/perl
38 + dev-perl/libwww-perl
39 + dev-libs/expat
40 + dev-perl/XML-Parser
41 + virtual/perl-IO-Compress"
42 +S=${WORKDIR}/${PN}-src-v${PV}
43 +
44 +src_install() {
45 + dodir /usr/share/amphetadesk
46 + cp "${S}"/AmphetaDesk.pl "${D}"/usr/share/amphetadesk/AmphetaDesk.pl
47 + dodoc README.txt
48 + cp -R "${S}"/data "${D}"/usr/share/amphetadesk
49 + cp -R "${S}"/docs "${D}"/usr/share/amphetadesk
50 + cp -R "${S}"/lib "${D}"/usr/share/amphetadesk
51 + cp -R "${S}"/templates "${D}"/usr/share/amphetadesk
52 + newinitd "${FILESDIR}"/amphetadesk.initd amphetadesk
53 +}
54 +
55 +pkg_postinst() {
56 + # fixes bug #25066 thanks to kloeri
57 + /etc/init.d/depscan.sh
58 +
59 + einfo "AmphetaDesk should be started and stopped with the runscript located at "
60 + einfo "'/etc/init.d/amphetadesk'. You can access AmphetaDesk after it has been"
61 + einfo "started in your browser of choice on port 8888."
62 + einfo ""
63 + ewarn "If you start AmphetaDesk at boot with rc-update don't give it a browser"
64 + ewarn "to start up when it loads (in the options page)"
65 +}
66
67 diff --git a/net-news/amphetadesk/files/amphetadesk.initd b/net-news/amphetadesk/files/amphetadesk.initd
68 index 288a11b..0f2b02c 100644
69 --- a/net-news/amphetadesk/files/amphetadesk.initd
70 +++ b/net-news/amphetadesk/files/amphetadesk.initd
71 @@ -1,4 +1,4 @@
72 -#!/sbin/runscript
73 +#!/sbin/openrc-run
74
75 start() {
76 ebegin "Starting AmphetaDesk"