forked from ports/contrib
28 lines
742 B
Plaintext
28 lines
742 B
Plaintext
|
# Description: parse XML documents
|
||
|
# URL: http://search.cpan.org/~msergeant/XML-Parser-2.34/Parser.pm
|
||
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
||
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
||
|
# Depends on: perl
|
||
|
|
||
|
name=p5-xml-writer
|
||
|
capsname=XML-Writer
|
||
|
version=0.600
|
||
|
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 {} \;
|
||
|
}
|