[arch-commits] Commit in perl-switch/repos/community-any (4 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Thu May 15 14:31:11 UTC 2014


    Date: Thursday, May 15, 2014 @ 16:31:10
  Author: spupykin
Revision: 111227

archrelease: copy trunk to community-any

Added:
  perl-switch/repos/community-any/PKGBUILD
    (from rev 111226, perl-switch/trunk/PKGBUILD)
  perl-switch/repos/community-any/switch.diff
    (from rev 111226, perl-switch/trunk/switch.diff)
Deleted:
  perl-switch/repos/community-any/PKGBUILD
  perl-switch/repos/community-any/switch.diff

-------------+
 PKGBUILD    |   89 +++++++++++++++++++++++++++-------------------------------
 switch.diff |   22 +++++++-------
 2 files changed, 53 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-15 14:31:01 UTC (rev 111226)
+++ PKGBUILD	2014-05-15 14:31:10 UTC (rev 111227)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# CPAN Name  : Switch
-# Contributor: AUR Perl <aurperl at juster.info>
-# Generator  : CPANPLUS::Dist::Arch 1.12
-
-pkgname='perl-switch'
-pkgver=2.16
-pkgrel=1
-pkgdesc="A switch statement for Perl"
-arch=('any')
-license=('PerlArtistic' 'GPL')
-options=('!emptydirs')
-depends=('perl')
-makedepends=()
-url='http://search.cpan.org/dist/Switch'
-source=(http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-$pkgver.tar.gz
-	switch.diff)
-md5sums=('bf75dc7f171b4718a2118c3d6cbe6013'
-         'd4d48e5ef390f807d1f929ddc0808b4a')
-
-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}/Switch-$pkgver
-    patch -p1 < "$srcdir/switch.diff"
-    /usr/bin/perl Makefile.PL
-    make
-  )
-}
-
-check() {
-  cd ${srcdir}/Switch-$pkgver
-  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
-    make test
-  )
-}
-
-package() {
-  cd ${srcdir}/Switch-$pkgver
-  make install
-  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
-}

Copied: perl-switch/repos/community-any/PKGBUILD (from rev 111226, perl-switch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-05-15 14:31:10 UTC (rev 111227)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# CPAN Name  : Switch
+# Contributor: AUR Perl <aurperl at juster.info>
+# Generator  : CPANPLUS::Dist::Arch 1.12
+
+pkgname='perl-switch'
+pkgver=2.17
+pkgrel=1
+pkgdesc="A switch statement for Perl"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='http://search.cpan.org/dist/Switch'
+source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Switch-$pkgver.tar.gz)
+md5sums=('34e2b6dac0a43384505b4e036633cff0')
+
+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}/Switch-$pkgver
+  perl Makefile.PL
+  make
+}
+
+check() {
+  cd ${srcdir}/Switch-$pkgver
+  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+  make test
+}
+
+package() {
+  cd ${srcdir}/Switch-$pkgver
+  make install
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}

Deleted: switch.diff
===================================================================
--- switch.diff	2014-05-15 14:31:01 UTC (rev 111226)
+++ switch.diff	2014-05-15 14:31:10 UTC (rev 111227)
@@ -1,11 +0,0 @@
---- Switch-2.16-wjgfvU/Switch.pm	2009-10-23 00:52:51.000000000 -0700
-+++ Switch-2.16-wjgfvUcopy/Switch.pm	2010-08-15 17:41:38.000000000 -0700
-@@ -146,7 +146,7 @@ sub filter_blocks
- 				die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0, pos $source), $line), "\n";
- 			};
- 			my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line));
--			$code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch $arg;/;
-+			$code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch($arg);/;
- 			$text .= $code . 'continue {last}';
- 			next component;
- 		}

Copied: perl-switch/repos/community-any/switch.diff (from rev 111226, perl-switch/trunk/switch.diff)
===================================================================
--- switch.diff	                        (rev 0)
+++ switch.diff	2014-05-15 14:31:10 UTC (rev 111227)
@@ -0,0 +1,11 @@
+--- Switch-2.16-wjgfvU/Switch.pm	2009-10-23 00:52:51.000000000 -0700
++++ Switch-2.16-wjgfvUcopy/Switch.pm	2010-08-15 17:41:38.000000000 -0700
+@@ -146,7 +146,7 @@ sub filter_blocks
+ 				die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0, pos $source), $line), "\n";
+ 			};
+ 			my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line));
+-			$code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch $arg;/;
++			$code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch($arg);/;
+ 			$text .= $code . 'continue {last}';
+ 			next component;
+ 		}




More information about the arch-commits mailing list