Bug 61387 - NEW PORT: games/thudboard
Summary: NEW PORT: games/thudboard
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 17:10 UTC by Jan Stocker
Modified: 2004-01-18 01:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stocker 2004-01-15 17:10:14 UTC
New port for playing Thud <www.thudgame.com> on a virtual board.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	games/thudboard
#	games/thudboard/Makefile
#	games/thudboard/distinfo
#	games/thudboard/pkg-descr
#	games/thudboard/pkg-plist
#	games/thudboard/files
#	games/thudboard/files/thudboard
#	games/thudboard/files/patch-battles.py
#
echo c - games/thudboard
mkdir -p games/thudboard > /dev/null 2>&1
echo x - games/thudboard/Makefile
sed 's/^X//' >games/thudboard/Makefile << 'END-of-games/thudboard/Makefile'
X# New ports collection makefile for:    ThudBoard
X# Date created:         04 Januar 2004
X# Whom:                 Jan Stocker <Jan.Stocker@t-online.de>
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	thudboard
XPORTVERSION=	0.9.6
XCATEGORIES=	games
XMASTER_SITES=	http://www.million.nl/file/
X
XMAINTAINER=	Jan.Stocker@t-online.de
XCOMMENT=	The Discworld Boardgame Board
X
XRUN_DEPENDS=	${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
X
XUSE_PYTHON=	yes
X
XWRKSRC=		${WRKDIR}/thud
X
Xdo-build:
X	${FIND} ${WRKSRC} -name "*.pyc" | ${XARGS} ${RM}
X	${FIND} ${WRKSRC} \( -type f -or -type l \) | ${XARGS} ${CHMOD} 644
X	${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
X	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} 2>/dev/null
X
Xdo-install:
X	${RM} ${WRKSRC}/battle.py.orig
X	${MKDIR} ${PREFIX}/share/thudboard
X	${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${PREFIX}/share/thudboard --unlink -xf -
X	${SED} -e "s#%%PREFIX%%#${PREFIX}# ; s#%%PYTHON_CMD%%#${PYTHON_CMD}#" \
X		${FILESDIR}/thudboard > ${WRKDIR}/thudboard.tmp
X	${INSTALL_SCRIPT} ${WRKDIR}/thudboard.tmp ${PREFIX}/bin/thudboard
X
X.include <bsd.port.mk>
END-of-games/thudboard/Makefile
echo x - games/thudboard/distinfo
sed 's/^X//' >games/thudboard/distinfo << 'END-of-games/thudboard/distinfo'
XMD5 (thudboard-0.9.6.tar.gz) = ff94f07769147d7c3dd6c84c7bf22eb6
END-of-games/thudboard/distinfo
echo x - games/thudboard/pkg-descr
sed 's/^X//' >games/thudboard/pkg-descr << 'END-of-games/thudboard/pkg-descr'
XThudBoard - The Discworld Boardgame Board
X
XThudBoard is a computer application that can be used to play Thud battles
Xwithout using the actual board. If you don't have a clue what this Thud thing
Xis, take a look at the official Thud site at http://www.thudgame.com. 
X
XMultiple battles can be stored, so you can play many games simultaneously
Xwithout the onerous task of remembering where each individual piece was in
Xthis battle you have been playing with your cousin in XXXX over the last
Xfew years. 
X
XWWW: http://www.million.nl/thudboard/
END-of-games/thudboard/pkg-descr
echo x - games/thudboard/pkg-plist
sed 's/^X//' >games/thudboard/pkg-plist << 'END-of-games/thudboard/pkg-plist'
Xbin/thudboard
Xshare/thudboard/battle.py
Xshare/thudboard/battles/annotated.thud
Xshare/thudboard/docs/about.html
Xshare/thudboard/docs/download.html
Xshare/thudboard/docs/howto.html
Xshare/thudboard/docs/img/battleline.gif
Xshare/thudboard/docs/img/bcktile.gif
Xshare/thudboard/docs/img/copyicon.gif
Xshare/thudboard/docs/img/dwarf.gif
Xshare/thudboard/docs/img/filemenu.gif
Xshare/thudboard/docs/img/helpmenu.gif
Xshare/thudboard/docs/img/moveinprogress.gif
Xshare/thudboard/docs/img/movepiece.gif
Xshare/thudboard/docs/img/optionsmenu.gif
Xshare/thudboard/docs/img/pasteicon.gif
Xshare/thudboard/docs/img/quicksavemenu.gif
Xshare/thudboard/docs/img/quit.gif
Xshare/thudboard/docs/img/selectname.gif
Xshare/thudboard/docs/img/singleline.gif
Xshare/thudboard/docs/img/stone.gif
Xshare/thudboard/docs/img/thudpreview.gif
Xshare/thudboard/docs/img/thudscreen.jpg
Xshare/thudboard/docs/img/thudscroll.gif
Xshare/thudboard/docs/img/troll.gif
Xshare/thudboard/docs/index.html
Xshare/thudboard/docs/thudboard.css
Xshare/thudboard/docs/files/bug.thud
Xshare/thudboard/docs/files/ThudBoardBug.jpg
Xshare/thudboard/images.py
Xshare/thudboard/img/banner.gif
Xshare/thudboard/img/bcktile.gif
Xshare/thudboard/img/board-grid.gif
Xshare/thudboard/img/board.gif
Xshare/thudboard/img/check.gif
Xshare/thudboard/img/copy.gif
Xshare/thudboard/img/dwarf.gif
Xshare/thudboard/img/list.gif
Xshare/thudboard/img/lock.gif
Xshare/thudboard/img/noclip.gif
Xshare/thudboard/img/nopaste.gif
Xshare/thudboard/img/paste.gif
Xshare/thudboard/img/score.gif
Xshare/thudboard/img/stone.gif
Xshare/thudboard/img/submenubottom.gif
Xshare/thudboard/img/submenuitem.gif
Xshare/thudboard/img/submenutop.gif
Xshare/thudboard/img/thudtitle.gif
Xshare/thudboard/img/troll.gif
Xshare/thudboard/thud.ico
Xshare/thudboard/thud.py
Xshare/thudboard/battle.pyc
Xshare/thudboard/images.pyc
Xshare/thudboard/thud.pyc
X@dirrm share/thudboard/battles
X@dirrm share/thudboard/docs/img
X@dirrm share/thudboard/docs/files
X@dirrm share/thudboard/docs
X@dirrm share/thudboard/img
X@dirrm share/thudboard
END-of-games/thudboard/pkg-plist
echo c - games/thudboard/files
mkdir -p games/thudboard/files > /dev/null 2>&1
echo x - games/thudboard/files/thudboard
sed 's/^X//' >games/thudboard/files/thudboard << 'END-of-games/thudboard/files/thudboard'
X#!/bin/sh
Xif [ ! -e ~/.thudboard ]
Xthen
X  mkdir ~/.thudboard
Xfi
Xif [ ! -e ~/.thudboard/battles ]
Xthen
X  mkdir ~/.thudboard/battles
Xfi
X
Xcd %%PREFIX%%/share/thudboard && %%PYTHON_CMD%% thud.pyc $*
END-of-games/thudboard/files/thudboard
echo x - games/thudboard/files/patch-battles.py
sed 's/^X//' >games/thudboard/files/patch-battles.py << 'END-of-games/thudboard/files/patch-battles.py'
X--- battle.py.orig	Tue Jan 13 17:49:47 2004
X+++ battle.py	Tue Jan 13 17:50:54 2004
X@@ -411,9 +411,9 @@
X         filename = self.filename
X         if not filename: 
X             filename = self.name
X-            filename = os.sep.join([os.getcwd(), "battles", filename+".thud"])
X+            filename = os.sep.join(["~/.thudboard/", "battles", filename+".thud"])
X         if not self.name or filename=='<anonymous battle>': 
X-            filename = os.sep.join([os.getcwd(), "battles", ""])
X+            filename = os.sep.join(["~/.thudboard/", "battles", ""])
X         return filename
X 
X #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
END-of-games/thudboard/files/patch-battles.py
exit
Comment 1 Clement Laforet freebsd_committer freebsd_triage 2004-01-16 19:07:47 UTC
Class Changed
From-To: maintainer-update->change-request

Fix class.
Comment 2 Clement Laforet freebsd_committer freebsd_triage 2004-01-18 01:38:25 UTC
State Changed
From-To: open->closed

New port added, thanks ! 
I made some change to your port. Feel free to contact me 
if you want more details.