ports/173188: [PATCH] games/wordplay: Makefile changed, OptionsNG, take maintainership
nemysis
nemysis at gmx.ch
Mon Oct 29 10:40:03 UTC 2012
>Number: 173188
>Category: ports
>Synopsis: [PATCH] games/wordplay: Makefile changed, 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: Mon Oct 29 10:40:02 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:
+.include <bsd.port.options.mk>
+ @${REINPLACE_CMD} -e 's|CC=gcc|CC?=g++|' ${WRKSRC}/makefile
+.if ${PORT_OPTIONS:MDOCS}
Generated and tested manually, tested with port test and with RedPorts (all RELEASES, CLANG), sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
portlint -A
looks fine.
port test: clean
Build log
https://redports.org/buildarchive/20121029094159-41149/
>Fix:
--- wordplay-7.22_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/wordplay/Makefile ./Makefile
--- /usr/ports/games/wordplay/Makefile 2011-08-08 16:14:52.000000000 +0200
+++ ./Makefile 2012-10-29 10:31:13.000000000 +0100
@@ -12,16 +12,20 @@
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
EXTRACT_SUFX= .tar.Z
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= nemysis at gmx.ch
COMMENT= Simple program to generate anagrams
NO_WRKSUBDIR= yes
PORTDOCS= readme
+
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt
PLIST_DIRS= %%DATADIR%%
+.include <bsd.port.options.mk>
+
post-patch:
+ @${REINPLACE_CMD} -e 's|CC=gcc|CC?=g++|' ${WRKSRC}/makefile
@${REINPLACE_CMD} -e 's|"words721.txt"|"${DATADIR}/words721.txt"| ; \
s|<ctype.h>|<stdlib.h>|' ${WRKSRC}/wordplay.c
@@ -30,11 +34,12 @@
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
+ ${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
+
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
--- wordplay-7.22_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list