forked from ports/contrib
27 lines
778 B
Plaintext
27 lines
778 B
Plaintext
# Description: perl I/O on in-core objects like strings and arrays
|
|
# URL: http://search.cpan.org/~eryq/IO-stringy-2.109/lib/IO/Stringy.pm
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
|
# Depends on: perl
|
|
|
|
name=p5-io-stringy
|
|
capsname=IO-stringy
|
|
version=2.110
|
|
release=1
|
|
source="http://www.cpan.org/modules/by-module/${capsname%%-*}/$capsname-$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 {} \;
|
|
}
|