diff options
author | kevlo <kevlo@FreeBSD.org> | 2005-01-19 12:28:37 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2005-01-19 12:28:37 +0800 |
commit | 2d95b41d80edfb80883d815218e7260add26c7b7 (patch) | |
tree | 19c7e45d1b596be94ef65bc3ec48c21c513637c0 /math/algotutor | |
parent | 629fd52f35ce70bbb8c732878f8fe83e97f0c920 (diff) | |
download | freebsd-ports-gnome-2d95b41d80edfb80883d815218e7260add26c7b7.tar.gz freebsd-ports-gnome-2d95b41d80edfb80883d815218e7260add26c7b7.tar.zst freebsd-ports-gnome-2d95b41d80edfb80883d815218e7260add26c7b7.zip |
Initial import of algotutor 0.6.2
Algotutor is an interactive tutorial for algorithms and data structures.
Diffstat (limited to 'math/algotutor')
-rw-r--r-- | math/algotutor/Makefile | 46 | ||||
-rw-r--r-- | math/algotutor/distinfo | 2 | ||||
-rw-r--r-- | math/algotutor/files/patch-algotutor | 20 | ||||
-rw-r--r-- | math/algotutor/pkg-descr | 5 | ||||
-rw-r--r-- | math/algotutor/pkg-plist | 28 |
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 |