Fri Aug 18 01:15:02 2017 UTC ()
textproc/ja-sed: Fix empty installed GNU info file.

This package applies a vendor patch against the distributed GNU
sed files to extend GNU sed with multibyte awareness.  However, the
changes to the GNU info file are applied before the changes to its
source file, so the timestamps make it appear that the GNU info
file needs to be rebuilt.

Update the timestamp of the patched sed.info file in a "pre-build"
target to correct this issue.

Bump the PKGREVISION due to a change in the installed GNU info
file.


(jlam)
diff -r1.13 -r1.14 pkgsrc/textproc/ja-sed/Makefile

cvs diff -r1.13 -r1.14 pkgsrc/textproc/ja-sed/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/ja-sed/Makefile 2013/04/06 20:27:29 1.13
+++ pkgsrc/textproc/ja-sed/Makefile 2017/08/18 01:15:02 1.14
@@ -1,30 +1,36 @@ @@ -1,30 +1,36 @@
1# $NetBSD: Makefile,v 1.13 2013/04/06 20:27:29 rodent Exp $ 1# $NetBSD: Makefile,v 1.14 2017/08/18 01:15:02 jlam Exp $
2 2
3DISTNAME= sed-3.02 3DISTNAME= sed-3.02
4PKGNAME= ja-sed-3.02 4PKGNAME= ja-sed-3.02
5PKGREVISION= 2 5PKGREVISION= 3
6CATEGORIES= japanese textproc 6CATEGORIES= japanese textproc
7MASTER_SITES= ${MASTER_SITE_GNU:=sed/} 7MASTER_SITES= ${MASTER_SITE_GNU:=sed/}
8 8
9PATCH_SITES= http://www.hinadori.atnifty.com/~wills/program/ 9PATCH_SITES= http://www.hinadori.atnifty.com/~wills/program/
10PATCHFILES= sedmb109.diff.gz 10PATCHFILES= sedmb109.diff.gz
11PATCH_DIST_STRIP= -p1 11PATCH_DIST_STRIP= -p1
12 12
13MAINTAINER= tech-pkg-ja@jp.NetBSD.org 13MAINTAINER= tech-pkg-ja@jp.NetBSD.org
14HOMEPAGE= http://www.gnu.org/software/sed/sed.html 14HOMEPAGE= http://www.gnu.org/software/sed/sed.html
15COMMENT= GNU sed + multi-byte extension 15COMMENT= GNU sed + multi-byte extension
16 16
17CONFLICTS+= gsed-[0-9]* 17CONFLICTS+= gsed-[0-9]*
18 18
19USE_TOOLS+= gmake 19USE_TOOLS+= gmake
20GNU_CONFIGURE= yes 20GNU_CONFIGURE= yes
21CONFIGURE_ARGS+= --program-transform-name='s,^,j,' 21CONFIGURE_ARGS+= --program-transform-name='s,^,j,'
22INFO_FILES= yes 22INFO_FILES= yes
23 23
24INSTALLATION_DIRS= share/doc/ja-sed 24INSTALLATION_DIRS= share/doc/ja-sed
25 25
 26# Update the timestamp of the patched sed.info file so that it
 27# doesn't get rebuilt and overwritten with an empty file.
 28#
 29pre-build:
 30 ${RUN}${TOUCH} ${WRKSRC}/doc/sed.info
 31
26post-install: 32post-install:
27 @${INSTALL_DATA} ${WRKSRC}/OREADME.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed 33 @${INSTALL_DATA} ${WRKSRC}/OREADME.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed
28 @${INSTALL_DATA} ${WRKSRC}/README.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed 34 @${INSTALL_DATA} ${WRKSRC}/README.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed
29 35
30.include "../../mk/bsd.pkg.mk" 36.include "../../mk/bsd.pkg.mk"