From 9f34e25738effdab230251b68c278d4fcaa61e81 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sat, 6 Mar 2010 04:57:14 +0000 Subject: Clean up python bits. EAPI 2. Don't byte-compile modules to prevent SyntaxErrors. (Portage version: 2.2_rc65/cvs/Linux x86_64) --- dev-util/boa-constructor/ChangeLog | 9 +++++++-- .../boa-constructor/boa-constructor-0.6.1.ebuild | 21 +++++++-------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/dev-util/boa-constructor/ChangeLog b/dev-util/boa-constructor/ChangeLog index 28efe7d89d65..312a081cce1b 100644 --- a/dev-util/boa-constructor/ChangeLog +++ b/dev-util/boa-constructor/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/boa-constructor -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/boa-constructor/ChangeLog,v 1.34 2008/11/17 20:59:48 flameeyes Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/boa-constructor/ChangeLog,v 1.35 2010/03/06 04:57:14 dirtyepic Exp $ + + 06 Mar 2010; Ryan Hill + boa-constructor-0.6.1.ebuild: + Clean up python bits. EAPI 2. Don't byte-compile modules to prevent + SyntaxErrors. 17 Nov 2008; Diego E. Pettenò files/boa-constructor-0.4.0_alpha-wxversion.patch: diff --git a/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild b/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild index 8056c36bbfda..3c8ec72292b6 100644 --- a/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild +++ b/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild,v 1.5 2008/10/18 16:45:30 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/boa-constructor/boa-constructor-0.6.1.ebuild,v 1.6 2010/03/06 04:57:14 dirtyepic Exp $ + +EAPI=2 inherit eutils python multilib @@ -13,19 +15,18 @@ LICENSE="GPL-2" KEYWORDS="~amd64 ppc ~sparc x86 ~x86-fbsd" IUSE="" -RDEPEND="=dev-python/wxpython-2.6* +RDEPEND="dev-python/wxpython:2.6 dev-libs/expat" DEPEND="${RDEPEND} app-arch/unzip" src_compile() { - python -c "import compileall; compileall.compile_dir('.', force=1)" + "$(PYTHON)" -c "import compileall; compileall.compile_dir('.', force=1)" } src_install() { - python_version - local boadir="/usr/$(get_libdir)/python${PYVER}/site-packages/boa" + local boadir="$(python_get_sitedir)"/boa local dir for dir in $(find . -type d) @@ -48,11 +49,3 @@ src_install() { dodoc Bugs.txt Changes.txt Credits.txt README.txt } - -pkg_postinst() { - python_mod_optimize -} - -pkg_postrm() { - python_mod_cleanup -} -- cgit v1.2.3-65-gdbad