Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2006 03:30:09 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97223: Update port: print/gsfonts
Message-ID:  <20060514033009.bef40d1c.tkato432@yahoo.com>
Resent-Message-ID: <200605131840.k4DIeIEW006964@freefall.freebsd.org>

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

>Number:         97223
>Category:       ports
>Synopsis:       Update port: print/gsfonts
>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 May 13 18:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p17 i386
>Organization:
>Environment:
>Description:
- Support SUB_FILES

New file:
files/pkg-message.in

Remove file:
pkg-message

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/print/gsfonts/Makefile print/gsfonts/Makefile
--- /usr/ports/print/gsfonts/Makefile	Thu Apr 27 13:34:14 2006
+++ print/gsfonts/Makefile	Sat May 13 00:26:34 2006
@@ -23,8 +23,8 @@
 
 PLIST_SUB=	FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
 
-MSG_FILE=	${PKGDIR}/pkg-message
-PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
+SUB_LIST=	FONTSDIR="${FONTSDIR}"
 
 #
 # Local variables
@@ -37,7 +37,6 @@
 .SILENT:
 
 post-patch:
-	${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
 	${CP} ${WRKSRC}/fonts/fonts.scale ${WRKSRC}/fonts/fonts.scale.urw
 	${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.scale
 	${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.dir
@@ -47,7 +46,7 @@
 # Install
 #
 
-do-install: install-fonts install-docs
+do-install: install-fonts install-docs display-message
 
 install-fonts:
 	${MKDIR} ${FONTSDIR}
@@ -70,5 +69,8 @@
 	${INSTALL_DATA} ${WRKSRC}/fonts/README.tweaks ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/fonts/TODO ${DOCSDIR}
 .endif
+
+display-message:
+	${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/print/gsfonts/files/pkg-message.in print/gsfonts/files/pkg-message.in
--- /usr/ports/print/gsfonts/files/pkg-message.in	Thu Jan  1 09:00:00 1970
+++ print/gsfonts/files/pkg-message.in	Sat May 13 23:24:24 2006
@@ -0,0 +1,16 @@
+===========================================================================
+
+IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these
+fonts before using.  The copyright can be found at %%FONTSDIR%%/COPYING.
+To use these fonts, follow the instructions below.
+
+Make sure that the freetype module is loaded.  If it is not, add the
+following line to the "Modules" section of XF86Config:
+
+	Load "freetype"
+
+Add the following line to the "Files" section of XF86Config:
+
+	FontPath "%%FONTSDIR%%/"
+
+===========================================================================
diff -urN /usr/ports/print/gsfonts/pkg-message print/gsfonts/pkg-message
--- /usr/ports/print/gsfonts/pkg-message	Fri Jun  4 23:50:26 2004
+++ print/gsfonts/pkg-message	Thu Jan  1 09:00:00 1970
@@ -1,12 +0,0 @@
-IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these fonts
-before using.  The copyright can be found at %%FONTSDIR%%/COPYING.  To 
-use these fonts, follow the instructions below.
-
-Make sure that the freetype module is loaded.  If it is not, add the following
-line to the "Modules" section of XF86Config:
-
-	Load "freetype"
-
-Add the following line to the "Files" section of XF86Config:
-
-	FontPath "%%FONTSDIR%%/"
>Release-Note:
>Audit-Trail:
>Unformatted:



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