summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-12 22:09:53 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-12 22:09:53 +0000
commit8e1007957be470053e8ddcf9b20bc59a68ac1799 (patch)
tree43ed4b3e2035f4ac06bd70e02040d614724b60ab /dev-libs/libprelude
parentVersion bump: http://wordpress.org/news/2011/04/wordpress-3-1-1/ (diff)
downloadgentoo-2-8e1007957be470053e8ddcf9b20bc59a68ac1799.tar.gz
gentoo-2-8e1007957be470053e8ddcf9b20bc59a68ac1799.tar.bz2
gentoo-2-8e1007957be470053e8ddcf9b20bc59a68ac1799.zip
Use new functionality of DISTUTILS_SETUP_FILES.
(Portage version: 2.2.0_alpha29_p17/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libprelude')
-rw-r--r--dev-libs/libprelude/libprelude-1.0.0-r1.ebuild23
1 files changed, 7 insertions, 16 deletions
diff --git a/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild b/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild
index 064a0631ca07..726783d9890d 100644
--- a/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild
+++ b/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild,v 1.5 2011/03/31 01:26:51 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild,v 1.6 2011/04/12 22:09:53 arfrever Exp $
EAPI="3"
GENTOO_DEPEND_ON_PERL="no"
@@ -28,11 +28,12 @@ DEPEND="${RDEPEND}
sys-devel/flex
perl? ( dev-lang/swig )"
+DISTUTILS_SETUP_FILES=("bindings/low-level/python|setup.py" "bindings/python|setup.py")
+PYTHON_MODNAME="prelude.py PreludeEasy.py"
+
pkg_setup() {
if use python; then
python_pkg_setup
- PYTHON_DIRS="bindings/low-level/python bindings/python"
- PYTHON_MODNAME="prelude.py PreludeEasy.py"
fi
}
@@ -67,12 +68,7 @@ src_compile() {
emake OTHERLDFLAGS="${LDFLAGS}" || die "emake failed"
if use python; then
- local dir
- for dir in ${PYTHON_DIRS}; do
- pushd "${dir}" > /dev/null
- distutils_src_compile
- popd > /dev/null
- done
+ distutils_src_compile
fi
}
@@ -80,7 +76,7 @@ src_install() {
emake DESTDIR="${D}" INSTALLDIRS=vendor install || die "make install failed"
if use lua; then
- rm - "${ED}usr/$(get_libdir)/PreludeEasy.la"
+ rm -f "${ED}usr/$(get_libdir)/PreludeEasy.la"
fi
if use perl; then
@@ -89,12 +85,7 @@ src_install() {
fi
if use python; then
- local dir
- for dir in ${PYTHON_DIRS}; do
- pushd "${dir}" > /dev/null
- distutils_src_install
- popd > /dev/null
- done
+ distutils_src_install
fi
if use ruby; then