academic/perlprimer: Updated for version 1.1.21.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Petar Petrov 2016-11-22 20:27:29 +00:00 committed by Willy Sudiarto Raharjo
parent bd3e6b342b
commit 592919638f
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- orig/perlprimer.pl 2016-11-22 21:06:25.135978000 +0200
+++ new/perlprimer.pl 2016-11-22 21:08:09.001971413 +0200
@@ -5226,7 +5226,7 @@ sub generate_report {
}
my ($hlist_sel) = $$hlist_ref->selectionGet;
- unless (defined(@$slist) && defined($hlist_sel)) {
+ unless (@$slist && defined($hlist_sel)) {
dialogue("The Generate Report function saves the statistics and alignment of a particular primer pair - please select a primer pair first");
return;
}

View File

@ -24,7 +24,7 @@
PRGNAM=perlprimer
VERSION=${VERSION:-1.1.21}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
ARCH=noarch
@ -50,7 +50,11 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Thanks to Debian for the patch!
patch -p1 -i $CWD/sytaxerrors.patch
patch -p1 -i $CWD/01_sytaxerrors.patch
# A quick fix to this issue:
# https://bugs.launchpad.net/ubuntu/+source/perlprimer/+bug/1575074
patch -p1 -i $CWD/02_fix-defined-slist.patch
install -D -m755 perlprimer.pl $PKG/usr/bin/perlprimer.pl
install -D -m644 gcg.603 $PKG/usr/share/$PRGNAM/gcg.603