diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-05 18:40:04 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-05 18:40:04 +0000 |
commit | 04c2c82496a18d8e4cfd8767875610a44ae2aac0 (patch) | |
tree | cfc65706dda1400c71b90bf43da137cc40bef07e /net-misc/neatx/neatx-0.3.1_p59-r2.ebuild | |
parent | Fix deprecation warnings. (diff) | |
download | gentoo-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)
Diffstat (limited to 'net-misc/neatx/neatx-0.3.1_p59-r2.ebuild')
-rw-r--r-- | net-misc/neatx/neatx-0.3.1_p59-r2.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
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 +} |