blob: 6a5aae5d46bb013c15d5aae31281e5e1a0016461 (
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl
pkgver=5.20.2
pkgrel=1
pkgdesc="Larry Wall's Practical Extraction and Report Language"
url=http://www.perl.org
arch="all"
license="Artistic GPL-2"
source="http://www.cpan.org/src/5.0/perl-$pkgver.tar.gz
perl-gcc5-errno.patch
perl-gcc5-h2ph.patch
perl-gcc5-lib-h2ph.t.patch
"
options="!fhs"
depends=
depends_dev="perl"
makedepends=
subpackages="$pkgname-dev $pkgname-doc miniperl"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd $_builddir
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
sed -i -e 's/less -R/less/g' ./Configure
sed -i -e 's/libswanted="\(.*\) nsl\(.*\)"/libswanted="\1\2"/g' ./Configure
}
_privlib=/usr/share/perl5/core_perl
_archlib=/usr/lib/perl5/core_perl
_vendorlib=/usr/share/perl5/vendor_perl
_vendorarch=/usr/lib/perl5/vendor_perl
build() {
cd $_builddir
./Configure -des \
-Dcccdlflags='-fPIC' \
-Dcccdlflags='-fPIC' \
-Dccdlflags='-rdynamic' \
-Dprefix=/usr \
-Dprivlib=$_privlib \
-Darchlib=$_archlib \
-Dvendorprefix=/usr \
-Dvendorlib=$_vendorlib \
-Dvendorarch=$_vendorarch \
-Dsiteprefix=/usr/local \
-Dsitelib=/usr/local/share/perl5/site_perl \
-Dsitearch=/usr/local/lib/perl5/site_perl \
-Dlocincpth=' ' \
-Doptimize="${CFLAGS}" \
-Duselargefiles \
-Dusethreads \
-Duseshrplib \
-Dd_semctl_semun \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dinstallman1dir=/usr/share/man/man1 \
-Dinstallman3dir=/usr/share/man/man3 \
-Dman1ext='1' \
-Dman3ext='3pm' \
-Dinc_version_list="$inclist" \
-Dcf_by='Alpine' \
-Ud_csh \
-Dusenm \
|| return 1
make libperl.so && make || return 1
# make check || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
if [ -n "$(find $pkgdir/usr/local -type f)" ]; then
error "files found under /usr/local"
return 1
fi
}
miniperl() {
pkgname=miniperl
mkdir -p "$subpkgdir"/usr/bin
cp "$srcdir/perl-$pkgver"/miniperl "$subpkgdir/usr/bin"
}
dev() {
mkdir -p "$subpkgdir"/$_privlib
mv "$pkgdir"/$_privlib/Encode "$subpkgdir"/$_privlib/ || return 1
default_dev
replaces="perl"
mkdir -p "$subpkgdir"/usr/bin
for i in enc2xs h2xs libnetcfg perlivp; do
mv "$pkgdir"/usr/bin/$i "$subpkgdir"/usr/bin/ || return 1
done
}
md5sums="81b17b9a4e5ee18e54efe906c9bf544d perl-5.20.2.tar.gz
fac1aa31f3220ae7336dd55c01e80cd2 perl-gcc5-errno.patch
188e25424cbd3354881047aae4d054d4 perl-gcc5-h2ph.patch
0cb2e7fe3e9c1722236a506fa6e5df27 perl-gcc5-lib-h2ph.t.patch"
sha256sums="b1a43992a717d506095856d370550caa11dba8132a4fdaa186a1ae7e1fbd9b9d perl-5.20.2.tar.gz
00e753ad1225dbaf21eac40c1217c1267e83b4d909520caa7a214b1a3c61f516 perl-gcc5-errno.patch
2c4abef26440c28221b0803848fa1cad7b664ce0d4d552374fdacc495744ed3f perl-gcc5-h2ph.patch
7d665e4bff9adc827dd92827219cb579f3f7558d23dfa50239a23861b0175066 perl-gcc5-lib-h2ph.t.patch"
sha512sums="fb41e2f55237cc7dacba7021bf36c78ff52d926095af0d6b6d69fe49cf970a76b2b85775660d504a70c9f0528db5a6f7503b35046ec76000ab59836a127d30ef perl-5.20.2.tar.gz
3a97506220619bd10ef0176849e9f7bc9e93e3f8cd5d95868763ab5205507f131d3edfb0b9d2aab44424564a27275044884c9ea5cd6b13e87972281605763d6a perl-gcc5-errno.patch
3fd9cef21432506da2749380249cb22e9add281ff633ed0c989420f3f0bc11898cf30e29a3370b86b60e358610a9ddb890c0259511f74f5cd29d27ae1cf1c1ed perl-gcc5-h2ph.patch
88ca7d10baefadf049b554855bbf950d42a0144891548ec51232772b433fe548b5f8ea45ab5586c7cc148385ce596e61edd5d9e8892d8269a85c218a02d9487c perl-gcc5-lib-h2ph.t.patch"
|