/[gentoo-x86]/net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild
Gentoo

Contents of /net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Apr 8 18:03:12 2015 UTC (5 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5-r4.ebuild,v 1.4 2014/11/23 16:48:33 mrueg Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_7 )
7 inherit eutils python-single-r1 systemd
8
9 MY_P="${P/pyicq-t/pyicqt}"
10 DESCRIPTION="Python based jabber transport for ICQ"
11 HOMEPAGE="http://code.google.com/p/pyicqt/"
12 SRC_URI="http://pyicqt.googlecode.com/files/${MY_P}.tar.gz"
13 S="${WORKDIR}/${MY_P}"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="webinterface"
19
20 DEPEND="net-im/jabber-base"
21 RDEPEND="${DEPEND}
22 dev-python/twisted-core[${PYTHON_USEDEP}]
23 dev-python/twisted-words[${PYTHON_USEDEP}]
24 dev-python/twisted-web[${PYTHON_USEDEP}]
25 webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] )
26 virtual/python-imaging[${PYTHON_USEDEP}]"
27
28 src_prepare() {
29 epatch "${FILESDIR}/${P}-python26-warnings.diff"
30 epatch "${FILESDIR}/${P}-pillow-imaging.patch"
31 }
32
33 src_install() {
34 python_moduleinto ${PN}
35 cp PyICQt.py ${PN}.py || die
36 python_domodule ${PN}.py data tools src
37
38 insinto /etc/jabber
39 newins config_example.xml ${PN}.xml
40 fperms 600 /etc/jabber/${PN}.xml
41 fowners jabber:jabber /etc/jabber/${PN}.xml
42 fperms 755 "$(python_get_sitedir)/${PN}/${PN}.py"
43 sed -i \
44 -e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
45 -e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
46 "${ED}/etc/jabber/${PN}.xml" || die
47
48 newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN}
49 systemd_dounit "${FILESDIR}/${PN}.service"
50 sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \
51 "${ED}/etc/init.d/${PN}" "${ED}/usr/lib/systemd/system/${PN}.service" || die
52
53 python_fix_shebang "${D}$(python_get_sitedir)/${PN}"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20