ports/math/algotutor/files/patch-algotutor
Kevin Lo 5793bef17f Don't hard code the perl version. While here, fix MASTER_SITES.
PR:	ports/179489
Submitted by:	Javad Kouhi <javad dot kouhi at gmail.com>
2013-06-13 06:11:34 +00:00

20 lines
768 B
Text

--- algotutor.orig Tue Apr 10 18:55:36 2007
+++ algotutor Tue Apr 10 18:56:10 2007
@@ -4,7 +4,7 @@
use strict;
use Getopt::Std;
-use lib '/usr/share/perl5/algotutor';
+use lib '!!PREFIX!!/lib/perl5/site_perl/!!PERL_VERSION!!/algotutor';
BEGIN {
my ($path) = $0 =~ m#(.*/)#;
@@ -58,7 +58,7 @@
$tab->{$algo}{run}();
} else {
# algorithms other than dynamic programming
- die "need exactly one data file. Example:\n\talgotutor -a bst /usr/share/algotutor/data/countries.gr\n"
+ die "need exactly one data file. Example:\n\talgotutor -a bst !!PREFIX!!/share/algotutor/data/countries.gr\n"
unless $#ARGV == 0;
$dfn = $ARGV[0];
die "cannot read data file '$dfn'.\nDoes it exist and do you have read permissions?\n" unless -r $dfn;