ports/142528: [patch] games/blockout use $SUB_FILES to dynamically adjust pkg-message

Sevan Janiyan venture37 at geeklan.co.uk
Sat Jan 9 17:00:09 UTC 2010


>Number:         142528
>Category:       ports
>Synopsis:       [patch] games/blockout use $SUB_FILES to dynamically adjust pkg-message
>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:   Sat Jan 09 17:00:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/blockout/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	25 Nov 2009 08:13:09 -0000	1.3
+++ Makefile	9 Jan 2010 16:53:09 -0000
@@ -25,6 +25,7 @@
 BUILD_WRKSRC=	${WRKSRC}/BlockOut
 
 FETCH_ARGS?=	-pRr
+SUB_FILES=	pkg-message
 
 pre-build:
 		cd ${WRKSRC}/ImageLib/src && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}
@@ -44,6 +45,6 @@
 .		endfor
 		${INSTALL_DATA} ${WRKSRC}/BlockOut/sounds/music.mp3 ${DATADIR}/sounds
 post-install:
-		${SED} -e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" ${PKGMESSAGE};
+		@{CAT} {PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	4 Sep 2009 13:59:20 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
-
-*************************************************************************
-
-  Set the environment variable:
-
-      BL2_HOME=%%PREFIX%%/share/blockout
-
-*************************************************************************
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in	9 Jan 2010 16:53:09 -0000
@@ -0,0 +1,8 @@
+
+*************************************************************************
+
+  Set the environment variable:
+
+      BL2_HOME=%%PREFIX%%/share/blockout
+
+*************************************************************************


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



More information about the freebsd-ports-bugs mailing list