1 |
commit: f8faca5c19419e40adb47d84689beabe7225bea6 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 19:13:40 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 22:21:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8faca5c |
7 |
|
8 |
net-im/pyicq-t: 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-im/pyicq-t/files/pyicq-t-0.8-initd-r1 | 4 +-- |
15 |
net-im/pyicq-t/pyicq-t-0.8.1.5-r5.ebuild | 55 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 57 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 |
19 |
index 8c46bc6..cc9057e 100644 |
20 |
--- a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 |
21 |
+++ b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2013 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-im/pyicq-t/pyicq-t-0.8.1.5-r5.ebuild b/net-im/pyicq-t/pyicq-t-0.8.1.5-r5.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..a4d1d38 |
34 |
--- /dev/null |
35 |
+++ b/net-im/pyicq-t/pyicq-t-0.8.1.5-r5.ebuild |
36 |
@@ -0,0 +1,55 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI="6" |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+inherit eutils python-single-r1 systemd |
44 |
+ |
45 |
+MY_P="${P/pyicq-t/pyicqt}" |
46 |
+DESCRIPTION="Python based jabber transport for ICQ" |
47 |
+HOMEPAGE="https://code.google.com/p/pyicqt/" |
48 |
+SRC_URI="https://pyicqt.googlecode.com/files/${MY_P}.tar.gz" |
49 |
+S="${WORKDIR}/${MY_P}" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="webinterface" |
55 |
+ |
56 |
+DEPEND="net-im/jabber-base" |
57 |
+RDEPEND="${DEPEND} |
58 |
+ dev-python/twisted-core[${PYTHON_USEDEP}] |
59 |
+ dev-python/twisted-words[${PYTHON_USEDEP}] |
60 |
+ dev-python/twisted-web[${PYTHON_USEDEP}] |
61 |
+ webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] ) |
62 |
+ dev-python/pillow[${PYTHON_USEDEP}]" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ eapply "${FILESDIR}/${P}-python26-warnings.diff" |
66 |
+ eapply "${FILESDIR}/${P}-pillow-imaging.patch" |
67 |
+ eapply_user |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ python_moduleinto ${PN} |
72 |
+ cp PyICQt.py ${PN}.py || die |
73 |
+ python_domodule ${PN}.py data tools src |
74 |
+ |
75 |
+ insinto /etc/jabber |
76 |
+ newins config_example.xml ${PN}.xml |
77 |
+ fperms 600 /etc/jabber/${PN}.xml |
78 |
+ fowners jabber:jabber /etc/jabber/${PN}.xml |
79 |
+ fperms 755 "$(python_get_sitedir)/${PN}/${PN}.py" |
80 |
+ sed -i \ |
81 |
+ -e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \ |
82 |
+ -e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \ |
83 |
+ "${ED}/etc/jabber/${PN}.xml" || die |
84 |
+ |
85 |
+ newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN} |
86 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
87 |
+ sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \ |
88 |
+ "${ED}/etc/init.d/${PN}" "${ED}/usr/lib/systemd/system/${PN}.service" || die |
89 |
+ |
90 |
+ python_fix_shebang "${D}$(python_get_sitedir)/${PN}" |
91 |
+} |