From b15cea344e9c8a2e432e8c3ff169cd34a7a2e6cb Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 12 Apr 2011 18:20:57 +0000 Subject: Call Python-related functions only with USE="python". (Portage version: 2.2.0_alpha29_p17/cvs/Linux x86_64) --- sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sci-geosciences') diff --git a/sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild b/sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild index a9712b1418a0..93a54630360b 100644 --- a/sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild +++ b/sci-geosciences/mapserver/mapserver-5.4.2-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/sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild,v 1.6 2011/03/02 20:36:03 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild,v 1.7 2011/04/12 18:20:57 arfrever Exp $ EAPI="2" @@ -68,6 +68,7 @@ pkg_setup() { use java && java-pkg-opt-2_pkg_setup use perl && perl-module_pkg_setup use php && has_php + use python && python_pkg_setup confutils_use_conflict gdal tiff confutils_use_depend_all java threads @@ -287,9 +288,13 @@ src_install() { pkg_postinst() { webapp_pkg_postinst - distutils_pkg_postinst + use python && distutils_pkg_postinst } pkg_prerm() { webapp_pkg_prerm } + +pkg_postrm() { + use python && distutils_pkg_postrm +} -- cgit v1.2.3-65-gdbad