public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in eclass: perl-app.eclass
@ 2009-03-06 11:44 Torsten Veller (tove)
  0 siblings, 0 replies; only message in thread
From: Torsten Veller (tove) @ 2009-03-06 11:44 UTC (permalink / raw
  To: gentoo-commits

tove        09/03/06 11:44:18

  Modified:             perl-app.eclass
  Log:
  EAPI=2 support

Revision  Changes    Path
1.11                 eclass/perl-app.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-app.eclass?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-app.eclass?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-app.eclass?r1=1.10&r2=1.11

Index: perl-app.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/perl-app.eclass,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- perl-app.eclass	9 Dec 2006 14:34:01 -0000	1.10
+++ perl-app.eclass	6 Mar 2009 11:44:18 -0000	1.11
@@ -1,53 +1,26 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-app.eclass,v 1.10 2006/12/09 14:34:01 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-app.eclass,v 1.11 2009/03/06 11:44:18 tove Exp $
 
-#
 # Author: Michael Cummings <mcummings@gentoo.org>
 # Maintained by the Perl herd <perl@gentoo.org>
-#
-# The perl-app eclass is designed to allow easier installation of perl
-# apps, ineheriting the full structure of the perl-module eclass but allowing
-# man3 pages to be built. This is to work around a collision-protect bug in the
-# default perl-module eclass
 
 inherit perl-module
 
-EXPORT_FUNCTIONS src_compile
+case "${EAPI:-0}" in
+	0|1) EXPORT_FUNCTIONS src_compile ;;
+	2)   EXPORT_FUNCTIONS src_configure src_compile ;;
+esac
 
 perl-app_src_prep() {
-	perlinfo
+	perl-app_src_configure
+}
 
-	export PERL_MM_USE_DEFAULT=1
-	# Disable ExtUtils::AutoInstall from prompting
-	export PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
-
-
-	SRC_PREP="yes"
-	pwd
-	if [ "${PREFER_BUILDPL}" == "yes" ] && ( [ -f Build.PL ] || [ ${PN} == "module-build" ] ); then
-		einfo "Using Module::Build"
-		echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
-	elif [ -f Makefile.PL ] && [ ! ${PN} == "module-build" ]; then
-		einfo "Using ExtUtils::MakeMaker"
-		echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
-		PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
-	fi
-	if [ ! -f Build.PL ] && [ ! -f Makefile.PL ]; then
-		einfo "No Make or Build file detected..."
-		return
-	fi
+perl-app_src_configure() {
+	perl-module_src_configure
 }
 
 perl-app_src_compile() {
-
-	perlinfo
-	[ "${SRC_PREP}" != "yes" ] && perl-app_src_prep
-	if [ -f Makefile ]; then
-		make ${mymake} || die "compilation failed"
-	elif [ -f Build ]; then
-		perl Build build || die "compilation failed"
-	fi
-	fixlocalpod
-
+	has "${EAPI:-0}" 0 1 && perl-app_src_prep
+	perl-module_src_compile
 }






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-06 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 11:44 [gentoo-commits] gentoo-x86 commit in eclass: perl-app.eclass Torsten Veller (tove)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox