summaryrefslogtreecommitdiffstats
path: root/perl/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 21:05:37 +0100
committerLukc <lukc@upyum.com>2010-12-11 21:05:37 +0100
commit26bc8316f9a9ccb4bf2bff1a5b72b6d5f6a4b0f1 (patch)
tree93134f51862c6f0f7938b014946d72e14eab067d /perl/Pkgfile
parent49edac2eb51125a8d73eb20a3c6ae5d8f4164f28 (diff)
downloadopt-26bc8316f9a9ccb4bf2bff1a5b72b6d5f6a4b0f1.tar.gz
opt-26bc8316f9a9ccb4bf2bff1a5b72b6d5f6a4b0f1.tar.bz2
opt-26bc8316f9a9ccb4bf2bff1a5b72b6d5f6a4b0f1.tar.xz
opt-26bc8316f9a9ccb4bf2bff1a5b72b6d5f6a4b0f1.zip
Recette de Perl ajout?e.
Diffstat (limited to 'perl/Pkgfile')
-rw-r--r--perl/Pkgfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/perl/Pkgfile b/perl/Pkgfile
new file mode 100644
index 0000000..d37f425
--- /dev/null
+++ b/perl/Pkgfile
@@ -0,0 +1,42 @@
+description="Perl programming language"
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
+url="http://www.perl.org/"
+depends=(db gdbm)
+
+name=perl
+version=5.12.2
+release=1
+source=(http://www.cpan.org/src/5.0/$name-$version.tar.bz2)
+build ()
+{
+ cd $name-$version;
+ ./Configure -des \
+ -Dprefix=$prefix \
+ -Dprivlib=$libdir/perl5/${version%.*} \
+ -Dsitelib=$libdir/perl5/site_perl/${version%.*} \
+ -Darchname=linux \
+ -Dman1ext=1pm \
+ -Dman3ext=3pm \
+ -Dman1dir=$mandir/man1 \
+ -Dman3dir=$mandir/man3 \
+ -Di_gdbm -Di_db -Duseshrplib -Dusethreads \
+ -Doptimize="$CFLAGS";
+ make;
+ make DESTDIR=$PKG install;
+ ln -sf perl$version $PKG$bindir/perl;
+ ln -sf c2ph $PKG$bindir/pstruct;
+ ln -sf s2p $PKG$bindir/psed;
+ ln -sf c2ph.1pm $PKG$mandir/man1/pstruct.1pm;
+ ln -sf s2p.1pm $PKG$mandir/man1/psed.1pm;
+ 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
+}