/[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.1 - (hide annotations) (download)
Wed Aug 26 19:16:56 2009 UTC (4 years, 7 months ago) by griffon26
Branch: MAIN
Bump pyicq-t to version 0.8.1.5 (bug #282717)
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 griffon26 1.1 # Copyright 1999-2009 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.4.ebuild,v 1.1 2009/08/18 16:14:30 griffon26 Exp $
4    
5     NEED_PYTHON=2.3
6    
7     inherit eutils multilib python
8    
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     KEYWORDS="~amd64 ~x86"
19     IUSE="webinterface"
20    
21     DEPEND="net-im/jabber-base"
22     RDEPEND="${DEPEND}
23     >=dev-python/twisted-2.2.0
24     >=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     src_install() {
30     local inspath
31    
32     python_version
33     inspath=/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
34     insinto ${inspath}
35     doins -r data src tools
36     newins PyICQt.py ${PN}.py
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     dosed \
43     "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
44     /etc/jabber/${PN}.xml
45     dosed \
46     "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
47     /etc/jabber/${PN}.xml
48    
49     newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN}
50     dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
51     }
52    
53     pkg_postinst() {
54     python_version
55     python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
56    
57     elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml."
58     elog "Please edit it and the configuration of your Jabber server to match."
59    
60     ewarn "If you are storing user accounts in MySQL and are upgrading from a "
61     ewarn "version older than 0.8.1, then you will need to run the following "
62     ewarn "command to create some new tables:"
63     ewarn " mysql -u user_name -p pyicqt < /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/tools/db-setup.mysql"
64    
65     elog "These instructions along with a list of new config variables are "
66     elog "available at: http://code.google.com/p/pyicqt/wiki/Upgrade"
67     }
68    
69     pkg_postrm() {
70     python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}
71     }

  ViewVC Help
Powered by ViewVC 1.1.20