pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gtexinfo Don't use a macro named __(), because _...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/384984c4ae84
branches:  trunk
changeset: 542552:384984c4ae84
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed May 21 12:30:16 2008 +0000

description:
Don't use a macro named __(), because __ has internal use in OSF1 system
headers. Supposedly fixed already in upstream CVS.
This closes PR pkg/38400 from Hans Rosenfeld.

diffstat:

 devel/gtexinfo/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r abee902aaac9 -r 384984c4ae84 devel/gtexinfo/Makefile
--- a/devel/gtexinfo/Makefile   Wed May 21 11:23:49 2008 +0000
+++ b/devel/gtexinfo/Makefile   Wed May 21 12:30:16 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2008/03/05 22:26:46 jlam Exp $
+# $NetBSD: Makefile,v 1.71 2008/05/21 12:30:16 tnn Exp $
 
 DISTNAME=              texinfo-4.11
 PKGNAME=               g${DISTNAME}
@@ -36,6 +36,13 @@
 CONFIGURE_ARGS+=       --disable-nls
 .endif
 
+SUBST_CLASSES+=                macro
+SUBST_STAGE.macro=     pre-configure
+SUBST_MESSAGE.macro=   Replacing use of __ macro.
+SUBST_FILES.macro=     makeinfo/*.c makeinfo/makeinfo.h
+SUBST_SED.macro=       -e 's,\#define __(s) getdocumenttext(s),,'
+SUBST_SED.macro+=      -e 's,__(",getdocumenttext(",g'
+
 .include "../../mk/termcap.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
 



Home | Main Index | Thread Index | Old Index