ports/173761: [PATCH] games/viruskiller: Added Master site, reset deprecated, OptionsNG, take maintainership

nemysis nemysis at gmx.ch
Wed Nov 21 11:10:01 UTC 2012


>Number:         173761
>Category:       ports
>Synopsis:       [PATCH] games/viruskiller: Added Master site, reset deprecated, OptionsNG, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 11:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:

- Take maintainership

Makefile changed:
+MASTER_SITES=	SF/nemysisfreebsdp/
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-11-26
+.include <bsd.port.options.mk>
+.if !${PORT_OPTIONS:MDOCS}
+post-install:

Changed and refined
 post-patch:
 pkg-plist

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:

portlint -A
WARN: Makefile: [43]: use ${VARIABLE}, instead of $(VARIABLE).
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.
WARN: Makefile: new ports should not set PORTREVISION.
0 fatal errors and 3 warnings found.

WARN: Makefile: [43] because is used
+	@${REINPLACE_CMD} -i '' -e '/$$(DESTDIR)$$(DOCDIR)/d' ${WRKSRC}/makefile

port test: clean

Can't give build log, because RedPorts not works at the time.

>Fix:

--- viruskiller-1.03_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/viruskiller/Makefile ./Makefile
--- /usr/ports/games/viruskiller/Makefile	2012-11-16 09:01:38.000000000 +0100
+++ ./Makefile	2012-11-17 17:21:01.000000000 +0100
@@ -3,40 +3,46 @@
 
 PORTNAME=	viruskiller
 PORTVERSION=	1.03
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
-MASTER_SITES=	http://www.parallelrealities.co.uk/download/viruskiller/
+MASTER_SITES=	SF/nemysisfreebsdp/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-1
 
-MAINTAINER=	ports at FreeBSD.org
-COMMENT=	An arcade game that relies on quick reflexes
-
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-11-26
+MAINTAINER=	nemysis at gmx.ch
+COMMENT=	Arcade game that relies on quick reflexes
 
 LICENSE=	GPLv2
 
+LIB_DEPENDS+=	zzip:${PORTSDIR}/devel/zziplib
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
 USE_SDL=	mixer image ttf net
 USE_GMAKE=	yes
+MAKEFILE=	makefile
 
 INSTALLS_ICONS=	yes
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-MAKEFILE=	makefile
+.include <bsd.port.options.mk>
 
 post-patch:
-	# Remove non-free restricted files:
-	${RM} -f ${WRKSRC}/music/* ${WRKSRC}/sound/*
-
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -e "s|^.*install.*DOCS.*||g" \
-		-e "s|^.*mkdir.*DOCDIR.*||g" \
+	@${FIND} ${WRKSRC} * | ${XARGS} ${CHMOD} 644
+	@${REINPLACE_CMD} \
+	-e 's|^PREFIX.*|PREFIX=${PREFIX}|g' \
+	-e 's|^BINDIR.*|BINDIR=${PREFIX}/bin/|g' \
+	-e 's|^DATADIR.*|DATADIR=${DATADIR}/|g' \
+	-e 's|^DOCDIR.*|DOCDIR=${DOCSDIR}|g' \
 		${WRKSRC}/makefile
+	@${REINPLACE_CMD} \
+	-e 's|viruskiller.png|viruskiller|' \
+	-e 's|^Exec.*|Exec=${PORTNAME}|' \
+		${WRKSRC}/icons/viruskiller.desktop
+
+.if !${PORT_OPTIONS:MDOCS}
+	@${REINPLACE_CMD} -i '' -e '/$$(DESTDIR)$$(DOCDIR)/d' ${WRKSRC}/makefile
 .endif
-	@${REINPLACE_CMD} -e "s|^PREFIX.*|PREFIX=${PREFIX}|g" \
-		-e "s|^BINDIR.*|BINDIR=${PREFIX}/bin/|g" \
-		-e "s|^DATADIR.*|DATADIR=${DATADIR}/|g" \
-		-e "s|^DOCDIR.*|DOCDIR=${DOCSDIR}|g" ${WRKSRC}/makefile
+
+post-install:
+	${LN} -sf ${PREFIX}/share/icons/hicolor/64x64/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/games/viruskiller/pkg-descr ./pkg-descr
--- /usr/ports/games/viruskiller/pkg-descr	2012-11-16 09:01:38.000000000 +0100
+++ ./pkg-descr	2012-11-21 11:58:07.000000000 +0100
@@ -6,4 +6,4 @@
 right there on the spot! See how long you and your computer can survive the
 onslaught!
 
-WWW:	http://www.parallelrealities.co.uk/projects/virusKiller.php
+WWW: http://www.happypenguin.org/show?Virus%20Killer
diff -ruN --exclude=CVS /usr/ports/games/viruskiller/pkg-plist ./pkg-plist
--- /usr/ports/games/viruskiller/pkg-plist	2012-11-16 09:01:38.000000000 +0100
+++ ./pkg-plist	2012-11-21 11:51:19.000000000 +0100
@@ -14,6 +14,7 @@
 share/icons/hicolor/32x32/apps/viruskiller.png
 share/icons/hicolor/64x64/apps/viruskiller.png
 share/applications/viruskiller.desktop
+share/pixmaps/viruskiller.png
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry %%DATADIR%%
 @dirrmtry share/icons/hicolor/64x64/apps
@@ -25,4 +26,3 @@
 @dirrmtry share/icons/hicolor
 @dirrmtry share/icons
 @dirrmtry share/applications
-
--- viruskiller-1.03_4.patch ends here ---

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


More information about the freebsd-ports-bugs mailing list