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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Oct 26 20:29:20 2014 UTC (5 months, 4 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Cleanup old.

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key )

1 mrueg 1.6 # Copyright 1999-2014 Gentoo Foundation
2 griffon26 1.1 # Distributed under the terms of the GNU General Public License v2
3 mrueg 1.7 # $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5.ebuild,v 1.6 2014/08/05 18:34:14 mrueg Exp $
4 griffon26 1.1
5 hanno 1.4 EAPI="3"
6 griffon26 1.1
7 arfrever 1.3 inherit eutils python
8 griffon26 1.1
9     MY_P="${P/pyicq-t/pyicqt}"
10    
11     DESCRIPTION="Python based jabber transport for ICQ"
12     HOMEPAGE="http://code.google.com/p/pyicqt/"
13     SRC_URI="http://pyicqt.googlecode.com/files/${MY_P}.tar.gz"
14     S="${WORKDIR}/${MY_P}"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18 maekke 1.2 KEYWORDS="amd64 x86"
19 griffon26 1.1 IUSE="webinterface"
20    
21     DEPEND="net-im/jabber-base"
22     RDEPEND="${DEPEND}
23 mgorny 1.5 >=dev-python/twisted-core-2.2.0
24 griffon26 1.1 >=dev-python/twisted-words-0.1.0
25     >=dev-python/twisted-web-0.5.0
26     webinterface? ( >=dev-python/nevow-0.4.1 )
27     >=dev-python/imaging-1.1"
28    
29 hanno 1.4 src_prepare() {
30     epatch "${FILESDIR}/${P}-python26-warnings.diff"
31     }
32    
33 griffon26 1.1 src_install() {
34     local inspath
35    
36 arfrever 1.3 inspath=$(python_get_sitedir)/${PN}
37 griffon26 1.1 insinto ${inspath}
38     doins -r data src tools
39     newins PyICQt.py ${PN}.py
40    
41     insinto /etc/jabber
42     newins config_example.xml ${PN}.xml
43     fperms 600 /etc/jabber/${PN}.xml
44     fowners jabber:jabber /etc/jabber/${PN}.xml
45     dosed \
46     "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
47     /etc/jabber/${PN}.xml
48     dosed \
49     "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
50     /etc/jabber/${PN}.xml
51    
52     newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN}
53     dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
54     }
55    
56     pkg_postinst() {
57 hanno 1.4 python_mod_optimize ${PN}
58 griffon26 1.1
59     elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml."
60     elog "Please edit it and the configuration of your Jabber server to match."
61    
62     ewarn "If you are storing user accounts in MySQL and are upgrading from a "
63     ewarn "version older than 0.8.1, then you will need to run the following "
64     ewarn "command to create some new tables:"
65 arfrever 1.3 ewarn " mysql -u user_name -p pyicqt < $(python_get_sitedir)/${PN}/tools/db-setup.mysql"
66 griffon26 1.1
67     elog "These instructions along with a list of new config variables are "
68     elog "available at: http://code.google.com/p/pyicqt/wiki/Upgrade"
69     }
70    
71     pkg_postrm() {
72 hanno 1.4 python_mod_cleanup ${PN}
73 griffon26 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20