1
0
forked from ports/contrib

p5-date-manip: picked up port

This commit is contained in:
Danny Rawlins 2008-04-11 16:34:37 +10:00
parent b9afcdc7a3
commit b2e5bf9c45
2 changed files with 21 additions and 23 deletions

View File

@ -1 +1 @@
ebb1e17639fc4260b72690c1de2f5fdc DateManip-5.44.tar.gz
961ba2cd3b00ea82f77e1fba10036c79 Date-Manip-5.48.tar.gz

View File

@ -1,31 +1,29 @@
# Description: perl date manip
# URL: http://search.cpan.org/~sbeck/DateManip-5.44/
# Maintainer: unmaintained
# Packager: Han Boetes han at mijncomputer dot nl
#
# Depends on: perl
# Description: perl date manip.
# URL: http://search.cpan.org/~sbeck/Date-Manip-5.48/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Han Boetes han at mijncomputer dot nl
# Depends on: perl
name=p5-date-manip
version=5.44
version=5.48
release=1
source=(http://www.cpan.org/modules/by-module/Date/DateManip-$version.tar.gz)
source=(http://www.cpan.org/modules/by-module/Date/Date-Manip-$version.tar.gz)
build() {
cd DateManip-$version
cd Date-Manip-$version
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make install DESTDIR=$PKG
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make install DESTDIR=$PKG
# Remove perlcrap
find $PKG \
-name .packlist -or \
-name '*.bs' -or \
-name autosplit.ix -or \
-name perllocal.pod | xargs rm
# Remove perlcrap
find $PKG -type f \
\( -name '.packlist' -or \
-name '*.bs' -or \
-name 'autosplit.ix' -or \
-name 'perllocal.pod' \) -delete
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
chown -R root:root $PKG
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
}