blob: 154544f921c470b471a3b126d7a8a55eaf66a7cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Author: Seemant Kulleen <seemant@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.9 2002/05/06 22:26:36 seemant Exp $
# The perl-module eclass is designed to allow easier installation of perl
# modules, and their incorporation into the Gentoo Linux system.
#first inherit the pkg_postinst() and pkg_postrm() functions
. /usr/portage/eclass/inherit.eclass || die
inherit perl-post
ECLASS=base
EXPORT_FUNCTIONS src_compile src_install src_test
newdepend ">=sys-devel/perl-5"
base_src_compile() {
perl Makefile.PL ${myconf}
make ${mymake} || die "compilation failed"
}
base_src_test() {
make test
}
base_src_install() {
dodir ${POD_DIR}
test -z ${mytargets} && mytargets="install"
make \
PREFIX=${D}/usr \
INSTALLMAN1DIR=${D}/usr/share/man/man1 \
INSTALLMAN2DIR=${D}/usr/share/man/man2 \
INSTALLMAN3DIR=${D}/usr/share/man/man3 \
INSTALLMAN4DIR=${D}/usr/share/man/man4 \
INSTALLMAN5DIR=${D}/usr/share/man/man5 \
INSTALLMAN6DIR=${D}/usr/share/man/man6 \
INSTALLMAN7DIR=${D}/usr/share/man/man7 \
INSTALLMAN8DIR=${D}/usr/share/man/man8 \
${myinst} \
${mytargets} || die
sed -e "s:${D}::g" \
${D}/${ARCH_LIB}/perllocal.pod \
> ${D}/${POD_DIR}/${P}.pod
rm -f ${D}/${ARCH_LIB}/perllocal.pod
dodoc Change* MANIFEST* README* ${mydoc}
}
|