Bug 167974 - [NEW PORT] games/mopesnake: A classic snake game in which you attempt to eat all the pain
Summary: [NEW PORT] games/mopesnake: A classic snake game in which you attempt to eat ...
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: Carlo Strub
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-16 18:50 UTC by nemysis
Modified: 2012-07-18 13:53 UTC (History)
0 users

See Also:


Attachments
.shar (2.96 KB, text/plain)
2012-05-16 18:50 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-05-16 18:50:01 UTC
Master Of Pain (Eating) - Snake
Is a classic snake game in which you attempt to eat all the pain in the world,
bravely accepting the inevitable consequences for your waistline.
mop(e)snake features an innovative single-finger control method,
as well as the normal four-directional control system familiar to fans of snake.
The game doesn't feature any of the extra features, bonuses, wrap-around levels
and other featuritis that ruins most versions of snake.

WWW: http://mopesnake.sourceforge.net/

Generated manually, tested with RedPorts and port test, sent with FreeBSD Port Tools 0.99_6 (mode: new)
Comment 1 Carlo Strub freebsd_committer freebsd_triage 2012-05-19 09:12:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cs

I'll take it.
Comment 2 Carlo Strub freebsd_committer freebsd_triage 2012-05-19 16:00:25 UTC
State Changed
From-To: open->feedback

I get the following error on tinderbox: 

=== Checking filesystem state after all packages deleted 
================================================================ 
list of extra files and directories in / (not present on clean system but present after everything was deinstalled) 
79279        3 drwxr-xr-x    6 root             wheel                   8 May 19 12:37 usr/local/share/mopesnake 
79283        3 drwxr-xr-x    2 root             wheel                   3 Dec 20  2006 usr/local/share/mopesnake/music 
78404      517 -r--r--r--    2 root             wheel              152924 Dec 20  2006 usr/local/share/mopesnake/music/the_final_rewind_loop.ogg 
79282        3 drwxr-xr-x    2 root             wheel                   4 May 19 12:36 usr/local/share/mopesnake/mopelib 
78415        1 -r--r--r--    2 root             wheel                   0 May 19 12:36 usr/local/share/mopesnake/mopelib/__init__.py 
78416       26 -r--r--r--    2 root             wheel               12592 May 19 12:36 usr/local/share/mopesnake/mopelib/mopelib.py 
79286        2 -r--r--r--    1 root             wheel                   5 May 19 12:37 usr/local/share/mopesnake/version 
79280       84 -r-xr-xr-x    1 root             wheel               42091 May 19 12:37 usr/local/share/mopesnake/mopesnake.py 
79281        3 drwxr-xr-x    2 root             wheel                   6 Dec 20  2006 usr/local/share/mopesnake/images 
78390      773 -r--r--r--    2 root             wheel              297831 Dec 20  2006 usr/local/share/mopesnake/images/hiscores.png 
78389       64 -r--r--r--    2 root             wheel               31755 Dec 20  2006 usr/local/share/mopesnake/images/instructions.png 
78392      127 -r--r--r--    2 root             wheel               64387 Dec 20  2006 usr/local/share/mopesnake/images/tryad.png 
78391       37 -r--r--r--    2 root             wheel               18040 Dec 20  2006 usr/local/share/mopesnake/images/title.png 
79284        3 drwxr-xr-x    2 root             wheel                  11 Dec 20  2006 usr/local/share/mopesnake/sounds 
78402      166 -r--r--r--    2 root             wheel               84228 Dec 20  2006 usr/local/share/mopesnake/sounds/eee1.wav 
78394      145 -r--r--r--    2 root             wheel               73378 Dec 20  2006 usr/local/share/mopesnake/sounds/ouch1.wav 
78397      517 -r--r--r--    2 root             wheel              150274 Dec 20  2006 usr/local/share/mopesnake/sounds/ooh1.wav 
78401      151 -r--r--r--    2 root             wheel               76370 Dec 20  2006 usr/local/share/mopesnake/sounds/aei1.wav 
78398      110 -r--r--r--    2 root             wheel               55418 Dec 20  2006 usr/local/share/mopesnake/sounds/ow1.wav 
78400      517 -r--r--r--    2 root             wheel              146024 Dec 20  2006 usr/local/share/mopesnake/sounds/aah2.wav 
78399      517 -r--r--r--    2 root             wheel              164106 Dec 20  2006 usr/local/share/mopesnake/sounds/mmm3.wav 
78395      150 -r--r--r--    2 root             wheel               76252 Dec 20  2006 usr/local/share/mopesnake/sounds/aaa1.wav 
78396      164 -r--r--r--    2 root             wheel               83106 Dec 20  2006 usr/local/share/mopesnake/sounds/oow1.wav 

Please fix and send new patch to this problem report.
Comment 3 nemysis 2012-07-18 10:22:28 UTC
On Sat, 19 May 2012 15:01:49 GMT
cs@FreeBSD.org wrote:

> Synopsis: [NEW PORT] games/mopesnake: A classic snake game in which you attempt to eat all the pain

Tested with FreeBSD Port Tools

/usr/local/ports/local/pr/games/mopesnake> " port test
===> Validating port with portlint
looks fine.
===> flags: PREFIX=/var/tmp/ports/mopesnake-0.5 NO_DEPENDS=yes PKG_DBDIR=/tmp/pkg_db.RTQfn8Zp --
===> Cleaning workspace before port test
===>  Cleaning for mopesnake-0.5
===>  License GPLv2 accepted by the user
===>  Extracting for mopesnake-0.5
=> SHA256 Checksum OK for mopesnake-pc-0.5.zip.
===>  Patching for mopesnake-0.5
===>  Configuring for mopesnake-0.5
===>  Installing for mopesnake-0.5
===>   Generating temporary packing list
===>  Checking if games/mopesnake already installed
install  -o root -g wheel -m 555 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake.sh /var/tmp/ports/mopesnake-0.5/bin/mopesnake
/bin/mkdir -p /var/tmp/ports/mopesnake-0.5/share/mopesnake
install  -o root -g wheel -m 555 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake-pc-0.5/mopesnake.py /var/tmp/ports/mopesnake-0.5/share/mopesnake
install  -o root -g wheel -m 444 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake-pc-0.5/doc/screenshot1.png /var/tmp/ports/mopesnake-0.5/share/pixmaps/mopesnake.png
install  -o root -g wheel -m 444 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake-pc-0.5/version /var/tmp/ports/mopesnake-0.5/share/mopesnake
/bin/mkdir -p /var/tmp/ports/mopesnake-0.5/share/doc/mopesnake
install  -o root -g wheel -m 444 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake-pc-0.5/doc/TODO.txt /var/tmp/ports/mopesnake-0.5/share/doc/mopesnake
install  -o root -g wheel -m 444 /var/tmp/ports/usr/local/ports/local/pr/games/mopesnake/work/mopesnake-pc-0.5/doc/index.html /var/tmp/ports/mopesnake-0.5/share/doc/mopesnake
===>   Registering installation for mopesnake-0.5
===>  Building package for mopesnake-0.5
===> Checking pkg_info
mopesnake-0.5       A classic snake game in which you attempt to eat all the pa
===> Checking shared library dependencies
===>  Deinstalling for games/mopesnake
===>   Deinstalling mopesnake-0.5
===> Extra files and directories check
===> Cleaning up after port test
===>  Cleaning for mopesnake-0.5
===>  Removing existing /var/tmp/ports/mopesnake-0.5 dir
===> Done.


I think all is working here and on RedPorts too is all good, not need to change Ports or patching it. Sorry please look again in Yours TinderBox.

https://redports.org/~nemysis/20120718091802-27471-35222/mopesnake-0.5.log

Regards,
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-07-18 13:39:30 UTC
Author: cs
Date: Wed Jul 18 12:39:16 2012
New Revision: 301090
URL: http://svn.freebsd.org/changeset/ports/301090

Log:
  Master Of Pain (Eating) - Snake
  Is a classic snake game in which you attempt to eat all the pain in the world,
  bravely accepting the inevitable consequences for your waistline.  mop(e)snake
  features an innovative single-finger control method, as well as the normal
  four-directional control system familiar to fans of snake.  The game doesn't
  feature any of the extra features, bonuses, wrap-around levels and other
  featuritis that ruins most versions of snake.
  
  WWW: http://mopesnake.sourceforge.net/
  
  PR:		ports/167974
  Submitted by:	nemysis@gmx.ch

Added:
  head/games/mopesnake/
  head/games/mopesnake/Makefile   (contents, props changed)
  head/games/mopesnake/distinfo   (contents, props changed)
  head/games/mopesnake/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Wed Jul 18 12:38:45 2012	(r301089)
+++ head/games/Makefile	Wed Jul 18 12:39:16 2012	(r301090)
@@ -558,6 +558,7 @@
     SUBDIR += monsterz
     SUBDIR += moon-buggy
     SUBDIR += moonlander
+    SUBDIR += mopesnake
     SUBDIR += moria
     SUBDIR += motogt
     SUBDIR += mt_dolphin_ia

Added: head/games/mopesnake/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mopesnake/Makefile	Wed Jul 18 12:39:16 2012	(r301090)
@@ -0,0 +1,62 @@
+# New Ports collection makefile for:	mopesnake
+# Date created:        2012-05-16
+# Whom:                nemysis@gmx.ch
+#
+# $FreeBSD$
+#
+
+PORTNAME=	mopesnake
+PORTVERSION=	0.5
+CATEGORIES=	games
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+DISTNAME=	${PORTNAME}-pc-${DISTVERSION}
+
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	A classic snake game in which you attempt to eat all the pain
+
+LICENSE=	GPLv2
+
+RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
+
+USE_ZIP=	yes
+USE_PYTHON=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/mopesnake \
+		share/pixmaps/${PORTNAME}.png
+
+PORTDATA=	*
+PORTDOCS=	TODO.txt index.html
+
+post-patch:
+# Fix path to python interpreter
+	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
+		${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
+	@(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak)
+
+do-install:
+# Scripts
+	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
+		./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+
+# Executable
+	${MKDIR} ${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
+
+# Data
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
+
+# Pixmaps and version
+	${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+	${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
+
+# Documentation
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+.  for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
+.  endfor
+.endif
+
+.include <bsd.port.mk>

Added: head/games/mopesnake/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mopesnake/distinfo	Wed Jul 18 12:39:16 2012	(r301090)
@@ -0,0 +1,2 @@
+SHA256 (mopesnake-pc-0.5.zip) = 1bc270e7dc63ad40bb2280ac5d3dec8527b2d902b272f2b42bfd35d265d339d4
+SIZE (mopesnake-pc-0.5.zip) = 1426226

Added: head/games/mopesnake/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mopesnake/pkg-descr	Wed Jul 18 12:39:16 2012	(r301090)
@@ -0,0 +1,9 @@
+Master Of Pain (Eating) - Snake
+Is a classic snake game in which you attempt to eat all the pain in the world,
+bravely accepting the inevitable consequences for your waistline.  mop(e)snake
+features an innovative single-finger control method, as well as the normal
+four-directional control system familiar to fans of snake.  The game doesn't
+feature any of the extra features, bonuses, wrap-around levels and other
+featuritis that ruins most versions of snake.
+
+WWW: http://mopesnake.sourceforge.net/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Carlo Strub freebsd_committer freebsd_triage 2012-07-18 13:53:23 UTC
State Changed
From-To: feedback->closed

Committed. Thank you very much.