/[gentoo-alt]/trunk/prefix/eclass/perl-app.eclass
Gentoo

Contents of /trunk/prefix/eclass/perl-app.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1445 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/perl-app.eclass,v 1.1 2005/11/27 22:22:22 mcummings Exp $
4
5 #
6 # Author: Michael Cummings <mcummings@gentoo.org>
7 # Maintained by the Perl herd <perl@gentoo.org>
8 #
9 # The perl-app eclass is designed to allow easier installation of perl
10 # apps, ineheriting the full structure of the perl-module eclass but allowing
11 # man3 pages to be built. This is to work around a collision-protect bug in the
12 # default perl-module eclass
13
14 inherit perl-module
15
16 EXPORT_FUNCTIONS src_compile
17
18 perl-app_src_prep() {
19
20 perlinfo
21
22 export PERL_MM_USE_DEFAULT=1
23
24
25 SRC_PREP="yes"
26 if [ -f ${S}/Build.PL ] && [ "${USE_BUILDER}" == "yes" ]; then
27 einfo "Using Module::Build"
28 if [ -z ${BUILDER_VER} ]; then
29 eerror
30 eerror "Please post a bug on http://bugs.gentoo.org assigned to"
31 eerror "perl@gentoo.org - ${P} was added without a dependancy"
32 eerror "on dev-perl/module-build"
33 eerror "${BUILDER_VER}"
34 eerror
35 die
36 else
37 perl ${S}/Build.PL installdirs=vendor destdir=${D}
38 fi
39 else
40 einfo "Using ExtUtils::MakeMaker"
41 perl Makefile.PL ${myconf} \
42 prefiX=/usr INSTALLDIRS=vendor DESTDIR=${D}
43 fi
44 }
45
46 perl-app_src_compile() {
47
48 perlinfo
49 [ "${SRC_PREP}" != "yes" ] && perl-app_src_prep
50 if [ -z ${BUILDER_VER} ]; then
51 make ${mymake} || die "compilation failed"
52 else
53 perl ${S}/Build build
54 fi
55
56 }

  ViewVC Help
Powered by ViewVC 1.1.20