aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-moose/APKBUILD
blob: 6163740a90bba599525c621b518a4622a2bdaca2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           
                  
                                                              
              
             
        
                                               
                                                        
                                         
          
                                               






                                                                                      
                      
                                                                                                
                          
                                                                             
                                    
 
         

                                                                     
            

 




                                                                
           
                                      


                                                                           
 
            
                                                                                                                                                     
 
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moose
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Moose
pkgver=2.2201
pkgrel=1
pkgdesc="A postmodern object system for Perl 5"
options="!check" # Tests introduce circular dependencies
url="https://metacpan.org/release/Moose/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-task-weaken perl-module-runtime perl-list-moreutils
	perl-data-optlist perl-params-util perl-module-runtime-conflicts
	perl-sub-name perl-package-deprecationmanager perl-dist-checkconflicts
	perl-try-tiny perl-class-load perl-devel-globaldestruction
	perl-sub-identify perl-package-stash perl-eval-closure perl-devel-overloadinfo
	perl-sub-exporter perl-package-stash-xs perl-class-load-xs perl-mro-compat
	perl-devel-stacktrace"
makedepends="perl-dev"
checkdepends="perl-test-cleannamespaces perl-cpan-meta-check perl-test-requires perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="
71a22aab5b5de7de1e1a2df30e7526eb2913245733de9196328a6eaa9ada1699e74b58d5d3f9edbea6ddc35baf7febf0ebcce5f1210fc8777d6091acbac14260  Moose-2.2201.tar.gz
"