From f0ae50667dce45a3c0b7e034708dd5e4faaf6c7a Mon Sep 17 00:00:00 2001 From: Glenn Becker Date: Tue, 1 Jan 2013 14:11:38 -0500 Subject: games/golly: Added (Game of Life simulator) Signed-off-by: dsomero --- games/golly/README | 29 +++++++++++ games/golly/doinst.sh | 9 ++++ games/golly/golly.SlackBuild | 114 +++++++++++++++++++++++++++++++++++++++++++ games/golly/golly.desktop | 8 +++ games/golly/golly.info | 10 ++++ games/golly/slack-desc | 19 ++++++++ 6 files changed, 189 insertions(+) create mode 100644 games/golly/README create mode 100644 games/golly/doinst.sh create mode 100644 games/golly/golly.SlackBuild create mode 100644 games/golly/golly.desktop create mode 100644 games/golly/golly.info create mode 100644 games/golly/slack-desc diff --git a/games/golly/README b/games/golly/README new file mode 100644 index 0000000000..7b3c2d8fc7 --- /dev/null +++ b/games/golly/README @@ -0,0 +1,29 @@ +Golly is an open source, cross-platform application for +exploring Conway's Game of Life and other cellular automata. + +Golly's key features: + +- Supports bounded and unbounded universes, with cells of + up to 256 states. +- Supports multiple algorithms, including Bill Gosper's + super fast hashlife algorithm. +- Many different types of CA are included: John von Neumann's + 29-state CA, Wolfram's 1D rules, WireWorld, Generations, + Langton's Loops, Paterson's Worms, etc. +- The RuleTable and RuleTree algorithms let you plug in new + rules. +- Responsive even while generating or garbage collecting. +- Reads RLE, macrocell, Life 1.05/1.06, dblife, and MCell + files. +- Can also read common graphic formats: BMP, PNG, GIF, TIFF. +- Can extract patterns, rules and scripts from zip files. +- Can download patterns, rules and scripts from online archives. +- Includes a state-of-the-art pattern collection. +- Can paste in patterns from the clipboard. +- Unlimited undo/redo. +- Configurable keyboard shortcuts. +- Auto fit option keeps patterns sized to the window. +- Full screen option (no menu/status/tool/scroll bars). +- Supports multiple layers, including cloned layers. +- HTML-based help with an integrated Life Lexicon. +- Scriptable via Perl or Python. diff --git a/games/golly/doinst.sh b/games/golly/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/games/golly/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/golly/golly.SlackBuild b/games/golly/golly.SlackBuild new file mode 100644 index 0000000000..bab8f8dade --- /dev/null +++ b/games/golly/golly.SlackBuild @@ -0,0 +1,114 @@ +#!/bin/sh + +# Slackware build script for golly + +# Copyright 2012, Glenn Becker, Arlington MA USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=golly +VERSION=${VERSION:-2.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-${VERSION}-src.tar.gz +mv $PRGNAM-$VERSION-src $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +for i in 16 32 48; do + convert appicon${i}.ico -resize ${i}x${i}! $PRGNAM-${i}.png + mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps/ + install -D -m 0644 $PRGNAM-${i}.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png +done + +convert appicon.xpm $PRGNAM.png +install -D -m 0644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir $PKG/usr/share/applications +cat $CWD/golly.desktop > $PKG/usr/share/applications/golly.desktop + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/golly/golly.desktop b/games/golly/golly.desktop new file mode 100644 index 0000000000..696cbac3d9 --- /dev/null +++ b/games/golly/golly.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=golly +Type=Application +Comment=cellular automata simulator +Terminal=false +Exec=golly +Icon=golly +Categories=Game; diff --git a/games/golly/golly.info b/games/golly/golly.info new file mode 100644 index 0000000000..0bd2477be5 --- /dev/null +++ b/games/golly/golly.info @@ -0,0 +1,10 @@ +PRGNAM="golly" +VERSION="2.4" +HOMEPAGE="http://golly.sourceforge.net/" +DOWNLOAD="http://sourceforge.net/projects/golly/files/golly/golly-2.4/golly-2.4-src.tar.gz" +MD5SUM="5b928fab2dfd299b1e159757027943ef" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="wxPython" +MAINTAINER="Glenn Becker" +EMAIL="burningc@sdf.org" diff --git a/games/golly/slack-desc b/games/golly/slack-desc new file mode 100644 index 0000000000..73cf8b5d82 --- /dev/null +++ b/games/golly/slack-desc @@ -0,0 +1,19 @@ + # HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +golly: golly (Game of Life simulator) +golly: +golly: golly is an open source, cross-platform application for exploring +golly: Conway's Game of Life and other cellular automata. Supports bounded +golly: and unbounded universes, with cells of up to 256 states; supports +golly: multiple algorithms, including Bill Gosper's super fast hashlife +golly: algorithm. +golly: +golly: http://golly.sourceforge.net +golly: +golly: -- cgit v1.2.3