Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 18:11:50 GMT
From:      Hardy Schumacher <hardy.schumacher@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185664: [UPDATE] games/pathological, add license and desktop entry
Message-ID:  <201401111811.s0BIBoDN021796@oldred.freebsd.org>
Resent-Message-ID: <201401111820.s0BIK01V097333@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185664
>Category:       ports
>Synopsis:       [UPDATE] games/pathological, add license and desktop entry
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 18:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Hardy Schumacher
>Release:        FreeBSD-9.2
>Organization:
>Environment:
FreeBSD gamma.low.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255996: Thu Oct  3 20:40:04 CEST 2013     root@gamma.low.org:/usr/obj/usr/src/sys/LOW_GAMMA  i386
>Description:
Add license information.
Add desktop entry.
Converted to new options framework.
Fixed some issues reported by portlint.
>How-To-Repeat:
n/a
>Fix:


Patch attached with submission follows:

diff -ruN /usr/ports/games/pathological/Makefile ./pathological/Makefile
--- /usr/ports/games/pathological/Makefile	2013-10-27 16:23:11.000000000 +0100
+++ ./pathological/Makefile	2014-01-11 19:06:21.000000000 +0100
@@ -10,8 +10,13 @@
 MAINTAINER=	jmohacsi@bsd.hu
 COMMENT=	Enriched clone of the game "Logical"
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
 
+OPTIONS_DEFINE=	DOCS
+
 USE_PYTHON=	yes
 NO_BUILD=	yes
 MAN6=		pathological.6
@@ -19,18 +24,28 @@
 
 DOC_FILES=	favicon.ico index.html
 
+DESKTOP_ENTRIES=	\
+	"Pathological" \
+	"Logic game" \
+	"${DATADIR}/pathological.ico" \
+	"pathological" \
+	"Game;LogicGame;" \
+	alse
+
+.include <bsd.port.options.mk>
+
 NO_STAGE=	yes
 do-install:
 	@${MKDIR} ${DATADIR}
 	(cd ${WRKSRC}; tar -cf - circuits graphics music sounds pathological.ico pathological.py pathological.xpm) | \
 		(cd ${DATADIR}; tar --unlink -xf -)
-	@printf "#!/bin/sh\ncd ${DATADIR} && \
+	@${PRINTF} "#!/bin/sh\ncd ${DATADIR} && \
 		exec ${PYTHON_CMD} ${DATADIR}/pathological.py\n" > ${WRKDIR}/pathological.sh
 	@${INSTALL_SCRIPT} ${WRKDIR}/pathological.sh ${PREFIX}/bin/pathological
 .ifndef(NO_INSTALL_MANPAGES)
 	${INSTALL_MAN} ${WRKSRC}/${MAN6}.gz ${MAN6PREFIX}/man/man6/
 .endif
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for file in ${DOC_FILES}
 	@${INSTALL_DATA} ${WRKSRC}/html/${file} ${DOCSDIR}
diff -ruN /usr/ports/games/pathological/pkg-descr ./pathological/pkg-descr
--- /usr/ports/games/pathological/pkg-descr	2012-12-26 19:40:56.000000000 +0100
+++ ./pathological/pkg-descr	2014-01-11 18:25:34.000000000 +0100
@@ -10,4 +10,4 @@
     * 50 diverse and challenging levels (more to come...)
     * A cool 6-minute ambient soundtrack by an award-winning musician
 
-WWW:	http://pathological.sourceforge.net/
+WWW: http://pathological.sourceforge.net/


>Release-Note:
>Audit-Trail:
>Unformatted:



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