Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2004 10:41:04 -0700 (PDT)
From:      bruno <bruno@mail.tinkerbox.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68953: new port, childsplay
Message-ID:  <200407121741.i6CHf4BO047866@duron.bschwand.net>
Resent-Message-ID: <200407121750.i6CHoQ3d047434@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68953
>Category:       ports
>Synopsis:       new port, childsplay
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 12 17:50:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     bruno
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
tinkerbox.org
>Environment:
System: FreeBSD duron.bschwand.net 4.8-STABLE FreeBSD 4.8-STABLE #2: Mon Jan 19 12:02:11 PST 2004 bruno@duron.bschwand.net:/usr/obj/usr/src/sys/MYKERNEL i386


>Description:
	new port of Childsplay, an educative program for children
>How-To-Repeat:
	N/A
>Fix:

# 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:
#
#	childsplay
#	childsplay/files
#	childsplay/files/patch-pyassetml.py
#	childsplay/files/patch-letters.py
#	childsplay/files/patch-Makefile
#	childsplay/files/patch-cleanup.sh
#	childsplay/files/patch-letter-trans.py
#	childsplay/files/patch-pyassetmlSDL.py
#	childsplay/files/patch-pyassetmlcreator.py
#	childsplay/Makefile
#	childsplay/pkg-plist
#	childsplay/pkg-descr
#	childsplay/distinfo
#
echo c - childsplay
mkdir -p childsplay > /dev/null 2>&1
echo c - childsplay/files
mkdir -p childsplay/files > /dev/null 2>&1
echo x - childsplay/files/patch-pyassetml.py
sed 's/^X//' >childsplay/files/patch-pyassetml.py << 'END-of-childsplay/files/patch-pyassetml.py'
X--- pyassetml.py.orig	Tue Jun 29 10:42:05 2004
X+++ pyassetml.py	Sun Jul 11 22:31:09 2004
X@@ -67,6 +67,9 @@
X """
X _DEBUG = 0
X version = "0.2.1"
X+ASSETMLROOT = '/usr/local/share/gnome/assetml'
X+
X+
X import os,pprint,sys,locale
X from xml.dom import minidom
X from types import ListType, DictType, StringTypes
X@@ -81,8 +84,6 @@
X 
X if os.name == 'nt':
X     ASSETMLROOT = os.path.join(get_rootdir(),'assetml')
X-else:
X-    ASSETMLROOT = '/usr/share/assetml'
X 
X 
X class PyassetmlError(Exception):
X@@ -158,6 +159,7 @@
X             
X     def get_locale(self):
X         loc = locale.setlocale(locale.LC_ALL,'')[:2]
X+	if loc == 'C': loc = 'en'
X         return loc
X         
X     def _get_nodes(self):
END-of-childsplay/files/patch-pyassetml.py
echo x - childsplay/files/patch-letters.py
sed 's/^X//' >childsplay/files/patch-letters.py << 'END-of-childsplay/files/patch-letters.py'
X--- lib/letters.py.orig	Tue Jun 29 10:42:05 2004
X+++ lib/letters.py	Mon Jul 12 10:15:43 2004
X@@ -80,7 +80,11 @@
X             loc = 'en'
X         self.trans_descr_pics = {}
X         for k,v in descr_pics.items():
X-            found = parser.find_names((('file',k),('description',loc)))[0]
X+            try:
X+                found = parser.find_names((('file',k),('description',loc)))[0]
X+            except TypeError:
X+                if DEBUG: print >> sys.stderr,"Error in names searching, assetml","descr_pics",descr_pics,"locale",loc
X+                found = None
X             if found:
X                 self.trans_descr_pics[found.upper()] = v
X             else:
END-of-childsplay/files/patch-letters.py
echo x - childsplay/files/patch-Makefile
sed 's/^X//' >childsplay/files/patch-Makefile << 'END-of-childsplay/files/patch-Makefile'
X--- Makefile.orig	Tue Jun 29 10:42:05 2004
X+++ Makefile	Sun Jul 11 23:11:10 2004
X@@ -4,12 +4,13 @@
X PREFIX = /usr/local
X 
X LOCALEDIR = $(PREFIX)/share/locale
X-ASSETMLDIR = /usr/share/assetml
X+ASSETMLDIR = $(PREFIX)/share/gnome/assetml
X PYTHON = /usr/bin/env python
X-DOCDIR = $(PREFIX)/doc/childsplay
X+DOCDIR = $(PREFIX)/share/doc/childsplay
X MANDIR = $(PREFIX)/man
X-DESTDIR = $(PREFIX)/games/childsplay
X+DESTDIR = $(PREFIX)/childsplay
X 
X+all:     childsplay
X default: childsplay
X 
X install:
X@@ -36,12 +37,12 @@
X 	@cp -rf lib $(DESTDIR)
X 
X 	@echo "Copy docs to $(MANDIR) and $(DOCDIR)"
X-	@cp -rf man/childsplay.6.gz $(MANDIR)
X+	@cp -rf man/childsplay.6.gz $(MANDIR)/man6
X 	@cp -rf doc/* $(DOCDIR)
X 
X 	@echo "Looking for old locale files, and removing them"
X 	@sh ./cleanup.sh
X-	
X+
X 	@echo "Copy locales to $(LOCALEDIR)"
X 	@cp -rf locale/* $(LOCALEDIR)
X 
END-of-childsplay/files/patch-Makefile
echo x - childsplay/files/patch-cleanup.sh
sed 's/^X//' >childsplay/files/patch-cleanup.sh << 'END-of-childsplay/files/patch-cleanup.sh'
X--- cleanup.sh.orig	Tue Jun 29 10:42:05 2004
X+++ cleanup.sh	Sun Jul 11 23:58:19 2004
X@@ -1,7 +1,11 @@
X #!/bin/sh
X+PREFIX=/usr/local
X 
X for old in childsplay.mo letters.mo numbers.mo memory.mo \
X 		     soundmemory.mo soundNpic.mo packid.mo; do
X     echo "Looking for $old"
X-    find /usr/share/locale/ -name $old -exec rm -v {} \;
X+    if [ -e $PREFIX/share/locale ] 
X+    then
X+        find $PREFIX/share/locale/ -name $old -exec rm -v {} \;
X+    fi
X done
END-of-childsplay/files/patch-cleanup.sh
echo x - childsplay/files/patch-letter-trans.py
sed 's/^X//' >childsplay/files/patch-letter-trans.py << 'END-of-childsplay/files/patch-letter-trans.py'
X--- letters-trans.py.orig	Tue Jun 29 10:42:05 2004
X+++ letters-trans.py	Wed Jul  7 11:28:25 2004
X@@ -60,7 +60,8 @@
X     sys.exit(0)
X         
X # get description names from memory assetml, these are the words used by letters.py
X-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml')
X+assetmlfile = os.path.join(cwd,'memory-136x136.assetml')
X+parser = pyassetml.AssetmlParser(assetmlfile)
X loc = parser.get_locale()# get current locale setting, only the first two chars !!
X wlist_org = parser.find_names((('file','.'),('description',"en")))
X wlist = parser.find_names((('file','.'),('description',loc)))
END-of-childsplay/files/patch-letter-trans.py
echo x - childsplay/files/patch-pyassetmlSDL.py
sed 's/^X//' >childsplay/files/patch-pyassetmlSDL.py << 'END-of-childsplay/files/patch-pyassetmlSDL.py'
X--- pyassetmlSDL.py.orig	Tue Jun 29 10:42:05 2004
X+++ pyassetmlSDL.py	Wed Jul  7 11:06:05 2004
X@@ -21,6 +21,7 @@
X """
X DEBUG = 0
X TRANSPARENT_IMAGE = 1
X+ASSETMLROOT = '/usr/local/share/gnome/assetml'
X 
X __version__ = "0.4"
X 
X@@ -120,8 +121,6 @@
X               'png':image,'jpg':image,'gif':image,'bmp':image}
X if os.name == 'nt':
X     ASSETMLROOT = os.path.join(get_rootdir(),'assetml')
X-else:
X-    ASSETMLROOT = '/usr/share/assetml'
X 
X class AssetmlSDL:
X     def __init__(self, assetmlpath=ASSETMLROOT):
END-of-childsplay/files/patch-pyassetmlSDL.py
echo x - childsplay/files/patch-pyassetmlcreator.py
sed 's/^X//' >childsplay/files/patch-pyassetmlcreator.py << 'END-of-childsplay/files/patch-pyassetmlcreator.py'
X--- pyassetmlcreator.py.orig	Tue Jun 29 10:42:05 2004
X+++ pyassetmlcreator.py	Wed Jul  7 11:04:54 2004
X@@ -25,6 +25,7 @@
X _DEBUG = 0
X _TALK = 0
X 
X+PREFIX = "/usr/local"
X 
X PO_HEADER = \
X """
X@@ -115,7 +116,7 @@
X 
X def set_locale():
X     ## i18n ##
X-    localedir = os.path.join('/','usr','share','locale')
X+    localedir = os.path.join(PREFIX,'share','locale')
X     stdloc = locale.setlocale(locale.LC_ALL,'')
X     l = stdloc.split("_")[0] 
X     if not gettext.find('assetml'):
END-of-childsplay/files/patch-pyassetmlcreator.py
echo x - childsplay/Makefile
sed 's/^X//' >childsplay/Makefile << 'END-of-childsplay/Makefile'
X# New ports collection makefile for:	pyassetml
X# Date created:				6 July 2004
X# Whom:					bruno
X
XPORTNAME=	childsplay
XPORTVERSION=	0.71
XPORTREVISION=	1
XCATEGORIES=	games
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	childsplay
X
XEXTRACT_SUFX=   .tgz
X
XMAINTAINER=	bruno@tinkerbox.org
XCOMMENT=	educative games for children
X
XBUILD_DEPENDS=	${LOCALBASE}/include/${PYTHON_VERSION}/pygame/pygame.h:${PORTSDIR}/devel/py-game:install
XLIB_DEPENDS=	assetml.0:${PORTSDIR}/devel/libassetml:install
X
XUSE_REINPLACE=	yes
XUSE_PYTHON=	yes
X
XMAN6=		childsplay.6
XMANCOMPRESSED=	yes
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s@PREFIX = /usr/local@PREFIX=${PREFIX}@g " ${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e "s@ASSETMLROOT = '/usr/local'@ASSETMLROOT= '${PREFIX}'@g " ${WRKSRC}/pyassetml.py
X	@${REINPLACE_CMD} -e "s@PREFIX = \"/usr/local\"@PREFIX= '${PREFIX}'@g" ${WRKSRC}/pyassetmlcreator.py
X	@${REINPLACE_CMD} -e "s@ASSETMLROOT= '/usr/local'@ASSETMLROOT= '${PREFIX}/share/gnome/assetml'@g" ${WRKSRC}/pyassetmlSDL.py
X	@${REINPLACE_CMD} -e "s@PREFIX=/usr/local@PREFIX=${PREFIX}@g " ${WRKSRC}/cleanup.sh
X
X
X.include <bsd.port.mk>
END-of-childsplay/Makefile
echo x - childsplay/pkg-plist
sed 's/^X//' >childsplay/pkg-plist << 'END-of-childsplay/pkg-plist'
Xbin/childsplay
Xchildsplay/CPConstants.py
Xchildsplay/utils.py
Xchildsplay/splash.py
Xchildsplay/pyassetmlcreator.py
Xchildsplay/pyassetmlSDL.py
Xchildsplay/pyassetml.py
Xchildsplay/letters-trans.py
Xchildsplay/install.py
Xchildsplay/childsplay.py
Xchildsplay/Timer.py
Xchildsplay/SpriteUtils.py
Xchildsplay/ConfParser.py
Xchildsplay/CPMenu.py
Xchildsplay/version.py
Xchildsplay/Data/icons/letters.icon.png
Xchildsplay/Data/icons/memory.icon.png
Xchildsplay/Data/bluebold.ttf
Xchildsplay/Data/bluehigh.ttf
Xchildsplay/Data/boom.wav
Xchildsplay/Data/bullpen3.ttf
Xchildsplay/Data/bummer.wav
Xchildsplay/Data/chpl-icon-48-flat.png
Xchildsplay/Data/chpl-icon-48.png
Xchildsplay/Data/chpl-icon-48.xpm
Xchildsplay/Data/cows.ogg
Xchildsplay/Data/cowsplash-load.png
Xchildsplay/Data/cowsplash.png
Xchildsplay/Data/pointer_mask.xbm
Xchildsplay/Data/score
Xchildsplay/Data/wahoo.wav
Xchildsplay/lib/ConfigData/childsplayrc
Xchildsplay/lib/MemoryData/cardback.png
Xchildsplay/lib/MemoryData/cardfront.png
Xchildsplay/lib/letters.py
Xchildsplay/lib/memory.py
Xchildsplay/lib/letters.pyc
Xchildsplay/lib/memory.pyc
Xchildsplay/CPConstants.pyc
Xchildsplay/CPMenu.pyc
Xchildsplay/ConfParser.pyc
Xchildsplay/SpriteUtils.pyc
Xchildsplay/Timer.pyc
Xchildsplay/childsplay.pyc
Xchildsplay/install.pyc
Xchildsplay/letters-trans.pyc
Xchildsplay/pyassetml.pyc
Xchildsplay/pyassetmlSDL.pyc
Xchildsplay/pyassetmlcreator.pyc
Xchildsplay/splash.pyc
Xchildsplay/utils.pyc
Xchildsplay/version.pyc
Xshare/doc/childsplay/po/fr/childsplay_0.71_fr.po
Xshare/doc/childsplay/po/da/childsplay_0.71_da.po
Xshare/doc/childsplay/po/de/childsplay_0.71_de.po
Xshare/doc/childsplay/po/es/childsplay_0.71_es.po
Xshare/doc/childsplay/po/wordlist/README.gz
Xshare/doc/childsplay/po/wordlist/words-en.gz
Xshare/doc/childsplay/po/wordlist/words-esp.gz
Xshare/doc/childsplay/po/wordlist/words-fr.gz
Xshare/doc/childsplay/po/wordlist/words-nl.gz
Xshare/doc/childsplay/po/wordlist/words-de.gz
Xshare/doc/childsplay/po/nl/childsplay_0.71_nl.po
Xshare/doc/childsplay/po/tr/childsplay_0.71_tr.po
Xshare/doc/childsplay/po/childsplay_0.71.pot
Xshare/doc/childsplay/copyright
Xshare/doc/childsplay/changelog.text
Xshare/doc/childsplay/README.games-module
Xshare/doc/childsplay/README.develop
Xshare/doc/childsplay/GPL-2
Xshare/doc/childsplay/README.rc-files
Xshare/locale/nl/LC_MESSAGES/childsplay.mo
Xshare/locale/fr/LC_MESSAGES/childsplay.mo
Xshare/locale/es/LC_MESSAGES/childsplay.mo
Xshare/locale/de/LC_MESSAGES/childsplay.mo
Xshare/locale/da/LC_MESSAGES/childsplay.mo
Xshare/gnome/assetml/childsplay/childsplay-images/po/Translation.raw
Xshare/gnome/assetml/childsplay/childsplay-images/MORE_but.png
Xshare/gnome/assetml/childsplay/childsplay-images/OK_but.png
Xshare/gnome/assetml/childsplay/childsplay-images/arrow.png
Xshare/gnome/assetml/childsplay/childsplay-images/balloonsl.png
Xshare/gnome/assetml/childsplay/childsplay-images/balloonsr.png
Xshare/gnome/assetml/childsplay/childsplay-images/blue.jpg
Xshare/gnome/assetml/childsplay/childsplay-images/bluebold.ttf
Xshare/gnome/assetml/childsplay/childsplay-images/bluehigh.ttf
Xshare/gnome/assetml/childsplay/childsplay-images/bullpen3.ttf
Xshare/gnome/assetml/childsplay/childsplay-images/childsplay-images.assetml
Xshare/gnome/assetml/childsplay/childsplay-images/chpl-icon-48-flat.png
Xshare/gnome/assetml/childsplay/childsplay-images/chpl-icon-48.png
Xshare/gnome/assetml/childsplay/childsplay-images/chpl-icon-48.xpm
Xshare/gnome/assetml/childsplay/childsplay-images/cowsplash-load.png
Xshare/gnome/assetml/childsplay/childsplay-images/cowsplash.png
Xshare/gnome/assetml/childsplay/childsplay-images/firework1.png
Xshare/gnome/assetml/childsplay/childsplay-images/firework2.png
Xshare/gnome/assetml/childsplay/childsplay-images/hscore.png
Xshare/gnome/assetml/childsplay/childsplay-images/land.png
Xshare/gnome/assetml/childsplay/childsplay-images/pointer.png
Xshare/gnome/assetml/childsplay/childsplay-images/question1.png
Xshare/gnome/assetml/childsplay/childsplay-images/stop.png
Xshare/gnome/assetml/childsplay/childsplay-images/tux.png
Xshare/gnome/assetml/childsplay/childsplay-sounds/po/Translation.raw
Xshare/gnome/assetml/childsplay/childsplay-sounds/po/nl.po
Xshare/gnome/assetml/childsplay/childsplay-sounds/Winner2.ogg
Xshare/gnome/assetml/childsplay/childsplay-sounds/boom.wav
Xshare/gnome/assetml/childsplay/childsplay-sounds/bummer.wav
Xshare/gnome/assetml/childsplay/childsplay-sounds/childsplay-sounds.assetml
Xshare/gnome/assetml/childsplay/childsplay-sounds/cows.ogg
Xshare/gnome/assetml/childsplay/childsplay-sounds/dealcard1.wav
Xshare/gnome/assetml/childsplay/childsplay-sounds/level_clear.wav
Xshare/gnome/assetml/childsplay/childsplay-sounds/music1.ogg
Xshare/gnome/assetml/childsplay/childsplay-sounds/rocket.wav
Xshare/gnome/assetml/childsplay/childsplay-sounds/wahoo.wav
Xshare/gnome/assetml/childsplay/memory-136x136/po/memory-136x136.pot
Xshare/gnome/assetml/childsplay/memory-136x136/po/nl.po
Xshare/gnome/assetml/childsplay/memory-136x136/bear.png
Xshare/gnome/assetml/childsplay/memory-136x136/boat.png
Xshare/gnome/assetml/childsplay/memory-136x136/bread.png
Xshare/gnome/assetml/childsplay/memory-136x136/car.png
Xshare/gnome/assetml/childsplay/memory-136x136/dog.png
Xshare/gnome/assetml/childsplay/memory-136x136/fish.png
Xshare/gnome/assetml/childsplay/memory-136x136/grapes.png
Xshare/gnome/assetml/childsplay/memory-136x136/lion.png
Xshare/gnome/assetml/childsplay/memory-136x136/memory-136x136.assetml
Xshare/gnome/assetml/childsplay/memory-136x136/monkey.png
Xshare/gnome/assetml/childsplay/memory-136x136/plane.png
Xshare/gnome/assetml/childsplay/memory-136x136/tree.png
Xshare/gnome/assetml/childsplay/memory-136x136/apple.png
X@dirrm childsplay/Data/icons
X@dirrm childsplay/Data
X@dirrm childsplay/lib/ConfigData
X@dirrm childsplay/lib/MemoryData
X@dirrm childsplay/lib
X@dirrm childsplay
X@dirrm share/doc/childsplay/po/fr
X@dirrm share/doc/childsplay/po/da
X@dirrm share/doc/childsplay/po/de
X@dirrm share/doc/childsplay/po/es
X@dirrm share/doc/childsplay/po/wordlist
X@dirrm share/doc/childsplay/po/nl
X@dirrm share/doc/childsplay/po/tr
X@dirrm share/doc/childsplay/po
X@dirrm share/doc/childsplay
X@dirrm share/gnome/assetml/childsplay/childsplay-images/po
X@dirrm share/gnome/assetml/childsplay/childsplay-images
X@dirrm share/gnome/assetml/childsplay/childsplay-sounds/po
X@dirrm share/gnome/assetml/childsplay/childsplay-sounds
X@dirrm share/gnome/assetml/childsplay/memory-136x136/po
X@dirrm share/gnome/assetml/childsplay/memory-136x136
X@dirrm share/gnome/assetml/childsplay
END-of-childsplay/pkg-plist
echo x - childsplay/pkg-descr
sed 's/^X//' >childsplay/pkg-descr << 'END-of-childsplay/pkg-descr'
X Childsplay is a 'suite' of educational games for young children, like gcompris,
Xbut without the overkill of c/c++ and the gnome environ.:-)
XAlso the use of the SDL libraries makes smooth animation and the playing of 
Xsound very easy.
XChildsplay uses a plugin system for the games, so you might want to check 
Xthe childsplay-plugins page.
X(There are two built-in games; Memory and a typing game)
X
XChildsplay and the games are GNU-GPL licensed and are tested on GNU/Linux 
Xand the Windows platforms. (and now, FreeBSD)
X
XWWW: http://childsplay.sourceforge.net
END-of-childsplay/pkg-descr
echo x - childsplay/distinfo
sed 's/^X//' >childsplay/distinfo << 'END-of-childsplay/distinfo'
XMD5 (childsplay-0.71.tgz) = 15bc9eb10abc78ba7b3a1cd71b02e883
XSIZE (childsplay-0.71.tgz) = 1144737
END-of-childsplay/distinfo
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407121741.i6CHf4BO047866>