Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: not_anonymous <nmlibertarian@gmail.com>
- # Generator : CPANPLUS::Dist::Arch 1.29
- pkgname='perl-alien-wxwidgets'
- pkgver='0.65'
- pkgrel='2'
- pkgdesc="building, finding and using wxWidgets binaries"
- arch=('any')
- license=('PerlArtistic' 'GPL')
- options=('!emptydirs')
- depends=('perl-module-pluggable>=2.6' 'perl>=5.006')
- makedepends=('wxgtk>=3.0.2')
- url='http://search.cpan.org/dist/Alien-wxWidgets'
- source=('http://search.cpan.org/CPAN/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-0.65.tar.gz'
- 'wx-config-version-and-env.patch'
- 'Alien-wxWidgets-0.64-returnor.patch')
- md5sums=('219a4f572d24eaa98c3dc2d118c5d9f0'
- '5a716e70d33bf5bd6fcb2fc15a93eec8'
- '518bcff0a51eb93bc86e75d6ea891018')
- _distdir="Alien-wxWidgets-0.65"
- prepare() {
- cd "$srcdir/$_distdir"
- patch -Np0 -i ../wx-config-version-and-env.patch
- patch -Np0 -i ../Alien-wxWidgets-0.64-returnor.patch
- }
- build() {
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
- PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
- MODULEBUILDRC=/dev/null
- cd "$srcdir/$_distdir"
- /usr/bin/perl Makefile.PL
- make
- )
- }
- check() {
- cd "$srcdir/$_distdir"
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- make test
- )
- }
- package() {
- cd "$srcdir/$_distdir"
- make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
- }
- # Local Variables:
- # mode: shell-script
- # sh-basic-offset: 2
- # End:
- # vim:set ts=2 sw=2 et:
- $ cat wx-config-version-and-env.patch
- --- Build.PL 2014-03-23 15:48:03.000000000 +0100
- +++ Build.PL 2014-08-17 17:43:36.000000000 +0200
- @@ -150,11 +150,11 @@
- EOP
- } else {
- require My::Build::Base;
- - my $wx_config = My::Build::Base->awx_path_search( 'wx-config' );
- + my $wx_config = $ENV{WX_CONFIG} || My::Build::Base->awx_path_search( 'wx-config' );
- if( $wx_config ) {
- - my $ans = `wx-config --version`;
- - if( $ans =~ /^2\./ ) {
- - my $prefix = `wx-config --prefix`;
- + my $ans = `$wx_config --version`;
- + if( $ans =~ /^[23]\./ ) {
- + my $prefix = `$wx_config --prefix`;
- chomp foreach $ans, $prefix;
- if( _check_installed_widgets_ok($ans, $prefix) ) {
- $build_wx_dflt = 'no' ;
- $ cat Alien-wxWidgets-0.64-returnor.patch
- --- lib/Alien/wxWidgets/Utility.pm 2013-04-13 03:15:38.000000000 -0500
- +++ lib/Alien/wxWidgets/Utility.pm 2013-07-19 16:24:57.200682998 -0500
- @@ -74,7 +74,7 @@
- sub awx_cc_is_msvc {
- my( $cc ) = @_;
- - return $^O =~ /MSWin32/ and $cc =~ /^cl/i;
- + return ($^O =~ /MSWin32/ and $cc =~ /^cl/i);
- }
- sub awx_cc_is_gcc {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement