1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=perl-graph-readwrite
5 pkgdesc='A collection of classes for reading and writing directed graphs in a variety of file formats.'
7 url='http://search.cpan.org/dist/Graph-ReadWrite/'
9 depends=('perl>=5.10.0' 'perl-graph' 'perl-xml-parser' 'perl-xml-writer')
17 source=("http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Graph-ReadWrite-$pkgver.tar.gz")
20 cd "$srcdir/Graph-ReadWrite-$pkgver"
22 # Setting these env variables overwrites any command-line-options we don't want...
23 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
24 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
25 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
26 MODULEBUILDRC=/dev/null
28 # If using Makefile.PL
29 { /usr/bin/perl Makefile.PL &&
32 make install; } || return 1
34 # remove perllocal.pod and .packlist
35 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
37 # vim:set ts=2 sw=2 et:
38 md5sums=('e82da37e1202dcf431f03375e5e553e0')