ports/142557: [patch] graphics/sane-frontends use $SUB_FILES to dynamically adjust pkg-message

Sevan Janiyan venture37 at geeklan.co.uk
Sun Jan 10 01:00:11 UTC 2010


>Number:         142557
>Category:       ports
>Synopsis:       [patch] graphics/sane-frontends 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:   Sun Jan 10 01:00:10 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/graphics/sane-frontends/Makefile,v
retrieving revision 1.61
diff -u -r1.61 Makefile
--- Makefile	31 Jul 2009 13:52:47 -0000	1.61
+++ Makefile	10 Jan 2010 00:50:16 -0000
@@ -29,6 +29,7 @@
 		LDFLAGS="-L${LOCALBASE}/lib"
 
 MAN1=		scanadf.1 xcam.1 xscanimage.1
+SUB_FILES=	pkg-message
 
 OPTIONS=	GTK1 "GTK1 support (Default is GTK2)" off \
 		GIMP "also build xscanimage as a GIMP plug-in" off
@@ -55,6 +56,6 @@
 .endif
 
 post-install:
-	@${SED} 's:/usr/local:${PREFIX}:' ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	18 Apr 2004 17:10:36 -0000	1.7
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Congratulations, SANE-FRONTENDS is now installed.
-
-If you built it with WITH_GIMP set to yes, you can use
-xscanimage as a GIMP plug-in.  To do this, type:
-
-ln -sf /usr/local/bin/xscanimage ~/.gimp-2.0/plug-ins/xscanimage (gimp-2.x)
-ln -sf /usr/local/bin/xscanimage ~/.gimp-1.2/plug-ins/xscanimage (gimp-1.x)
-
-Then run the GIMP, and a new "xscanimage" menu item should appear in the
-"File->Acquire" menu.  Use this to access your scanner.
-
-Have fun!
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	10 Jan 2010 00:50:16 -0000
@@ -0,0 +1,12 @@
+Congratulations, SANE-FRONTENDS is now installed.
+
+If you built it with WITH_GIMP set to yes, you can use
+xscanimage as a GIMP plug-in.  To do this, type:
+
+ln -sf %%PREFIX%%/bin/xscanimage ~/.gimp-2.0/plug-ins/xscanimage (gimp-2.x)
+ln -sf %%PREFIX%%/bin/xscanimage ~/.gimp-1.2/plug-ins/xscanimage (gimp-1.x)
+
+Then run the GIMP, and a new "xscanimage" menu item should appear in the
+"File->Acquire" menu.  Use this to access your scanner.
+
+Have fun!


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



More information about the freebsd-ports-bugs mailing list