forked from ports/contrib
27 lines
734 B
Plaintext
27 lines
734 B
Plaintext
# Description: perl date/time object implementation
|
|
# URL: http://search.cpan.org/~gbarr/TimeDate-1.16/
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
|
# Depends on: perl
|
|
|
|
name=p5-timedate
|
|
capsname=TimeDate
|
|
version=1.16
|
|
release=1
|
|
source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-$version.tar.gz"
|
|
|
|
build() {
|
|
cd $capsname-$version
|
|
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 empty directories
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
|
}
|