summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-05 18:40:04 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-05 18:40:04 +0000
commit04c2c82496a18d8e4cfd8767875610a44ae2aac0 (patch)
treecfc65706dda1400c71b90bf43da137cc40bef07e
parentFix deprecation warnings. (diff)
downloadgentoo-2-04c2c82496a18d8e4cfd8767875610a44ae2aac0.tar.gz
gentoo-2-04c2c82496a18d8e4cfd8767875610a44ae2aac0.tar.bz2
gentoo-2-04c2c82496a18d8e4cfd8767875610a44ae2aac0.zip
Don't use distutils.eclass. Don't install .pyc / .pyo files in Python site-packages directories.
(Portage version: 2.2.0_alpha29_p9/cvs/Linux x86_64)
-rw-r--r--net-misc/neatx/ChangeLog7
-rw-r--r--net-misc/neatx/neatx-0.3.1_p59-r1.ebuild12
-rw-r--r--net-misc/neatx/neatx-0.3.1_p59-r2.ebuild12
3 files changed, 24 insertions, 7 deletions
diff --git a/net-misc/neatx/ChangeLog b/net-misc/neatx/ChangeLog
index 3ffec2396cd2..f211b7dfd266 100644
--- a/net-misc/neatx/ChangeLog
+++ b/net-misc/neatx/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/neatx
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.13 2011/04/05 18:22:45 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.14 2011/04/05 18:40:03 arfrever Exp $
+
+ 05 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ neatx-0.3.1_p59-r1.ebuild, neatx-0.3.1_p59-r2.ebuild:
+ Don't use distutils.eclass. Don't install .pyc / .pyo files in Python
+ site-packages directories.
05 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
neatx-0.3.1_p59-r1.ebuild, neatx-0.3.1_p59-r2.ebuild:
diff --git a/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild b/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild
index 4c71a5f93fd7..842869949c58 100644
--- a/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild
+++ b/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild,v 1.4 2011/04/05 18:22:45 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild,v 1.5 2011/04/05 18:40:03 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
-inherit eutils autotools distutils
+inherit eutils autotools python
DESCRIPTION="Google implementation of NX server"
HOMEPAGE="http://code.google.com/p/neatx/"
@@ -55,6 +55,8 @@ src_prepare() {
-i lib/constants.py || die "constants.py sed failed"
eautoreconf
+
+ echo "#!/bin/sh" > autotools/py-compile
}
src_compile() {
@@ -94,7 +96,7 @@ EOF
}
pkg_postinst () {
- distutils_pkg_postinst
+ python_mod_optimize neatx
# Other NX servers ebuilds may have already created the nx account
# However they use different login shell/home directory paths
@@ -118,3 +120,7 @@ pkg_postinst () {
elog "you must ensure that the nx user is a member of the wheel group."
elog "You can add it via \"usermod -a -G wheel nx\""
}
+
+pkg_postrm() {
+ python_mod_cleanup neatx
+}
diff --git a/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild b/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild
index 31a95119fd26..d12fafa0c7cb 100644
--- a/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild
+++ b/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild,v 1.2 2011/04/05 18:22:45 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild,v 1.3 2011/04/05 18:40:04 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
-inherit eutils autotools distutils
+inherit eutils autotools python
DESCRIPTION="Google implementation of NX server"
HOMEPAGE="http://code.google.com/p/neatx/"
@@ -55,6 +55,8 @@ src_prepare() {
-i lib/constants.py || die "constants.py sed failed"
eautoreconf
+
+ echo "#!/bin/sh" > autotools/py-compile
}
src_compile() {
@@ -114,7 +116,7 @@ pkg_preinst () {
}
pkg_postinst () {
- distutils_pkg_postinst
+ python_mod_optimize neatx
# Other NX servers ebuilds may have already created the nx account
# However they use different login shell/home directory paths
@@ -138,3 +140,7 @@ pkg_postinst () {
elog "you must ensure that the nx user is a member of the wheel group."
elog "You can add it via \"usermod -a -G wheel nx\""
}
+
+pkg_postrm() {
+ python_mod_cleanup neatx
+}