summaryrefslogtreecommitdiffstats
path: root/base/perl/Pkgfile
blob: 4403ab2f6d57e3cbba4d2a0459ccb5bfcb01c9f7 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Description: Langage de programmation PERL (Practical Extraction and Report Language)
# URL: http://www.perl.org/
# Maintainer:  NuTyX core team
# Packager: thierryn1 at hispeed dot ch


# Description: Langage de programmation PERL (Practical Extraction and Report Language)
# URL: http://www.perl.org/
# Maintainer:  NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=perl
version=5.12.3
release=2
source=(ftp://ftp.funet.fi/pub/CPAN/src/$name-$version.tar.gz)

build() {
cd $name-$version
if [ "`uname -m`" == "x86_64" ]; then
	_ARCH="-Dcccdlflags='-fPIC'"
else
	_ARCH=""
fi

sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|"           \
	-e "s|INCLUDE\s*= ./zlib-src|INCLUDE    = /usr/include|" \
	-e "s|LIB\s*= ./zlib-src|LIB        = /usr/lib|"         \
	cpan/Compress-Raw-Zlib/config.in
sh Configure -des  -Dusethreads \
	-Dprivlib=/usr/share/perl5/base \
	-Darchlib=/usr/share/perl5/base \
	-Dvendorlib=/usr/share/perl5/vendor \
	-Dvendorarch=/usr/lib/perl5/vendor \
	-Dsitelib=/usr/share/perl5/site \
	-Dsitearch=/usr/lib/perl5/site \
	-Dprefix=/usr -Duseshrplib \
	-Dman1dir=/usr/share/man/man1 \
	-Dman3dir=/usr/share/man/man3 \
	-Dpager="/usr/bin/less isR" ${_ARCH}
make
make DESTDIR=$PKG install
find $PKG -iname 'TODO*' -or \
	-iname 'Change*' -or \
	-iname 'README*' -or \
	-name '*.bs' -or \
	-name .packlist -or \
	-name perllocal.pod | xargs rm
find $PKG -depth -empty -exec rmdir {} \;
chmod -R +w $PKG
}



#name=perl
#version=5.14.1
#release=1
#source=(ftp://ftp.funet.fi/pub/CPAN/src/$name-$version.tar.gz)

#build() {
#cd $name-$version
#if [ "`uname -m`" == "x86_64" ]; then
#	_ARCH="-Dcccdlflags='-fPIC'"
#else
#	_ARCH=""
#fi

#sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|"           \
#	-e "s|INCLUDE\s*= ./zlib-src|INCLUDE    = /usr/include|" \
#	-e "s|LIB\s*= ./zlib-src|LIB        = /usr/lib|"         \
#	cpan/Compress-Raw-Zlib/config.in
#sh Configure -des  -Dusethreads \
#	-Dprivlib=/usr/share/perl5/base \
#	-Darchlib=/usr/share/perl5/base \
#	-Dvendorlib=/usr/share/perl5/vendor \
#	-Dvendorarch=/usr/lib/perl5/vendor \
#	-Dsitelib=/usr/share/perl5/site \
#	-Dsitearch=/usr/lib/perl5/site \
#	-Dprefix=/usr -Duseshrplib \
#	-Dman1dir=/usr/share/man/man1 \
#	-Dman3dir=/usr/share/man/man3 \
#	-Dpager="/usr/bin/less isR" ${_ARCH}
#make
#make DESTDIR=$PKG install
#find $PKG -iname 'TODO*' -or \
#	-iname 'Change*' -or \
#	-iname 'README*' -or \
#	-name '*.bs' -or \
#	-name .packlist -or \
#	-name perllocal.pod | xargs rm
#find $PKG -depth -empty -exec rmdir {} \;
#chmod -R +w $PKG
#}