Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2013 13:50:38 +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: r337189 - in head/games/galaxis: . files
Message-ID:  <201312221350.rBMDodeX071009@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Sun Dec 22 13:50:38 2013
New Revision: 337189
URL: http://svnweb.freebsd.org/changeset/ports/337189

Log:
  - Bump PORTREVISION
  - Change master sites, add icon
  - Add license (BSD3CLAUSE)
  - USES gmake instead of USE_GMAKE
  - Change PLIST_FILES
  - Support STAGEDIR
  - Add DOCS and Option
  - Add files/galaxis.desktop
  - Add patch, fix bad C++ code
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/galaxis/files/
  head/games/galaxis/files/galaxis.desktop   (contents, props changed)
  head/games/galaxis/files/patch-galaxis.c   (contents, props changed)
Modified:
  head/games/galaxis/Makefile   (contents, props changed)
  head/games/galaxis/distinfo   (contents, props changed)

Modified: head/games/galaxis/Makefile
==============================================================================
--- head/games/galaxis/Makefile	Sun Dec 22 13:20:52 2013	(r337188)
+++ head/games/galaxis/Makefile	Sun Dec 22 13:50:38 2013	(r337189)
@@ -3,22 +3,40 @@
 
 PORTNAME=	galaxis
 PORTVERSION=	1.8
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	http://www.catb.org/~esr/galaxis/
+MASTER_SITES=	http://www.catb.org/~esr/galaxis/ \
+		SF/nemysisfreebsdp/games/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Clone of the nifty little Macintosh game
 
+LICENSE=	BSD3CLAUSE
+
+USES=		gmake
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -DNDEBUG"
 ALL_TARGET=	${PORTNAME}
-USE_GMAKE=	yes
 
-MAN6=		${PORTNAME}.6
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		man/man6/${PORTNAME}.6.gz \
+		share/applications/${PORTNAME}.desktop \
+		share/pixmaps/${PORTNAME}.png
+
+PORTDOCS=	README
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6/
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/galaxis/distinfo
==============================================================================
--- head/games/galaxis/distinfo	Sun Dec 22 13:20:52 2013	(r337188)
+++ head/games/galaxis/distinfo	Sun Dec 22 13:50:38 2013	(r337189)
@@ -1,2 +1,4 @@
 SHA256 (galaxis-1.8.tar.gz) = bc36c7e5b1e1d96e5a8c6cdb117b3891833a99e99df709c5531c7d44009a8adc
 SIZE (galaxis-1.8.tar.gz) = 8962
+SHA256 (galaxis.png) = 628880218f4979e82a673a8843126dea745526e1bdf78bce0cfc05b93101bc07
+SIZE (galaxis.png) = 1997

Added: head/games/galaxis/files/galaxis.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/galaxis/files/galaxis.desktop	Sun Dec 22 13:50:38 2013	(r337189)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Galaxis
+GenericName=Galaxis game
+Comment=Clone of the nifty little Macintosh game
+Icon=galaxis
+Exec=galaxis
+Categories=Game;ArcadeGame;
+Terminal=true

Added: head/games/galaxis/files/patch-galaxis.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/galaxis/files/patch-galaxis.c	Sun Dec 22 13:50:38 2013	(r337189)
@@ -0,0 +1,20 @@
+--- ./galaxis.c.orig	2010-10-13 12:13:31.000000000 +0200
++++ ./galaxis.c	2013-12-22 12:01:31.000000000 +0100
+@@ -15,6 +15,8 @@
+ #include <assert.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <time.h>
++#include <unistd.h>
+ 
+ #ifndef A_UNDERLINE	/* BSD curses */
+ #define	beep()	write(1,"\007",1);
+@@ -644,7 +646,7 @@
+     }
+ }
+ 
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
+ char *argv[];
+ {



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