OSDN Git Service

add patch of FmtJapan.pm
authorKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 10:59:15 +0000 (19:59 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 10:59:15 +0000 (19:59 +0900)
perl-Spreadsheet-ParseExcel/PKGBUILD
perl-Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.65.patch [new file with mode: 0644]

index 8fae0d8..b3f828a 100644 (file)
@@ -14,6 +14,11 @@ options=('!emptydirs')
 source=("http://ftp.cpan.org/pub/CPAN/authors/id/D/DO/DOUGW/${_realname}-${pkgver}.tar.gz")
 sha256sums=('6ec4cb429bd58d81640fe12116f435c46f51ff1040c68f09cc8b7681c1675bec')
 
+prepare() {
+       cd "$srcdir/${_realname}-${pkgver}"
+       patch -p2 -i ${srcdir}/../${_realname}-${pkgver}.patch
+}
+
 build() {
   cd "${srcdir}/${_realname}-${pkgver}"
   perl Makefile.PL INSTALLDIRS=vendor
diff --git a/perl-Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.65.patch b/perl-Spreadsheet-ParseExcel/Spreadsheet-ParseExcel-0.65.patch
new file mode 100644 (file)
index 0000000..965aa90
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/Spreadsheet-ParseExcel-0.65/lib/Spreadsheet/ParseExcel/FmtJapan.pm     2014-03-19 05:03:17.000000000 +0900
++++ src/Spreadsheet-ParseExcel-0.65/lib/Spreadsheet/ParseExcel/FmtJapan.pm.new 2016-12-10 19:52:04.770838800 +0900
+@@ -94,7 +94,7 @@
+                 Carp::croak(qq{Unknown encoding '$encoding'});
+             };
+     }
+-    return bless $self, $class;
++    return bless $self, ref($class) || $class;
+ }
+ #------------------------------------------------------------------------------