aboutsummaryrefslogtreecommitdiff
path: root/math/algotutor
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2005-01-19 04:28:37 +0000
committerKevin Lo <kevlo@FreeBSD.org>2005-01-19 04:28:37 +0000
commitda06aac91e1e56c409058e6789e6b3571c800fa0 (patch)
tree5cc83dc61b97a3d1de38bfd851085a1bb9c97cb3 /math/algotutor
parent6ecc1bda8f1e29c11bb120408bf9f3629894b9c1 (diff)
downloadports-da06aac91e1e56c409058e6789e6b3571c800fa0.tar.gz
ports-da06aac91e1e56c409058e6789e6b3571c800fa0.zip
Notes
Diffstat (limited to 'math/algotutor')
-rw-r--r--math/algotutor/Makefile46
-rw-r--r--math/algotutor/distinfo2
-rw-r--r--math/algotutor/files/patch-algotutor20
-rw-r--r--math/algotutor/pkg-descr5
-rw-r--r--math/algotutor/pkg-plist28
5 files changed, 101 insertions, 0 deletions
diff --git a/math/algotutor/Makefile b/math/algotutor/Makefile
new file mode 100644
index 000000000000..28a8c16a2a18
--- /dev/null
+++ b/math/algotutor/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: algotutor
+# Date created: 19 January 2005
+# Whom: Kevin Lo <kevlo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= algotutor
+PORTVERSION= 0.6.2
+CATEGORIES= math
+MASTER_SITES= http://www.cyut.edu.tw/~ckhung/dl/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= kevlo@FreeBSD.org
+COMMENT= An interactive tutorial for algorithms and data structures
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+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
+
+post-patch:
+ ${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/algotutor
+ ${CP} -R ${WRKSRC}/data ${PREFIX}/share/algotutor
+ ${CP} -R ${WRKSRC}/graph ${PREFIX}/share/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/
+.endfor
+.for file in ${LIBFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${SITE_PERL}/algotutor/
+.endfor
+
+.include <bsd.port.mk>
diff --git a/math/algotutor/distinfo b/math/algotutor/distinfo
new file mode 100644
index 000000000000..8fd99ddc68e9
--- /dev/null
+++ b/math/algotutor/distinfo
@@ -0,0 +1,2 @@
+MD5 (algotutor-0.6.2.tgz) = ad85c604ab689fa4b4c38daf35803935
+SIZE (algotutor-0.6.2.tgz) = 110169
diff --git a/math/algotutor/files/patch-algotutor b/math/algotutor/files/patch-algotutor
new file mode 100644
index 000000000000..75e3b475a13d
--- /dev/null
+++ b/math/algotutor/files/patch-algotutor
@@ -0,0 +1,20 @@
+--- algotutor.orig Wed Jan 19 12:06:33 2005
++++ algotutor Wed Jan 19 12:09:25 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';
+
+ BEGIN {
+ my ($path) = $0 =~ m#(.*/)#;
+@@ -24,7 +24,7 @@
+ );
+
+ 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;
+ $dfn = $ARGV[0];
+ die "cannot read data file '$dfn'.\nDoes it exist and do you have read permissions?\n" unless -r $dfn;
diff --git a/math/algotutor/pkg-descr b/math/algotutor/pkg-descr
new file mode 100644
index 000000000000..0fad1f25166a
--- /dev/null
+++ b/math/algotutor/pkg-descr
@@ -0,0 +1,5 @@
+Algotutor is an interactive program for observing the intermediate
+steps of algorithms. The target audience is computer science students
+and/or anyone who studies algorithms and/or data structures.
+
+WWW: http://www.cyut.edu.tw/~ckhung/p/algotutor/index.en.shtml
diff --git a/math/algotutor/pkg-plist b/math/algotutor/pkg-plist
new file mode 100644
index 000000000000..aa5ca4b24b56
--- /dev/null
+++ b/math/algotutor/pkg-plist
@@ -0,0 +1,28 @@
+bin/algotutor
+bin/gen_at_graph
+%%SITE_PERL%%/algotutor/.algotutor
+%%SITE_PERL%%/algotutor/BST.pm
+%%SITE_PERL%%/algotutor/DCEdge.pm
+%%SITE_PERL%%/algotutor/Edge.pm
+%%SITE_PERL%%/algotutor/Graph.pm
+%%SITE_PERL%%/algotutor/Heap.pm
+%%SITE_PERL%%/algotutor/PQueue.pm
+%%SITE_PERL%%/algotutor/RBTree.pm
+%%SITE_PERL%%/algotutor/RecCanvas.pm
+%%SITE_PERL%%/algotutor/RecDialog.pm
+%%SITE_PERL%%/algotutor/TreeNode.pm
+%%SITE_PERL%%/algotutor/Vector.pm
+%%SITE_PERL%%/algotutor/Vertex.pm
+%%SITE_PERL%%/algotutor/utilalgo
+share/algotutor/data/countries.gr
+share/algotutor/data/lv.gr
+share/algotutor/data/randgrid.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