Only in pymsn-t: pymsn-t-0.11.3-r1.ebuild.copy diff -ur pymsn-t.orig/pymsn-t-0.11.3-r3.ebuild pymsn-t/pymsn-t-0.11.3-r3.ebuild --- pymsn-t.orig/pymsn-t-0.11.3-r3.ebuild 2011-11-28 02:56:08.536985626 +0800 +++ pymsn-t/pymsn-t-0.11.3-r3.ebuild 2011-11-28 11:23:47.771976884 +0800 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.3-r3.ebuild,v 1.3 2011/10/09 13:50:51 hwoarang Exp $ EAPI="3" - +PYTHON_DEPEND="2" inherit eutils multilib python MY_PN="pymsnt" @@ -23,6 +23,11 @@ >=dev-python/twisted-web-0.7.0 >=dev-python/imaging-1.1" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_prepare() { epatch "${FILESDIR}/${P}-protocol-version.patch" epatch "${FILESDIR}/${P}-unexpected-xfr.patch" @@ -42,6 +47,7 @@ insinto /etc/jabber newins config-example.xml ${PN}.xml fperms 600 /etc/jabber/${PN}.xml + fperms 755 $(python_get_sitedir)/${PN}/pymsn-t.py || die fowners jabber:jabber /etc/jabber/${PN}.xml dosed \ "s::/var/spool/jabber:" \ @@ -58,6 +64,8 @@ newinitd "${FILESDIR}/${PN}-initd" ${PN} dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN} + dosed "s: /usr/bin/python::" /etc/init.d/${PN} + python_convert_shebangs ${PYTHON_ABI} "${ED}$(python_get_sitedir)/${PN}/pymsn-t.py" } pkg_postinst() {