svn commit: r349695 - in head/games: . xemeraldia xemeraldia/files

Rusmir Dusko nemysis at FreeBSD.org
Sun Mar 30 23:53:36 UTC 2014


Author: nemysis
Date: Sun Mar 30 23:53:34 2014
New Revision: 349695
URL: http://svnweb.freebsd.org/changeset/ports/349695
QAT: https://qat.redports.org/buildarchive/r349695/

Log:
  XEmeraldia, Drop the blocks. If you drop a square on top of one of the
  same color, they (as well as any neighboring blocks of the same color)
  will both be shaken by an "impact". The first impact will cause fractures;
  the second will cause the block(s) to dissolve.
  
  You can either use the arrow keys or vi-style (hjkl) keys to move/
  rotate the blocks. `s' or `p' will pause the game, and if your boss
  comes along, `q' can be used to avoid an unpleasant confrontation.
  
  http://www.reloco.com.ar/xemeraldia/

Added:
  head/games/xemeraldia/
     - copied from r182631, head/games/xemeraldia/
  head/games/xemeraldia/files/patch-graphics.c   (contents, props changed)
Deleted:
  head/games/xemeraldia/files/patch-aa
  head/games/xemeraldia/files/patch-ab
  head/games/xemeraldia/files/patch-ac
  head/games/xemeraldia/pkg-plist
Modified:
  head/games/Makefile
  head/games/xemeraldia/Makefile   (contents, props changed)
  head/games/xemeraldia/distinfo   (contents, props changed)
  head/games/xemeraldia/pkg-descr   (contents, props changed)

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sun Mar 30 23:32:21 2014	(r349694)
+++ head/games/Makefile	Sun Mar 30 23:53:34 2014	(r349695)
@@ -1063,6 +1063,7 @@
     SUBDIR += xdesktopwaves
     SUBDIR += xdigger
     SUBDIR += xdino
+    SUBDIR += xemeraldia
     SUBDIR += xevil
     SUBDIR += xeyesplus
     SUBDIR += xfireworks

Modified: head/games/xemeraldia/Makefile
==============================================================================
--- head/games/xemeraldia/Makefile	Wed Jan 17 13:38:12 2007	(r182631)
+++ head/games/xemeraldia/Makefile	Sun Mar 30 23:53:34 2014	(r349695)
@@ -1,35 +1,51 @@
-# New ports collection makefile for:	xemeraldia
-# Date created:		22 Mar 1995
-# Whom:			asami
-#
+# Created by: Rusmir Dusko <nemysis at FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	xemeraldia
-PORTVERSION=	0.31
+PORTVERSION=	0.4.3
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.eos.hokudai.ac.jp/pub/Linux/JG/JG-0.9.1/other-sources/jp/
-DISTNAME=	xemeraldia-0.3
-
-PATCH_SITES=	${MASTER_SITES}
-PATCHFILES=	xemeraldia-0.3to0.31.patch.gz
-PATCH_DIST_STRIP=	-p1
-
-MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A game of breaking blocks
-
-DEPRECATED=	distfile disappeared and has no homepage
-EXPIRATION_DATE=	2007-01-17
-
-USE_IMAKE=	yes
-NO_INSTALL_MANPAGES=	yes
+MASTER_SITES=	http://www.reloco.com.ar/xemeraldia/ \
+		SUNSITE/games/tetris \
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER=	nemysis at FreeBSD.org
+COMMENT=	Falling blocks game
+
+USES=		pkgconfig
+USE_GNOME=	cairo gtk20
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	bin/${PORTNAME} \
+		${DESKTOPDIR}/${PORTNAME}.desktop \
+		%%NLS%%share/locale/es/LC_MESSAGES/${PORTNAME}.mo \
+		%%NLS%%share/locale/gl/LC_MESSAGES/${PORTNAME}.mo \
+		share/pixmaps/${PORTNAME}.png \
+		share/pixmaps/${PORTNAME}.xpm
+
+PORTDOCS=	NEWS README
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|$${prefix}/games|$${prefix}/bin|; \
+		s|/var/games/x|.x|; \
+		s|) install-data-hook|)|' \
+		${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e 's|@prefix@/games/||; \
+		s|^Icon.*|Icon=${PORTNAME}|' \
+		${WRKSRC}/xemeraldia.desktop.in
 
 post-install:
-	@${CHOWN} root:games ${PREFIX}/bin/xemeraldia
-	@${CHMOD} 2755 ${PREFIX}/bin/xemeraldia
-	@${MKDIR} ${PREFIX}/lib/X11/xemeraldia
-	@${TOUCH} ${PREFIX}/lib/X11/xemeraldia/xemeraldia.scores
-	@${CHOWN} root:games ${PREFIX}/lib/X11/xemeraldia/xemeraldia.scores
-	@${CHMOD} 664 ${PREFIX}/lib/X11/xemeraldia/xemeraldia.scores
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/xemeraldia/distinfo
==============================================================================
--- head/games/xemeraldia/distinfo	Wed Jan 17 13:38:12 2007	(r182631)
+++ head/games/xemeraldia/distinfo	Sun Mar 30 23:53:34 2014	(r349695)
@@ -1,6 +1,4 @@
-MD5 (xemeraldia-0.3.tar.gz) = 35c30637ea597ce995d8b51a3d8e4080
-SHA256 (xemeraldia-0.3.tar.gz) = 00ef70c84b3d2299b6d8e19a3e9461f6aab8fbb51babbb7cb31ec640ef20b95f
-SIZE (xemeraldia-0.3.tar.gz) = 16454
-MD5 (xemeraldia-0.3to0.31.patch.gz) = 77287135b5d28d67c1245241dbd6534f
-SHA256 (xemeraldia-0.3to0.31.patch.gz) = eed7efb28975f88dd16f8d986fa51452d518130e1d8c7711d11f0abdb2b95aff
-SIZE (xemeraldia-0.3to0.31.patch.gz) = 2400
+SHA256 (xemeraldia-0.4.3.tar.gz) = c1974b37fe81b4d1f19eb1c527b8555039a3385f448031c3772771c881481bab
+SIZE (xemeraldia-0.4.3.tar.gz) = 192820
+SHA256 (xemeraldia.png) = 7b804362743ca5d837b5539df55515622305acae5e0d9fd7648609f1a2c7f99e
+SIZE (xemeraldia.png) = 312

Added: head/games/xemeraldia/files/patch-graphics.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/xemeraldia/files/patch-graphics.c	Sun Mar 30 23:53:34 2014	(r349695)
@@ -0,0 +1,19 @@
+--- ./graphics.c.orig	2009-02-10 01:55:24.000000000 +0100
++++ ./graphics.c	2014-03-31 00:27:54.287686028 +0200
+@@ -7,6 +7,7 @@
+ #endif
+ 
+ #include "games.h"
++#include "gtk-2.0/gtk/gtkprivate.h"
+ 
+ static gboolean animateTmpScore (void *);
+ 
+@@ -32,7 +33,7 @@
+ 
+ static void invalidate_area(GtkWidget *widget, gint x, gint y, gint w, gint h)
+ {
+-	while(GTK_WIDGET_FLAGS(widget) & GTK_NO_WINDOW)
++	while(GTK_PRIVATE_FLAGS(widget) & GTK_NO_WINDOW)
+ 	{
+ 		x += widget->allocation.x;
+ 		y += widget->allocation.y;

Modified: head/games/xemeraldia/pkg-descr
==============================================================================
--- head/games/xemeraldia/pkg-descr	Wed Jan 17 13:38:12 2007	(r182631)
+++ head/games/xemeraldia/pkg-descr	Sun Mar 30 23:53:34 2014	(r349695)
@@ -1,13 +1,10 @@
-This is version 0.3 of xemeraldia.
-
-Drop the blocks.  If you drop a square on top of one of the same
-color, they (as well as any neighboring blocks of the same color) will
-both be shaken by an "impact".  The first impact will cause fractures;
+XEmeraldia, Drop the blocks. If you drop a square on top of one of the
+same color, they (as well as any neighboring blocks of the same color)
+will both be shaken by an "impact". The first impact will cause fractures;
 the second will cause the block(s) to dissolve.
 
 You can either use the arrow keys or vi-style (hjkl) keys to move/
-rotate the blocks.  `s' or `p' will pause the game, and if your boss
+rotate the blocks. `s' or `p' will pause the game, and if your boss
 comes along, `q' can be used to avoid an unpleasant confrontation.
 
-- Satoshi
-asami at cs.berkeley.edu
+http://www.reloco.com.ar/xemeraldia/


More information about the svn-ports-all mailing list