forked from Lainports/freebsd-ports
Update to 0.8.2
This commit is contained in:
parent
d0a46500cf
commit
8d344d5fd5
4 changed files with 35 additions and 22 deletions
|
|
@ -1,12 +1,12 @@
|
|||
# New ports collection makefile for: algotutor
|
||||
# Date created: 19 January 2005
|
||||
# Whom: Kevin Lo <kevlo@FreeBSD.org>
|
||||
# Date created: 19 January 2005
|
||||
# Whom: Kevin Lo <kevlo@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= algotutor
|
||||
PORTVERSION= 0.7
|
||||
PORTVERSION= 0.8.2
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://www.cyut.edu.tw/~ckhung/dl/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
|
@ -22,9 +22,10 @@ NO_BUILD= yes
|
|||
|
||||
MAN1= algotutor.1 gen_at_graph.1
|
||||
BINFILES= algotutor gen_at_graph
|
||||
LIBFILES= .algotutor BST.pm DCEdge.pm Edge.pm Graph.pm Heap.pm \
|
||||
PQueue.pm RBTree.pm RecCanvas.pm RecDialog.pm TreeNode.pm \
|
||||
Vector.pm Vertex.pm utilalgo
|
||||
LIBFILES= BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
|
||||
Edge.pm Graph.pm Heap.pm PQueue.pm RBTree.pm RecCanvas.pm \
|
||||
RecDialog.pm TreeNode.pm Vector.pm Vertex.pm basic.pl \
|
||||
utilalgo
|
||||
|
||||
post-patch:
|
||||
${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor
|
||||
|
|
@ -32,16 +33,18 @@ post-patch:
|
|||
do-install:
|
||||
${MKDIR} ${PREFIX}/share/algotutor
|
||||
${CP} -R ${WRKSRC}/data ${PREFIX}/share/algotutor
|
||||
${CP} -R ${WRKSRC}/graph ${PREFIX}/share/algotutor
|
||||
${CP} -R ${WRKSRC}/cgeom ${SITE_PERL}/algotutor/
|
||||
${CP} -R ${WRKSRC}/dp ${SITE_PERL}/algotutor
|
||||
${CP} -R ${WRKSRC}/graph ${SITE_PERL}/algotutor
|
||||
.for file in ${MAN1}
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${file} ${PREFIX}/man/man1
|
||||
.endfor
|
||||
${MKDIR} ${SITE_PERL}/algotutor
|
||||
.for file in ${BINFILES}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
|
||||
.endfor
|
||||
.for file in ${LIBFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${SITE_PERL}/algotutor/
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${SITE_PERL}/algotutor
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (algotutor-0.7.tgz) = b0e6f2fd093c587a77536934e8b7cdaa
|
||||
SIZE (algotutor-0.7.tgz) = 102620
|
||||
MD5 (algotutor-0.8.2.tgz) = 22e39de94c8c40b25a53b9a90735d887
|
||||
SIZE (algotutor-0.8.2.tgz) = 104425
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
--- algotutor.orig Wed Jan 19 12:06:33 2005
|
||||
+++ algotutor Wed Jan 19 12:09:25 2005
|
||||
--- algotutor.orig Tue Apr 12 21:35:39 2005
|
||||
+++ algotutor Wed Apr 13 11:50:11 2005
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
use strict;
|
||||
use Getopt::Std;
|
||||
-use lib '/usr/share/perl5/algotutor';
|
||||
+use lib '!!PREFIX!!/lib/perl5/site_perl/5.8.5/algotutor';
|
||||
+use lib '!!PREFIX!!/lib/perl5/site_perl/5.8.6/algotutor';
|
||||
|
||||
BEGIN {
|
||||
my ($path) = $0 =~ m#(.*/)#;
|
||||
@@ -24,7 +24,7 @@
|
||||
);
|
||||
@@ -33,7 +33,7 @@
|
||||
dynprog($opts{a});
|
||||
}
|
||||
|
||||
getopts('a:s:', \%opts);
|
||||
-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;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
bin/algotutor
|
||||
bin/gen_at_graph
|
||||
%%SITE_PERL%%/algotutor/.algotutor
|
||||
%%SITE_PERL%%/algotutor/BST.pm
|
||||
%%SITE_PERL%%/algotutor/Board.pm
|
||||
%%SITE_PERL%%/algotutor/Collection.pm
|
||||
%%SITE_PERL%%/algotutor/Configurable.pm
|
||||
%%SITE_PERL%%/algotutor/DCEdge.pm
|
||||
%%SITE_PERL%%/algotutor/Edge.pm
|
||||
%%SITE_PERL%%/algotutor/Graph.pm
|
||||
|
|
@ -13,6 +15,15 @@ bin/gen_at_graph
|
|||
%%SITE_PERL%%/algotutor/TreeNode.pm
|
||||
%%SITE_PERL%%/algotutor/Vector.pm
|
||||
%%SITE_PERL%%/algotutor/Vertex.pm
|
||||
%%SITE_PERL%%/algotutor/basic.pl
|
||||
%%SITE_PERL%%/algotutor/cgeom/dom
|
||||
%%SITE_PERL%%/algotutor/cgeom/graham
|
||||
%%SITE_PERL%%/algotutor/cgeom/utils
|
||||
%%SITE_PERL%%/algotutor/dp/lcs
|
||||
%%SITE_PERL%%/algotutor/dp/matrixchain
|
||||
%%SITE_PERL%%/algotutor/graph/dfs
|
||||
%%SITE_PERL%%/algotutor/graph/flwa
|
||||
%%SITE_PERL%%/algotutor/graph/pfs
|
||||
%%SITE_PERL%%/algotutor/utilalgo
|
||||
share/algotutor/data/countries.gr
|
||||
share/algotutor/data/lv.gr
|
||||
|
|
@ -21,10 +32,9 @@ share/algotutor/data/randgrid.gr
|
|||
share/algotutor/data/simple.gr
|
||||
share/algotutor/data/trc.gr
|
||||
share/algotutor/data/tt.gr
|
||||
share/algotutor/graph/dfs
|
||||
share/algotutor/graph/flwa
|
||||
share/algotutor/graph/pfs
|
||||
@dirrm share/algotutor/graph
|
||||
@dirrm share/algotutor/data
|
||||
@dirrm share/algotutor
|
||||
@dirrm %%SITE_PERL%%/algotutor/graph
|
||||
@dirrm %%SITE_PERL%%/algotutor/dp
|
||||
@dirrm %%SITE_PERL%%/algotutor/cgeom
|
||||
@dirrm %%SITE_PERL%%/algotutor
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue