Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 17:36:58 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350142 - in head/games/gnomebreakout: . files
Message-ID:  <201404041736.s34HawTR006363@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Fri Apr  4 17:36:58 2014
New Revision: 350142
URL: http://svnweb.freebsd.org/changeset/ports/350142
QAT: https://qat.redports.org/buildarchive/r350142/

Log:
  - Bump PORTREVISION for dependency change
  - Add master site
  - Transfer maintainership to games@ team
  - Remove DEPRECATED, EXPIRATION_DATE
  - Add USE_GCC=yes
  - Add DOCS and add Option
  - Install conditional NLS, add Option
  - Support STAGEDIR and add OPTIONS_SUB
  - Use patch instead of REINPLACE, remove setuid executable and change
    add patch-Makefile.in
  - Change REINPLACE, cosmetical changes
  - Fix GNU/Linux compatibility, proper install
  - Fix desktop entry file
  - Recreate patch with make makepatch
  - Change pkg-descr
  - Change pkg-plist

Added:
  head/games/gnomebreakout/files/patch-Makefile.in   (contents, props changed)
  head/games/gnomebreakout/files/patch-gnome-breakout.desktop   (contents, props changed)
  head/games/gnomebreakout/files/patch-src__anim.c   (contents, props changed)
Deleted:
  head/games/gnomebreakout/files/patch-src::anim.c
Modified:
  head/games/gnomebreakout/Makefile
  head/games/gnomebreakout/pkg-descr
  head/games/gnomebreakout/pkg-plist

Modified: head/games/gnomebreakout/Makefile
==============================================================================
--- head/games/gnomebreakout/Makefile	Fri Apr  4 17:23:03 2014	(r350141)
+++ head/games/gnomebreakout/Makefile	Fri Apr  4 17:36:58 2014	(r350142)
@@ -3,31 +3,47 @@
 
 PORTNAME=	gnomebreakout
 PORTVERSION=	0.5.3
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	games gnome
-MASTER_SITES=	http://www.users.on.net/~mipearson/
+MASTER_SITES=	SF/${PORTNAME:S/eb/e-b/}/${PORTNAME:S/eb/e-b/}/${PORTVERSION}/ \
+		http://www.users.on.net/~mipearson/
 DISTNAME=	gnome-breakout-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	games@FreeBSD.org
 COMMENT=	GNOME version of the classic breakout game
 
-DEPRECATED=	Unmaintained since 2000
-EXPIRATION_DATE=	2014-04-11
 USES=		pathfix pkgconfig
 USE_GNOME=	gnomeprefix libgnomeui
 GNU_CONFIGURE=	yes
+USE_GCC=	yes
+
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -lm
 
-NO_STAGE=	yes
+PORTDOCS=	AUTHORS ChangeLog NEWS README
+
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext:run
+
+.include <bsd.port.options.mk>
+
 post-patch:
+	@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/src/Makefile.in
 	@${REINPLACE_CMD} -e \
-		's|games.games|root:games|g' ${WRKSRC}/Makefile.in
-	@${REINPLACE_CMD} -e \
-		's|-Werror||g' ${WRKSRC}/src/Makefile.in
-	@${REINPLACE_CMD} -e \
-		's|@GETTEXT_PACKAGE@|@PACKAGE@|g' ${WRKSRC}/po/Makefile.in.in
+		's|@GETTEXT_PACKAGE@|@PACKAGE@|' ${WRKSRC}/po/Makefile.in.in
 	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
-		's|-DGNOME_DISABLE_DEPRECATED||g ; s|-DGTK_DISABLE_DEPRECATED||g'
+		's|-DGNOME_DISABLE_DEPRECATED||; s|-DGTK_DISABLE_DEPRECATED||; \
+		 s|-DGDK_PIXBUF_DISABLE_DEPRECATED||; s|-DG_DISABLE_DEPRECATED||'
+
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e 's|po src|src|' \
+		${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/games/gnomebreakout/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gnomebreakout/files/patch-Makefile.in	Fri Apr  4 17:36:58 2014	(r350142)
@@ -0,0 +1,30 @@
+--- ./Makefile.in.orig	2014-04-04 17:49:31.961202370 +0200
++++ ./Makefile.in	2014-04-04 17:49:40.394104597 +0200
+@@ -91,7 +91,7 @@
+ WARN_CXXFLAGS = @WARN_CXXFLAGS@
+ 
+ SUBDIRS = po src pixmaps levels
+-scoredir = $(localstatedir)/games
++scoredir = $(localstatedir)/gnome-breakout
+ 
+ EXTRA_DIST =          gnome-breakout.desktop 	gnome-breakout.png 	TODO 	BUGS
+ 
+@@ -99,7 +99,7 @@
+ iconpixmapdir = $(datadir)/pixmaps
+ iconpixmap_DATA = gnome-breakout.png
+ 
+-Gamesdir = $(datadir)/gnome/apps/Games
++Gamesdir = $(datadir)/applications
+ Games_DATA = gnome-breakout.desktop
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+@@ -397,9 +397,7 @@
+ install-data-local:
+ 	-$(mkinstalldirs) $(DESTDIR)$(scoredir)
+ 	-touch $(DESTDIR)$(scoredir)/gnome-breakout.scores
+-	-chown games.games $(DESTDIR)$(scoredir)/gnome-breakout.scores
+ 	-chmod 0664 $(DESTDIR)$(scoredir)/gnome-breakout.scores
+-	-chgrp games $(DESTDIR)$(bindir)/gnome-breakout && chmod 2755 $(DESTDIR)$(bindir)/gnome-breakout
+ 
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.

Added: head/games/gnomebreakout/files/patch-gnome-breakout.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gnomebreakout/files/patch-gnome-breakout.desktop	Fri Apr  4 17:36:58 2014	(r350142)
@@ -0,0 +1,13 @@
+--- ./gnome-breakout.desktop.orig	2003-06-23 12:15:30.000000000 +0200
++++ ./gnome-breakout.desktop	2014-04-04 17:49:31.971201127 +0200
+@@ -6,6 +6,7 @@
+ Comment[tr]=Breakout klasiğinin Gnome teşkili
+ Comment[de]=Das klassische Arcade Spiel Breakout für GNOME
+ Exec=gnome-breakout
+-Icon=gnome-breakout.png
+-Terminal=0
+-Type=Game
++Icon=gnome-breakout
++Terminal=false
++Type=Application
++Categories=Game;BlocksGame;

Added: head/games/gnomebreakout/files/patch-src__anim.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gnomebreakout/files/patch-src__anim.c	Fri Apr  4 17:36:58 2014	(r350142)
@@ -0,0 +1,18 @@
+--- ./src/anim.c.orig	2004-05-10 12:42:51.000000000 +0200
++++ ./src/anim.c	2014-04-04 17:49:31.971201127 +0200
+@@ -47,6 +47,7 @@
+ 	Animation newanim;
+ 	char *fullfilename;
+ 	int i;
++	GError *gerror = NULL;
+ 
+ 	/* Find the number of frames */
+ 	fullfilename = g_strdup_printf("%s.%d.png", filename, 0);
+@@ -64,7 +65,6 @@
+ 			sizeof(GdkPixbuf *));
+ 	for(i = 0; i < newanim.num_frames; i++) {
+ 		fullfilename = g_strdup_printf("%s.%d.png", filename, i);
+-                GError *gerror = NULL;
+ 		newanim.pixmaps[i] = gdk_pixbuf_new_from_file(fullfilename,
+                         &gerror);
+ 		if(!newanim.pixmaps[i]) {

Modified: head/games/gnomebreakout/pkg-descr
==============================================================================
--- head/games/gnomebreakout/pkg-descr	Fri Apr  4 17:23:03 2014	(r350141)
+++ head/games/gnomebreakout/pkg-descr	Fri Apr  4 17:36:58 2014	(r350142)
@@ -1,5 +1,4 @@
-GNOME Breakout is a clone of the classic arcade game Breakout,
-written for GNOME.  Still in development, but very playable, and
-very addictive. 
+Breakout (Arkanoid) clone for GNOME.
+Supports level customisation, powerups, and different block types.
 
-WWW: http://www.users.on.net/mipearson/
+WWW: http://sourceforge.net/projects/gnome-breakout/

Modified: head/games/gnomebreakout/pkg-plist
==============================================================================
--- head/games/gnomebreakout/pkg-plist	Fri Apr  4 17:23:03 2014	(r350141)
+++ head/games/gnomebreakout/pkg-plist	Fri Apr  4 17:36:58 2014	(r350142)
@@ -1,6 +1,6 @@
 bin/gnome-breakout
-share/gnome/apps/Games/gnome-breakout.desktop
-share/games/gnome-breakout.scores
+share/applications/gnome-breakout.desktop
+share/gnome-breakout/gnome-breakout.scores
 share/gnome-breakout/levels/alcaron.gbl
 share/gnome-breakout/levels/mdutour.gbl
 share/gnome-breakout/levels/mmack.gbl
@@ -67,11 +67,10 @@ share/gnome-breakout/pixmaps/powerup.slo
 share/gnome-breakout/pixmaps/powerup.widebat.0.png
 share/gnome-breakout/pixmaps/title.png
 share/pixmaps/gnome-breakout.png
-share/locale/de/LC_MESSAGES/gnome-breakout.mo
-share/locale/ru/LC_MESSAGES/gnome-breakout.mo
-share/locale/sv/LC_MESSAGES/gnome-breakout.mo
-share/locale/tr/LC_MESSAGES/gnome-breakout.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gnome-breakout.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gnome-breakout.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gnome-breakout.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gnome-breakout.mo
 @dirrm share/gnome-breakout/pixmaps
 @dirrm share/gnome-breakout/levels
 @dirrm share/gnome-breakout
-@dirrmtry share/games



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