Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/pyicq-t: pyicq-t-0.8.1.5-r4.ebuild ChangeLog
Date: Sun, 30 Mar 2014 13:44:17
Message-Id: 20140330134413.4CDE92005C@flycatcher.gentoo.org
1 pacho 14/03/30 13:44:13
2
3 Modified: ChangeLog
4 Added: pyicq-t-0.8.1.5-r4.ebuild
5 Log:
6 Add unit file (#504150 by Michael Hampicke)
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.28 net-im/pyicq-t/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pyicq-t/ChangeLog?rev=1.28&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pyicq-t/ChangeLog?rev=1.28&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pyicq-t/ChangeLog?r1=1.27&r2=1.28
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-im/pyicq-t/ChangeLog,v
20 retrieving revision 1.27
21 retrieving revision 1.28
22 diff -u -r1.27 -r1.28
23 --- ChangeLog 14 Sep 2013 23:01:18 -0000 1.27
24 +++ ChangeLog 30 Mar 2014 13:44:13 -0000 1.28
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-im/pyicq-t
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/ChangeLog,v 1.27 2013/09/14 23:01:18 hanno Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/ChangeLog,v 1.28 2014/03/30 13:44:13 pacho Exp $
31 +
32 +*pyicq-t-0.8.1.5-r4 (30 Mar 2014)
33 +
34 + 30 Mar 2014; Pacho Ramos <pacho@g.o> +files/pyicq-t.service,
35 + +pyicq-t-0.8.1.5-r4.ebuild:
36 + Add unit file (#504150 by Michael Hampicke)
37
38 *pyicq-t-0.8.1.5-r3 (14 Sep 2013)
39
40
41
42
43 1.1 net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pyicq-t-0.8.1.5-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild,v 1.1 2014/03/30 13:44:13 pacho Exp $
53
54 EAPI="5"
55 PYTHON_COMPAT=( python{2_6,2_7} )
56 inherit eutils python-single-r1 systemd
57
58 MY_P="${P/pyicq-t/pyicqt}"
59 DESCRIPTION="Python based jabber transport for ICQ"
60 HOMEPAGE="http://code.google.com/p/pyicqt/"
61 SRC_URI="http://pyicqt.googlecode.com/files/${MY_P}.tar.gz"
62 S="${WORKDIR}/${MY_P}"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="webinterface"
68
69 DEPEND="net-im/jabber-base"
70 RDEPEND="${DEPEND}
71 dev-python/twisted-core[${PYTHON_USEDEP}]
72 dev-python/twisted-words[${PYTHON_USEDEP}]
73 dev-python/twisted-web[${PYTHON_USEDEP}]
74 webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] )
75 virtual/python-imaging[${PYTHON_USEDEP}]"
76
77 src_prepare() {
78 epatch "${FILESDIR}/${P}-python26-warnings.diff"
79 epatch "${FILESDIR}/${P}-pillow-imaging.patch"
80 }
81
82 src_install() {
83 python_moduleinto ${PN}
84 cp PyICQt.py ${PN}.py || die
85 python_domodule ${PN}.py data tools src
86
87 insinto /etc/jabber
88 newins config_example.xml ${PN}.xml
89 fperms 600 /etc/jabber/${PN}.xml
90 fowners jabber:jabber /etc/jabber/${PN}.xml
91 fperms 755 "$(python_get_sitedir)/${PN}/${PN}.py"
92 sed -i \
93 -e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
94 -e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
95 "${ED}/etc/jabber/${PN}.xml"
96
97 newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN}
98 systemd_dounit "${FILESDIR}/${PN}.service"
99 sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \
100 "${ED}/etc/init.d/${PN}" "${ED}/usr/lib/systemd/system/${PN}.service" || die
101
102 python_fix_shebang "${D}$(python_get_sitedir)/${PN}"
103 }