[arch-commits] Commit in perl-variable-magic/repos (6 files)

Florian Pritz bluewind at archlinux.org
Fri May 27 08:02:35 UTC 2016


    Date: Friday, May 27, 2016 @ 10:02:35
  Author: bluewind
Revision: 177239

db-move: moved perl-variable-magic from [community-staging] to [community-testing] (i686, x86_64)

Added:
  perl-variable-magic/repos/community-testing-i686/
  perl-variable-magic/repos/community-testing-i686/PKGBUILD
    (from rev 177238, perl-variable-magic/repos/community-staging-i686/PKGBUILD)
  perl-variable-magic/repos/community-testing-x86_64/
  perl-variable-magic/repos/community-testing-x86_64/PKGBUILD
    (from rev 177238, perl-variable-magic/repos/community-staging-x86_64/PKGBUILD)
Deleted:
  perl-variable-magic/repos/community-staging-i686/
  perl-variable-magic/repos/community-staging-x86_64/

-----------------------------------+
 community-testing-i686/PKGBUILD   |   55 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   55 ++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)

Copied: perl-variable-magic/repos/community-testing-i686/PKGBUILD (from rev 177238, perl-variable-magic/repos/community-staging-i686/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2016-05-27 08:02:35 UTC (rev 177239)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname="perl-variable-magic"
+_cpanname="Variable-Magic"
+pkgver=0.59
+pkgrel=2
+pkgdesc="Associate user-defined magic to variables from Perl."
+arch=("i686" "x86_64")
+license=("PerlArtistic" "GPL")
+options=("!emptydirs")
+depends=("perl")
+url="http://search.cpan.org/dist/$_cpanname"
+source=("http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_cpanname-$pkgver.tar.gz")
+
+# Function to change to the working directory and set
+# environment variables to override undesired options.
+prepareEnvironment() {
+  cd "$srcdir/$_cpanname-$pkgver"
+  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"
+}
+md5sums=('f43b0182fe4b0f38bcdb69a4a838785e')
+
+build() {
+  prepareEnvironment
+  /usr/bin/perl Makefile.PL
+  make
+}
+
+check() {
+  prepareEnvironment
+  make test
+}
+
+package() {
+  prepareEnvironment
+  make install
+
+  # Remove "perllocal.pod" and ".packlist".
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+	_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+	_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+	depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}

Copied: perl-variable-magic/repos/community-testing-x86_64/PKGBUILD (from rev 177238, perl-variable-magic/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2016-05-27 08:02:35 UTC (rev 177239)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname="perl-variable-magic"
+_cpanname="Variable-Magic"
+pkgver=0.59
+pkgrel=2
+pkgdesc="Associate user-defined magic to variables from Perl."
+arch=("i686" "x86_64")
+license=("PerlArtistic" "GPL")
+options=("!emptydirs")
+depends=("perl")
+url="http://search.cpan.org/dist/$_cpanname"
+source=("http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_cpanname-$pkgver.tar.gz")
+
+# Function to change to the working directory and set
+# environment variables to override undesired options.
+prepareEnvironment() {
+  cd "$srcdir/$_cpanname-$pkgver"
+  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"
+}
+md5sums=('f43b0182fe4b0f38bcdb69a4a838785e')
+
+build() {
+  prepareEnvironment
+  /usr/bin/perl Makefile.PL
+  make
+}
+
+check() {
+  prepareEnvironment
+  make test
+}
+
+package() {
+  prepareEnvironment
+  make install
+
+  # Remove "perllocal.pod" and ".packlist".
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+	_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+	_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+	depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}



More information about the arch-commits mailing list