Bug 176195 - [PATCH] games/cre: Set NO_WRKSUBDIR and BUILD_WRKSRC instead of abusing WRKSRC.
Summary: [PATCH] games/cre: Set NO_WRKSUBDIR and BUILD_WRKSRC instead of abusing WRKSRC.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Danilo Egea Gondolfo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-16 16:10 UTC by Christoph Mallon
Modified: 2013-10-30 18:30 UTC (History)
0 users

See Also:


Attachments
0001-games-cre-Set-NO_WRKSUBDIR-and-BUILD_WRKSRC-instead-.patch (1.50 KB, patch)
2013-02-16 16:10 UTC, Christoph Mallon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Mallon 2013-02-16 16:10:00 UTC
Set NO_WRKSUBDIR and BUILD_WRKSRC instead of abusing WRKSRC.

Fix: Please apply this patch.
Comment 1 Gary J. Hayers 2013-02-24 11:35:30 UTC
This patch works for me.

-- 
Regards,
Gary J. Hayers
gary@hayers.org

PGP Signature
http://www.hayers.org/pgp
Comment 2 Raphael Kubo da Costa freebsd_committer freebsd_triage 2013-05-14 19:17:05 UTC
Can you please send an updated version that applies to the current ports
tree? Thanks.
Comment 3 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-30 18:24:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danilo

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-10-30 18:27:28 UTC
Author: danilo
Date: Wed Oct 30 18:27:20 2013
New Revision: 332162
URL: http://svnweb.freebsd.org/changeset/ports/332162

Log:
  - Set NO_WRKSUBDIR and BUILD_WRKSRC
  - Add stage support
  
  PR:		ports/176195
  Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>

Modified:
  head/games/cre/Makefile

Modified: head/games/cre/Makefile
==============================================================================
--- head/games/cre/Makefile	Wed Oct 30 18:15:23 2013	(r332161)
+++ head/games/cre/Makefile	Wed Oct 30 18:27:20 2013	(r332162)
@@ -13,34 +13,29 @@ COMMENT=	Corewars Redcode Evolver
 
 LICENSE=	GPLv2
 
-USE_DOS2UNIX=	../*.txt
-WRKSRC=		${WRKDIR}/src
+USE_DOS2UNIX=	*.txt
+NO_WRKSUBDIR=	yes
+BUILD_WRKSRC=	${WRKSRC}/src
 
 PLIST_FILES=	bin/${PORTNAME}
 
 PORTDOCS=	*.txt
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-extract:
-	@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
-	@cd ${WRKDIR} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \
+	@${CP} ${FILESDIR}/${MAKEFILE} ${BUILD_WRKSRC}
+	@cd ${WRKSRC} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \
 		${MV} "Exhaust README.txt" Exhaust_README.txt
 
 post-patch:
-	@cd ${WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \
+	@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \
 		asm.c pspace.c sim.c
-	@cd ${WRKSRC} && ${REINPLACE_CMD} \
+	@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} \
 		-e 's|random[[:blank:]]*(|myrandom(|' \
 		battler.c generator.c globals.h Main.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-30 18:27:31 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!