aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2008-05-24 14:51:36 +0800
committeredwin <edwin@FreeBSD.org>2008-05-24 14:51:36 +0800
commita0a26e2ad9aec337a81ce5cbe6ddef2c154e20d6 (patch)
tree339ced00af12a5ff20240b8cc492cbb30433a934 /science
parent4d7ec78a51076f923b438953cff9969418e593c2 (diff)
downloadfreebsd-ports-graphics-a0a26e2ad9aec337a81ce5cbe6ddef2c154e20d6.tar.gz
freebsd-ports-graphics-a0a26e2ad9aec337a81ce5cbe6ddef2c154e20d6.tar.zst
freebsd-ports-graphics-a0a26e2ad9aec337a81ce5cbe6ddef2c154e20d6.zip
[NEW PORT] graphics/2d-rewriter: Fractals generator based on pattern matching and rewriting
2d-rewriter is fractals generator based on pattern matching and rewriting. The program takes input containing initial object placement and rewriting rules and keeps applying rules to the data field until it reaches an arrangement where no rules can be applied. PR: ports/118906 Submitted by: Igor Serikov <bt@turtle.freedns.us>
Diffstat (limited to 'science')
-rw-r--r--science/2d-rewriter/Makefile26
-rw-r--r--science/2d-rewriter/distinfo3
-rw-r--r--science/2d-rewriter/pkg-descr19
-rw-r--r--science/2d-rewriter/pkg-plist7
-rw-r--r--science/Makefile1
5 files changed, 56 insertions, 0 deletions
diff --git a/science/2d-rewriter/Makefile b/science/2d-rewriter/Makefile
new file mode 100644
index 00000000000..4e678569a11
--- /dev/null
+++ b/science/2d-rewriter/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: 2d-rewriter
+# Date created: 8 December 2007
+# Whom: Igor Serikov <bt@turtle.freedns.us>
+#
+# $FreeBSD$
+#
+
+PORTNAME= 2d-rewriter
+DISTVERSION= 1.2
+CATEGORIES= science
+MASTER_SITES= http://www.crowdeduniverse.org/distfiles/
+
+MAINTAINER= bt@turtle.freedns.us
+COMMENT= Cellular automata simulator
+
+MAN1= 2d-rewriter.1
+MANCOMPRESSED= yes
+USE_IMAKE= yes
+
+post-install:
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.endif
+
+.include <bsd.port.mk>
diff --git a/science/2d-rewriter/distinfo b/science/2d-rewriter/distinfo
new file mode 100644
index 00000000000..82cb932f9f1
--- /dev/null
+++ b/science/2d-rewriter/distinfo
@@ -0,0 +1,3 @@
+MD5 (2d-rewriter-1.2.tar.gz) = 4d8f01e10f518fe2bfa247737cf2ae11
+SHA256 (2d-rewriter-1.2.tar.gz) = 118fafb7ee916924126b89d89b1f4454735789cd2c36264985336f8190530092
+SIZE (2d-rewriter-1.2.tar.gz) = 15085
diff --git a/science/2d-rewriter/pkg-descr b/science/2d-rewriter/pkg-descr
new file mode 100644
index 00000000000..dea5ecd5d67
--- /dev/null
+++ b/science/2d-rewriter/pkg-descr
@@ -0,0 +1,19 @@
+2d-rewriter is a cellular automata simulator.
+
+ Key features
+
+Declarative input language for rules and initial patterns definition.
+
+Ability to emulate Conway's "Life Game" via proper rules specification.
+
+Ability to demonstrate self replicating loops.
+
+Patterns are tried in 4 orientations.
+
+Cell directions are defined against the pattern orientation.
+
+Total number of rules can be substantially decreased by using
+sets and defining patterns using variables.
+
+Required run time environment is a minimal X window system installation
+on an POSIX-compatible system (*BSD/Linux/Mac OS X/Cygwin/...).
diff --git a/science/2d-rewriter/pkg-plist b/science/2d-rewriter/pkg-plist
new file mode 100644
index 00000000000..4ba0332e24b
--- /dev/null
+++ b/science/2d-rewriter/pkg-plist
@@ -0,0 +1,7 @@
+bin/2d-rewriter
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/life.rules
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/life1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/life2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sierpinski.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/srloop.txt
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/science/Makefile b/science/Makefile
index 7ad58ae89d7..7aa3cd9ba56 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -3,6 +3,7 @@
COMMENT = Scientific ports
+ SUBDIR += 2d-rewriter
SUBDIR += 2dhf
SUBDIR += InsightToolkit
SUBDIR += abinit