Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 01:14:40 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142623: [PATCH] java/eclipseme: use $SUB_FILES to dynamically adjust pkg-message
Message-ID:  <201001110114.o0B1EeQN006133@newbie.thingamajig-systems.co.uk>
Resent-Message-ID: <201001110120.o0B1K1l0062413@freefall.freebsd.org>

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

>Number:         142623
>Category:       ports
>Synopsis:       [PATCH] java/eclipseme: 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:20:01 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):
- pkg-message

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

--- eclipseme-0.4.6_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/java/eclipseme/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile	22 Aug 2009 00:24:25 -0000	1.9
+++ Makefile	11 Jan 2010 01:10:43 -0000
@@ -22,7 +22,8 @@
 NO_BUILD=	yes
 USE_ZIP=	yes
 NO_WRKSUBDIR=	yes
-PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
+SUB_LIST=	APP_HOME=${APP_HOME}
 APP_HOME=	${PREFIX}/eclipse/plugins/${PORTNAME}_${PORTVERSION}
 
 .if defined(WITH_PROGUARD)
@@ -34,6 +35,6 @@
 	@${CP} -R ${WRKSRC}/${PORTNAME}_${PORTVERSION} ${PREFIX}/eclipse/plugins/
 
 post-install:
-	@${CAT} ./pkg-message | ${SED} -e 's|%%PREFIX%%|${APP_HOME}|'
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	25 Jul 2004 08:08:17 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-================================================================
-Initial configuration instructions for the Eclipse J2ME plugin
-are in the file:
-%%PREFIX%%/doc/index.html
-================================================================
-
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 01:10:43 -0000
@@ -0,0 +1,6 @@
+================================================================
+Initial configuration instructions for the Eclipse J2ME plugin
+are in the file:
+%%APP_HOME%%/doc/index.html
+================================================================
+
--- eclipseme-0.4.6_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?201001110114.o0B1EeQN006133>