Delete calls to deprecated python_version() (bug #311767).
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Fri, 11 Jun 2010 21:30:10 +0000 (21:30 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Fri, 11 Jun 2010 21:30:10 +0000 (21:30 +0000)
Package-Manager: portage-HEAD/cvs/Linux x86_64

app-pda/pilot-link/ChangeLog
app-pda/pilot-link/pilot-link-0.12.3-r1.ebuild
app-pda/pilot-link/pilot-link-0.12.3-r2.ebuild

index f05b5acd1046aa133b404c4b9a19849b0407492e..be67536a306f28823c1ccba99a72140c9b5a6a89 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-pda/pilot-link
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/ChangeLog,v 1.58 2010/06/11 17:29:55 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/ChangeLog,v 1.59 2010/06/11 21:30:10 arfrever Exp $
+
+  11 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  pilot-link-0.12.3-r1.ebuild, pilot-link-0.12.3-r2.ebuild:
+  Delete calls to deprecated python_version() (bug #311767).
 
   11 Jun 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
   pilot-link-0.12.3-r2.ebuild:
index af723b0cb48843c1a0fc21183e13b6374aa37c00..058c310943a4a29442c7ba164695f155862a68a9 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/pilot-link-0.12.3-r1.ebuild,v 1.8 2010/06/11 11:22:40 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/pilot-link-0.12.3-r1.ebuild,v 1.9 2010/06/11 21:30:10 arfrever Exp $
 
 EAPI=2
 
@@ -32,6 +32,8 @@ DEPEND="${BOTH_DEPEND}
 RDEPEND="${BOTH_DEPEND}
        java? ( >=virtual/jre-1.4 )"
 
+PYTHON_MODNAME="pisock.py pisockextras.py"
+
 src_prepare() {
        # Fixing some broken configure switches and automagic deps.
        epatch "${FILESDIR}/${PN}-0.12.2-readline.patch"
@@ -125,10 +127,7 @@ pkg_preinst() {
 }
 
 pkg_postinst() {
-       if use python; then
-               python_version
-               python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
-       fi
+       use python && distutils_pkg_postinst
 }
 
 pkg_postrm() {
index 4813dc70c9b979c1cdbd58cc7f08b0bdb6e3c735..ae93a16909d67d66ee0981b88bf768ea93a9f7d1 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/pilot-link-0.12.3-r2.ebuild,v 1.12 2010/06/11 17:29:55 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/pilot-link-0.12.3-r2.ebuild,v 1.13 2010/06/11 21:30:10 arfrever Exp $
 
 EAPI=2
 
@@ -32,6 +32,8 @@ DEPEND="${BOTH_DEPEND}
 RDEPEND="${BOTH_DEPEND}
        java? ( >=virtual/jre-1.4 )"
 
+PYTHON_MODNAME="pisock.py pisockextras.py"
+
 src_prepare() {
        # Fixing some broken configure switches and automagic deps.
        epatch "${FILESDIR}/${PN}-0.12.2-readline.patch"
@@ -129,10 +131,7 @@ pkg_preinst() {
 }
 
 pkg_postinst() {
-       if use python; then
-               python_version
-               python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
-       fi
+       use python && distutils_pkg_postinst
 }
 
 pkg_postrm() {