Bug 170704 - [NEW PORT] games/patapizza-tetris: An unofficial clone of the original Tetris game
Summary: [NEW PORT] games/patapizza-tetris: An unofficial clone of the original Tetris...
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: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 14:20 UTC by nemysis
Modified: 2012-09-22 17:40 UTC (History)
0 users

See Also:


Attachments
.shar (4.06 KB, text/plain)
2012-08-17 14:20 UTC, nemysis
no flags Details
patapizza-tetris.shar (3.98 KB, application/x-shar)
2012-08-20 20:31 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-08-17 14:20:08 UTC
This game is an unofficial clone of the original Tetris game
and is not endorsed by the registered trademark owners The Tetris Company, Inc.

WWW: https://github.com/patapizza/tetris

Generated and tested manually, tested with port test and with RedPorts (all RELEASES), sent with FreeBSD Port Tools 0.99_6 (mode: new)
Comment 1 Boris Samorodov freebsd_committer freebsd_triage 2012-09-21 14:55:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-09-22 17:23:04 UTC
Author: bsam
Date: Sat Sep 22 16:22:48 2012
New Revision: 304694
URL: http://svn.freebsd.org/changeset/ports/304694

Log:
  Add patapizza-tetris 1.0, unofficial clone of the original Tetris game.
  
  PR:		ports/170704
  Submitted by:	nemysis@gmx.ch

Added:
  head/games/patapizza-tetris/
  head/games/patapizza-tetris/Makefile   (contents, props changed)
  head/games/patapizza-tetris/distinfo   (contents, props changed)
  head/games/patapizza-tetris/files/
  head/games/patapizza-tetris/files/patapizza-tetris.sh.in   (contents, props changed)
  head/games/patapizza-tetris/files/patch-Makefile   (contents, props changed)
  head/games/patapizza-tetris/files/patch-tetris.c   (contents, props changed)
  head/games/patapizza-tetris/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sat Sep 22 16:09:00 2012	(r304693)
+++ head/games/Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -667,6 +667,7 @@
     SUBDIR += paintown
     SUBDIR += palomino
     SUBDIR += passage
+    SUBDIR += patapizza-tetris
     SUBDIR += pathological
     SUBDIR += pcgen
     SUBDIR += pear-Games_Chess

Added: head/games/patapizza-tetris/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,64 @@
+# Created by: nemysis@gmx.ch
+# $FreeBSD$
+
+PORTNAME=	patapizza-tetris
+PORTVERSION=	1.0
+CATEGORIES=	games
+MASTER_SITES=	https://github.com/patapizza/tetris/downloads/
+DISTNAME=	${PORTNAME:S/patapizza-//}-${DISTVERSION}
+
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Unofficial clone of the original Tetris game
+
+LICENSE=	GPLv3
+
+OPTIONS_DEFINE=	DATA
+OPTIONS_DEFAULT=DATA
+
+FETCH_ARGS?=	-Fpr
+USE_GMAKE=	yes
+USE_SDL=	sdl image gfx ttf
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
+
+PORTDATA=	*
+PORTDOCS=	README.md
+
+SUB_FILES=	${PORTNAME}.sh
+
+post-patch:
+	${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/Makefile
+
+.include <bsd.port.options.mk>
+
+do-build:
+	cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
+		-DDATA_PREFIX=\"${DATADIR}/\" \
+		-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm tetris.c
+
+do-install:
+# Scripts
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+
+# Executable
+	${MKDIR} ${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
+
+# Data
+.if ${PORT_OPTIONS:MDATA}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
+.endif
+
+# Pixmaps
+	${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+.  for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.  endfor
+.endif
+
+.include <bsd.port.mk>

Added: head/games/patapizza-tetris/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/distinfo	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,2 @@
+SHA256 (tetris-1.0.tar.gz) = 06945705ca0b5242f4c3e7c86c1e6111e452a47a11919a549e0fb19bbb78210e
+SIZE (tetris-1.0.tar.gz) = 47115

Added: head/games/patapizza-tetris/files/patapizza-tetris.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patapizza-tetris.sh.in	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "patapizza Tetris: Starting up..."
+cd "%%DATADIR%%"
+./patapizza-tetris

Added: head/games/patapizza-tetris/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patch-Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2012-04-09 13:32:21.000000000 +0200
++++ Makefile	2012-08-17 00:24:43.000000000 +0200
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+-CC = gcc
+-prefix = /usr
++CC = g++
++prefix = %%PREFIX%%
+ includedir = $(prefix)/include
+ tetris: tetris.c
+ 	$(CC) -Wall -I$(includedir)/SDL $< -o $@ -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm

Added: head/games/patapizza-tetris/files/patch-tetris.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patch-tetris.c	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,10 @@
+--- tetris.c.orig	2012-04-09 13:32:21.000000000 +0200
++++ tetris.c	2012-08-17 00:10:28.000000000 +0200
+@@ -20,7 +20,6 @@
+  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+  */
+  
+-#include <malloc.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <time.h>

Added: head/games/patapizza-tetris/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/pkg-descr	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,4 @@
+This game is an unofficial clone of the original Tetris game
+and is not endorsed by the registered trademark owners The Tetris Company, Inc.
+
+WWW: https://github.com/patapizza/tetris
_______________________________________________
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 3 Boris Samorodov freebsd_committer freebsd_triage 2012-09-22 17:28:49 UTC
State Changed
From-To: open->closed

Committed, thanks! 

Some changes were done: 
. remove the indefinite article from COMMENT; 
. use variable PREFIX instead of hard coded /usr/local; 
. adopt a new headers style.