OSDN Git Service

add patch for Spreadsheet-XLSX
authorKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 12:19:12 +0000 (21:19 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 12:19:12 +0000 (21:19 +0900)
perl-Spreadsheet-XLSX/PKGBUILD
perl-Spreadsheet-XLSX/Spreadsheet-XLSX-0.15.patch [new file with mode: 0644]

index 39cd799..84191f9 100644 (file)
@@ -14,6 +14,11 @@ options=('!emptydirs')
 source=("http://ftp.cpan.org/pub/CPAN/authors/id/M/MI/MIKEB/${_realname}-${pkgver}.tar.gz")
 sha256sums=('253e90ca3136abb1306ecdee37c910b01c3e6030e49569204f9a39342df5d641')
 
+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-XLSX/Spreadsheet-XLSX-0.15.patch b/perl-Spreadsheet-XLSX/Spreadsheet-XLSX-0.15.patch
new file mode 100644 (file)
index 0000000..65e9bed
--- /dev/null
@@ -0,0 +1,10 @@
+--- src/Spreadsheet-XLSX-0.15/lib/Spreadsheet/XLSX.pm  2015-10-31 11:33:19.000000000 +0900
++++ src/Spreadsheet-XLSX-0.15/lib/Spreadsheet/XLSX.pm.new      2016-12-10 20:46:34.466340400 +0900
+@@ -194,6 +194,7 @@
+         my $mstr = $member_shared_strings->contents;
+         $mstr =~ s/<t\/>/<t><\/t>/gsm;    # this handles an empty t tag in the xml <t/>
+         foreach my $si ($mstr =~ /<si.*?>(.*?)<\/si/gsm) {
++              $si =~ s!<rPh[^>]*>.*?</rPh>!!gsm;
+             my $str;
+             foreach my $t ($si =~ /<t.*?>(.*?)<\/t/gsm) {
+                 $t = $converter->convert($t) if defined $converter;