summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-12 18:20:57 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-04-12 18:20:57 +0000
commitb15cea344e9c8a2e432e8c3ff169cd34a7a2e6cb (patch)
treefceca2270694c8d52a3be0a6c7d010b28a127f2a
parentwhitespace (diff)
downloadgentoo-2-b15cea344e9c8a2e432e8c3ff169cd34a7a2e6cb.tar.gz
gentoo-2-b15cea344e9c8a2e432e8c3ff169cd34a7a2e6cb.tar.bz2
gentoo-2-b15cea344e9c8a2e432e8c3ff169cd34a7a2e6cb.zip
Call Python-related functions only with USE="python".
(Portage version: 2.2.0_alpha29_p17/cvs/Linux x86_64)
-rw-r--r--sci-geosciences/mapserver/mapserver-5.4.2-r1.ebuild9
1 files changed, 7 insertions, 2 deletions
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
+}