2006-02-23 16:26:10 +01:00
|
|
|
# Description: Perl programming language
|
|
|
|
# URL: http://www.perl.org/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2008-09-18 10:27:13 +02:00
|
|
|
# Depends on: db gdbm
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=perl
|
2013-03-12 11:50:54 +01:00
|
|
|
version=5.16.3
|
2014-03-05 09:55:25 +01:00
|
|
|
release=2
|
|
|
|
source=(http://www.cpan.org/src/5.0/$name-$version.tar.bz2 \
|
|
|
|
http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/Locale-Maketext-1.23.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2014-03-05 09:55:25 +01:00
|
|
|
rm -rf $name/$version/dist/Locale-Maketext
|
|
|
|
mv $SRC/Locale-Maketext-1.23 $name-$version/dist/Locale-Maketext
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
cd $name-$version
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
./Configure -des \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Dprefix=/usr \
|
2010-09-14 21:03:41 +02:00
|
|
|
-Dprivlib=/usr/lib/perl5/${version%.*} \
|
|
|
|
-Dsitelib=/usr/lib/perl5/site_perl/${version%.*} \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Darchname=linux \
|
|
|
|
-Dman1ext=1pm \
|
|
|
|
-Dman3ext=3pm \
|
|
|
|
-Dman1dir=/usr/man/man1 \
|
|
|
|
-Dman3dir=/usr/man/man3 \
|
|
|
|
-Di_gdbm \
|
|
|
|
-Di_db \
|
2010-06-03 12:51:12 +02:00
|
|
|
-Duseshrplib \
|
|
|
|
-Dusethreads \
|
2007-08-30 10:16:59 +02:00
|
|
|
-Doptimize="$CFLAGS"
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2012-08-08 10:11:28 +02:00
|
|
|
ln -sf perl${version%-*} $PKG/usr/bin/perl
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -sf c2ph $PKG/usr/bin/pstruct
|
|
|
|
ln -sf s2p $PKG/usr/bin/psed
|
|
|
|
ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
|
|
|
|
ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
|
2008-09-18 10:27:13 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
find $PKG \
|
|
|
|
-iname 'TODO*' -or \
|
|
|
|
-iname 'Change*' -or \
|
|
|
|
-iname 'README*' -or \
|
|
|
|
-name '*.bs' -or \
|
2010-06-03 12:51:12 +02:00
|
|
|
-name '.packlist' -or \
|
|
|
|
-name 'perllocal.pod' | xargs rm
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
find $PKG -depth -empty -exec rmdir {} \;
|
|
|
|
chmod -R +w $PKG
|
|
|
|
}
|