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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.ebuild,v 1.2 2009/10/03 17:30:43 maekke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.1.5.ebuild,v 1.3 2010/04/23 19:56:48 arfrever Exp $
4 4
5NEED_PYTHON=2.3 5NEED_PYTHON=2.3
6 6
7inherit eutils multilib python 7inherit eutils python
8 8
9MY_P="${P/pyicq-t/pyicqt}" 9MY_P="${P/pyicq-t/pyicqt}"
10 10
11DESCRIPTION="Python based jabber transport for ICQ" 11DESCRIPTION="Python based jabber transport for ICQ"
12HOMEPAGE="http://code.google.com/p/pyicqt/" 12HOMEPAGE="http://code.google.com/p/pyicqt/"
27 >=dev-python/imaging-1.1" 27 >=dev-python/imaging-1.1"
28 28
29src_install() { 29src_install() {
30 local inspath 30 local inspath
31 31
32 python_version 32 inspath=$(python_get_sitedir)/${PN}
33 inspath=/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
34 insinto ${inspath} 33 insinto ${inspath}
35 doins -r data src tools 34 doins -r data src tools
36 newins PyICQt.py ${PN}.py 35 newins PyICQt.py ${PN}.py
37 36
38 insinto /etc/jabber 37 insinto /etc/jabber
49 newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN} 48 newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN}
50 dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN} 49 dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
51} 50}
52 51
53pkg_postinst() { 52pkg_postinst() {
54 python_version 53 python_mod_optimize $(python_get_sitedir)/${PN}
55 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
56 54
57 elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml." 55 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." 56 elog "Please edit it and the configuration of your Jabber server to match."
59 57
60 ewarn "If you are storing user accounts in MySQL and are upgrading from a " 58 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 " 59 ewarn "version older than 0.8.1, then you will need to run the following "
62 ewarn "command to create some new tables:" 60 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" 61 ewarn " mysql -u user_name -p pyicqt < $(python_get_sitedir)/${PN}/tools/db-setup.mysql"
64 62
65 elog "These instructions along with a list of new config variables are " 63 elog "These instructions along with a list of new config variables are "
66 elog "available at: http://code.google.com/p/pyicqt/wiki/Upgrade" 64 elog "available at: http://code.google.com/p/pyicqt/wiki/Upgrade"
67} 65}
68 66
69pkg_postrm() { 67pkg_postrm() {
70 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN} 68 python_mod_cleanup $(python_get_sitedir)/${PN}
71} 69}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20