svn commit: r342214 - in head/games/gtkballs: . files
Rusmir Dusko
nemysis at FreeBSD.org
Sat Feb 1 22:12:53 UTC 2014
Author: nemysis
Date: Sat Feb 1 22:12:52 2014
New Revision: 342214
URL: http://svnweb.freebsd.org/changeset/ports/342214
QAT: https://qat.redports.org/buildarchive/r342214/
Log:
- Take maintainership
- Add license (GPLv2)
- Disable all warnings with -w
- Change DOCS, add DOCS and NLS Options
- Support STAGEDIR and add OPTIONS_SUB
- Fix NLS, use NLS_USES gettext instead of USES gettext
- Add Desktop entry file and icon
- Recreate patches with make makepatch
- Change pkg-plist, remove DOCS
PR: ports/173876
Submitted by: nemysis (self)
Added:
head/games/gtkballs/files/patch-src__game.c (contents, props changed)
head/games/gtkballs/files/patch-src__gtkballs.c (contents, props changed)
Deleted:
head/games/gtkballs/files/patch-src_game.c
head/games/gtkballs/files/patch-src_gtkballs.c
Modified:
head/games/gtkballs/Makefile
head/games/gtkballs/pkg-plist
Modified: head/games/gtkballs/Makefile
==============================================================================
--- head/games/gtkballs/Makefile Sat Feb 1 21:37:07 2014 (r342213)
+++ head/games/gtkballs/Makefile Sat Feb 1 22:12:52 2014 (r342214)
@@ -7,29 +7,38 @@ PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://gtkballs.antex.ru/dist/
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= nemysis at FreeBSD.org
COMMENT= Lines-like simple logic game for X Window System
-USES= gettext gmake pkgconfig
+LICENSE= GPLv2
+
+USES= gmake pkgconfig
USE_GNOME= gtk20
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=${DATADIR}
-MAN6= gtkballs.6x
+CPPFLAGS+= -I${LOCALBASE}/include -w
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PORTDOCS= AUTHORS ChangeLog NEWS README README.russian TODO
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+
+DESKTOP_ENTRIES="GtkBalls" "" ${PORTNAME} \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
-NO_STAGE= yes
post-install:
- ${CHMOD} 2755 ${PREFIX}/bin/gtkballs
- ${CHOWN} root:games ${PREFIX}/bin/gtkballs
- ${CHMOD} 0664 ${DATADIR}/gtkballs-scores
- ${CHOWN} root:games ${DATADIR}/gtkballs-scores
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in README README.russian TODO
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/gnome-gtkballs.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+ ${CHMOD} 664 ${STAGEDIR}${DATADIR}/gtkballs-scores
+ ${CHOWN} root:games ${STAGEDIR}${DATADIR}/gtkballs-scores
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Added: head/games/gtkballs/files/patch-src__game.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gtkballs/files/patch-src__game.c Sat Feb 1 22:12:52 2014 (r342214)
@@ -0,0 +1,12 @@
+--- ./src/game.c.orig 2004-10-06 13:06:46.000000000 +0200
++++ ./src/game.c 2014-02-01 20:44:28.000000000 +0100
+@@ -495,8 +495,8 @@
+ lock_actions(1);
+ draw_board();
+ for(animtime = 0, i = 0; i < animcadres;) {
+- gettimeofday(&tvs, NULL);
+ gint isav = i;
++ gettimeofday(&tvs, NULL);
+ for(; animtime == animarray[i].time && i < animcadres; i++) {
+ draw_ball(animarray[i].color, animarray[i].x, animarray[i].y, 0, animarray[i].phase + 1);
+ _board_destroys[animarray[i].y * rules_get_width() + animarray[i].x] = animarray[i].phase + 1;
Added: head/games/gtkballs/files/patch-src__gtkballs.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gtkballs/files/patch-src__gtkballs.c Sat Feb 1 22:12:52 2014 (r342214)
@@ -0,0 +1,11 @@
+--- ./src/gtkballs.c.orig 2004-02-06 14:51:54.000000000 +0100
++++ ./src/gtkballs.c 2014-02-01 20:44:28.000000000 +0100
+@@ -123,7 +123,7 @@
+ #ifdef ENABLE_NLS
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+- bind_textdomain_codeset(PACKAGE, "UTF8");
++ bind_textdomain_codeset(PACKAGE, "UTF-8");
+ #endif /* ENABLE_NLS */
+
+ /* drop privileges after spawning child with extra privs */
Modified: head/games/gtkballs/pkg-plist
==============================================================================
--- head/games/gtkballs/pkg-plist Sat Feb 1 21:37:07 2014 (r342213)
+++ head/games/gtkballs/pkg-plist Sat Feb 1 22:12:52 2014 (r342214)
@@ -1,7 +1,5 @@
bin/gtkballs
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.russian
-%%PORTDOCS%%%%DOCSDIR%%/TODO
+man/man6/gtkballs.6x.gz
%%DATADIR%%/COPYING
%%DATADIR%%/gtkballs-logo.png
%%DATADIR%%/gtkballs-scores
@@ -526,14 +524,14 @@ bin/gtkballs
%%DATADIR%%/themes/mascots/walk7.xpm
%%DATADIR%%/themes/mascots/walk8.xpm
%%DATADIR%%/themes/mascots/walk_small.xpm
-share/locale/de/LC_MESSAGES/gtkballs.mo
-share/locale/fr/LC_MESSAGES/gtkballs.mo
-share/locale/pl/LC_MESSAGES/gtkballs.mo
-share/locale/ru/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gtkballs.mo
+share/pixmaps/gtkballs.png
@dirrm %%DATADIR%%/themes/mascots
@dirrm %%DATADIR%%/themes/klines
@dirrm %%DATADIR%%/themes/Default
@dirrm %%DATADIR%%/themes/5balls-Big
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
More information about the svn-ports-all
mailing list