summaryrefslogtreecommitdiff
path: root/perl-extutils-xspp
diff options
context:
space:
mode:
Diffstat (limited to 'perl-extutils-xspp')
-rw-r--r--perl-extutils-xspp/PKGBUILD94
1 files changed, 94 insertions, 0 deletions
diff --git a/perl-extutils-xspp/PKGBUILD b/perl-extutils-xspp/PKGBUILD
new file mode 100644
index 00000000..322aa61c
--- /dev/null
+++ b/perl-extutils-xspp/PKGBUILD
@@ -0,0 +1,94 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Piotr Rogoża <piotr.r.public at gmail.com>
+# Contributor: DarkHeart luke<at>archlinux.us
+
+pkgname=perl-extutils-xspp
+pkgver=0.18
+pkgrel=1
+_author=S/SM/SMUELLER
+_perlmod=ExtUtils-XSpp
+pkgdesc='ExtUtils::XSpp - XS for C++'
+arch=('any')
+url="http://search.cpan.org/dist/ExtUtils-XSpp/"
+license=('GPL' 'PerlArtistic')
+depends=(
+perl
+# perl-extutils-parsexs → perl
+# perl-extutils-typemaps → perl
+# perl-digest-md5 → perl
+)
+checkdepends=(
+perl-test-base
+perl-test-differences
+)
+makedepends=(
+perl-module-build
+# perl-module-build → perl
+)
+optdepends=()
+provides=(
+perl-extutils-xspp-cmd
+perl-extutils-xspp-driver
+perl-extutils-xspp-exception
+perl-extutils-xspp-exception-code
+perl-extutils-xspp-exception-object
+perl-extutils-xspp-exception-perlcode
+perl-extutils-xspp-exception-simple
+perl-extutils-xspp-exception-stdmessage
+perl-extutils-xspp-exception-unknown
+perl-extutils-xspp-grammar
+perl-extutils-xspp-grammar-yappdriver
+perl-extutils-xspp-lexer
+perl-extutils-xspp-node
+perl-extutils-xspp-node-access
+perl-extutils-xspp-node-argument
+perl-extutils-xspp-node-class
+perl-extutils-xspp-node-comment
+perl-extutils-xspp-node-constructor
+perl-extutils-xspp-node-destructor
+perl-extutils-xspp-node-enum
+perl-extutils-xspp-node-enumvalue
+perl-extutils-xspp-node-file
+perl-extutils-xspp-node-function
+perl-extutils-xspp-node-member
+perl-extutils-xspp-node-method
+perl-extutils-xspp-node-module
+perl-extutils-xspp-node-package
+perl-extutils-xspp-node-percany
+perl-extutils-xspp-node-preprocessor
+perl-extutils-xspp-node-raw
+perl-extutils-xspp-node-type
+perl-extutils-xspp-parser
+perl-extutils-xspp-plugin-feature-default_xs_typemap
+perl-extutils-xspp-typemap
+perl-extutils-xspp-typemap-parsed
+perl-extutils-xspp-typemap-reference
+perl-extutils-xspp-typemap-simple
+perl-extutils-xspp-typemap-wrapper
+)
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+sha256sums=('9176ad646729e3bd27cf7abf114bedd3424bff1ba61185cfc7d54f3a9223a8ff')
+
+build(){
+ cd "$srcdir"/$_perlmod-$pkgver
+
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ /usr/bin/perl Build.PL
+ perl Build
+}
+check(){
+ cd "$srcdir"/$_perlmod-$pkgver
+ perl Build test
+}
+package(){
+ cd "$srcdir"/$_perlmod-$pkgver
+ perl Build install
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}