diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-11-19 00:27:52 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-11-19 00:27:52 +0000 |
commit | 81443d714cd68bb8f8c77da660d9abdc0c531b57 (patch) | |
tree | 55ab026c39978bcdb194b7883c027fc7faf52a3d /www-apache/mod_perl/mod_perl-2.0.5.ebuild | |
parent | retroactively add some credits for bug I missed... (diff) | |
download | gentoo-2-81443d714cd68bb8f8c77da660d9abdc0c531b57.tar.gz gentoo-2-81443d714cd68bb8f8c77da660d9abdc0c531b57.tar.bz2 gentoo-2-81443d714cd68bb8f8c77da660d9abdc0c531b57.zip |
Add debug useflag to enable/disable MP_TRACE and MP_DEBUG.
(Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
Diffstat (limited to 'www-apache/mod_perl/mod_perl-2.0.5.ebuild')
-rw-r--r-- | www-apache/mod_perl/mod_perl-2.0.5.ebuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/www-apache/mod_perl/mod_perl-2.0.5.ebuild b/www-apache/mod_perl/mod_perl-2.0.5.ebuild index 44a895094136..4f81457e4b59 100644 --- a/www-apache/mod_perl/mod_perl-2.0.5.ebuild +++ b/www-apache/mod_perl/mod_perl-2.0.5.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/www-apache/mod_perl/mod_perl-2.0.5.ebuild,v 1.7 2011/08/09 15:50:24 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.5.ebuild,v 1.8 2011/11/19 00:27:52 idl0r Exp $ EAPI="3" @@ -12,7 +12,7 @@ HOMEPAGE="http://perl.apache.org/" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="" +IUSE="debug" SLOT="1" # Make sure we always use the latest Apache-Test version or even check the @@ -81,13 +81,20 @@ src_prepare() { } src_configure() { + local myargs= + + if use debug; then + myargs="MP_TRACE=1 MP_DEBUG=1" + else + myargs="MP_TRACE=0 MP_DEBUG=0" + fi + perl Makefile.PL \ PREFIX="${EPREFIX}"/usr \ INSTALLDIRS=vendor \ - MP_TRACE=1 \ - MP_DEBUG=1 \ MP_USE_DSO=1 \ - MP_APXS=${APXS} || die + MP_APXS=${APXS} \ + ${myargs} || die } src_test() { |