Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 00:54:23 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142622: [PATCH] japanese/ja-zangband: use $SUB_FILES to dynamically adjust pkg-message
Message-ID:  <201001110054.o0B0sNxl005551@newbie.thingamajig-systems.co.uk>
Resent-Message-ID: <201001110100.o0B10BdG044745@freefall.freebsd.org>

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

>Number:         142622
>Category:       ports
>Synopsis:       [PATCH] japanese/ja-zangband: 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:   Mon Jan 11 01:00:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD newbie.thingamajig-systems.co.uk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58 UTC
>Description:
There's no need to invoke sed manually, use $SUB_FILES to take care of things automatically.

Added file(s):
- files/pkg-message.in

Removed file(s):
- files/MESSAGE.in

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- ja-zangband-2.4.0.j020104_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/japanese/zangband/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile	10 Jan 2010 01:08:57 -0000	1.12
+++ Makefile	11 Jan 2010 00:52:40 -0000
@@ -26,7 +26,8 @@
 NO_CDROM=	Possible copyright infringement
 
 WRKSRC=		${WRKDIR}/ZAngband
-PKGMESSAGE=	${WRKDIR}/MESSAGE
+SUB_FILES=	pkg-message
+SUB_LIST=	ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
 PLIST_SUB+=	ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB}
 
 SHAREOWN=	games
@@ -53,7 +54,6 @@
 pre-build:
 	${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
 	${CP} ${WRKSRC}/src/makefile.std ${WRKSRC}/src/Makefile
-	@${SED} -e "s|%%PREFIX%%|${PREFIX}|g;s|%%ANGBANDBIN%%|${ANGBANDBIN}|g;s|%%ANGBANDLIB%%|${ANGBANDLIB}|g" ${FILESDIR}/MESSAGE.in > ${PKGMESSAGE}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/testing ${PREFIX}/${ANGBANDBIN}
Index: files/MESSAGE.in
===================================================================
RCS file: files/MESSAGE.in
diff -N files/MESSAGE.in
--- files/MESSAGE.in	1 Sep 2001 06:04:55 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
- ============================================================================
- To reduce the number of term windows opened, use -n:
-   %%PREFIX%%/%%ANGBANDBIN%% -- -n2
-
- The binary will changed its owner to 'games:games' and added SETGID bit.
- Then players can record their score to public score files.
- You can set fonts by using environment variables such as ANGBAND_X11_FONT,
- ANGBAND_X11_FONT_1 (the number represents sub-window id),
- ANGBAND_X11_KFONT (for kanji support), etc.
-
- WARNING!
- You now have the following world-writable (mode 1777) directories:
-   %%PREFIX%%/%%ANGBANDLIB%%/save
-   %%PREFIX%%/%%ANGBANDLIB%%/user
- ============================================================================
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	11 Jan 2010 00:52:40 -0000
@@ -0,0 +1,15 @@
+ ============================================================================
+ To reduce the number of term windows opened, use -n:
+   %%PREFIX%%/%%ANGBANDBIN%% -- -n2
+
+ The binary will changed its owner to 'games:games' and added SETGID bit.
+ Then players can record their score to public score files.
+ You can set fonts by using environment variables such as ANGBAND_X11_FONT,
+ ANGBAND_X11_FONT_1 (the number represents sub-window id),
+ ANGBAND_X11_KFONT (for kanji support), etc.
+
+ WARNING!
+ You now have the following world-writable (mode 1777) directories:
+   %%PREFIX%%/%%ANGBANDLIB%%/save
+   %%PREFIX%%/%%ANGBANDLIB%%/user
+ ============================================================================
--- ja-zangband-2.4.0.j020104_2.patch ends here ---

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



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