# Description: Minimalist Object Orientation (with Moose compatibility) # URL: http://search.cpan.org/~haarg/Moo/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: p5-class-method-modifiers p5-role-tiny p5-sub-quote # Optional: p5-class-xsaccessor name=p5-moo version=2.005005 release=1 source=(http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Moo-${version}.tar.gz) build() { cd Moo-$version # PERL_MM_USE_DEFAULT=1 \ perl Makefile.PL make OPTIMIZE="$CFLAGS" DESTDIR="$PKG" install find "$PKG" -depth \ -type f \( -name .packlist -o -name \*.bs -o -name perllocal.pod \) -delete , \ -type f -name autosplit.ix \( -exec grep -q '^[[:space:]]*package' {} \; -o -delete \) , \ -type d -empty -exec rmdir {} + }