f2de08d4fc
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.
36 lines
965 B
Makefile
36 lines
965 B
Makefile
# $NetBSD: Makefile,v 1.14 2017/08/18 01:15:02 jlam Exp $
|
|
|
|
DISTNAME= sed-3.02
|
|
PKGNAME= ja-sed-3.02
|
|
PKGREVISION= 3
|
|
CATEGORIES= japanese textproc
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=sed/}
|
|
|
|
PATCH_SITES= http://www.hinadori.atnifty.com/~wills/program/
|
|
PATCHFILES= sedmb109.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/sed/sed.html
|
|
COMMENT= GNU sed + multi-byte extension
|
|
|
|
CONFLICTS+= gsed-[0-9]*
|
|
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --program-transform-name='s,^,j,'
|
|
INFO_FILES= yes
|
|
|
|
INSTALLATION_DIRS= share/doc/ja-sed
|
|
|
|
# Update the timestamp of the patched sed.info file so that it
|
|
# doesn't get rebuilt and overwritten with an empty file.
|
|
#
|
|
pre-build:
|
|
${RUN}${TOUCH} ${WRKSRC}/doc/sed.info
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/OREADME.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed
|
|
@${INSTALL_DATA} ${WRKSRC}/README.MB ${DESTDIR}${PREFIX}/share/doc/ja-sed
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|