forked from ports/contrib
26 lines
737 B
Plaintext
26 lines
737 B
Plaintext
# Description: DEPRECATED: USE File::Spec and Cwd::abs_path().
|
|
# URL: http://search.cpan.org/~rbs/File-PathConvert-0.9/PathConvert.pm
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
|
# Depends on: perl
|
|
|
|
name=p5-file-pathconvert
|
|
version=0.9
|
|
release=1
|
|
source="http://www.cpan.org/modules/by-module/File/File-PathConvert-$version.tar.gz"
|
|
|
|
build() {
|
|
cd File-PathConvert-$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 {} \;
|
|
}
|