From a0a26e2ad9aec337a81ce5cbe6ddef2c154e20d6 Mon Sep 17 00:00:00 2001 From: edwin Date: Sat, 24 May 2008 06:51:36 +0000 Subject: [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 --- science/2d-rewriter/Makefile | 26 ++++++++++++++++++++++++++ science/2d-rewriter/distinfo | 3 +++ science/2d-rewriter/pkg-descr | 19 +++++++++++++++++++ science/2d-rewriter/pkg-plist | 7 +++++++ science/Makefile | 1 + 5 files changed, 56 insertions(+) create mode 100644 science/2d-rewriter/Makefile create mode 100644 science/2d-rewriter/distinfo create mode 100644 science/2d-rewriter/pkg-descr create mode 100644 science/2d-rewriter/pkg-plist (limited to 'science') 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 +# +# $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 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 -- cgit