forked from ports/contrib
33 lines
760 B
Plaintext
33 lines
760 B
Plaintext
# Description: Perl XML Parser
|
|
# URL: http://search.cpan.org/~msergeant/XML-Parser-2.34/
|
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
|
# Packager: Han Boetes han at mijncomputer dot nl
|
|
#
|
|
# Depends on: perl
|
|
|
|
name=p5-xml-writer
|
|
capsname=XML-Writer
|
|
version=0.602
|
|
release=1
|
|
source=(http://www.cpan.org/modules/by-module/XML/XML-Writer-$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 {} \;
|
|
|
|
chown -R root:root $PKG
|
|
}
|