summaryrefslogtreecommitdiff
path: root/devel/gindent
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-09 09:30:40 +0000
committeragc <agc@pkgsrc.org>1997-10-09 09:30:40 +0000
commit3568fbea284fc7d6362e436d770bcc181f4f6b93 (patch)
tree950f8a4903120626d8eaeeb46f70adbfe553cb86 /devel/gindent
parent9536ad1edf25d6b7951e405ad28100b23d0d8592 (diff)
downloadpkgsrc-3568fbea284fc7d6362e436d770bcc181f4f6b93.tar.gz
Add a (build) dependency on gtexinfo for NetBSD.
Correct the package's makefile name. Remove previous OS-dependent hack whereby we had no info files on NetBSD. Regenerate indent.info to include DIR specifications, and install using install-info.
Diffstat (limited to 'devel/gindent')
-rw-r--r--devel/gindent/Makefile27
-rw-r--r--devel/gindent/patches/patch-ab24
2 files changed, 41 insertions, 10 deletions
diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile
index cb4e4aff630..4d8adeb4868 100644
--- a/devel/gindent/Makefile
+++ b/devel/gindent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1997/10/06 14:30:58 agc Exp $
+# $NetBSD: Makefile,v 1.3 1997/10/09 09:30:40 agc Exp $
# New ports collection makefile for: indent
# Version required: 1.9.1
# Date created: 28 August 1997
@@ -7,22 +7,30 @@
# FreeBSD Id: Makefile,v 1.1.1.1 1997/08/29 09:20:00 obrien Exp
#
-DISTNAME= indent-1.9.1
-CATEGORIES= devel
-MASTER_SITES= ${MASTER_SITE_GNU}
+DISTNAME= indent-1.9.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU}
GNU_CONFIGURE= yes
-MAINTAINER= kchowksey@hss.hns.com
+MAINTAINER= kchowksey@hss.hns.com
-MAN1= indent.1
+MAN1= indent.1
-OPSYS!= uname -s
+MAKEFILE= makefile
+
+OPSYS!= uname -s
+
+.if (${OPSYS} == "NetBSD")
+BUILD_DEPENDS= install-info:${PORTSDIR}/devel/gtexinfo
+.endif
+
+# agc - force makeinfo to create a new info file with the Dir info.
+pre-install:
+ @rm -f indent.info
post-install:
@strip ${PREFIX}/bin/indent
-.if (${OPSYS} != "NetBSD")
-# agc - this assumes /usr/share/info/dir and install-info
@test -d ${PREFIX}/info || ${MKDIR} ${PREFIX}/info \
&& chmod a+rx ${PREFIX}/info
@if [ ! -f ${PREFIX}/info/dir ]; then \
@@ -33,6 +41,5 @@ post-install:
fi ; \
fi
@install-info ${PREFIX}/info/indent.info ${PREFIX}/info/dir
-.endif
.include <bsd.port.mk>
diff --git a/devel/gindent/patches/patch-ab b/devel/gindent/patches/patch-ab
new file mode 100644
index 00000000000..fc93a0fa531
--- /dev/null
+++ b/devel/gindent/patches/patch-ab
@@ -0,0 +1,24 @@
+--- indent.texinfo 1997/10/08 15:35:14 1.1
++++ indent.texinfo 1997/10/08 15:37:15
+@@ -18,7 +18,21 @@
+ @synindex cp ky
+ @setchapternewpage odd
+
++@set EDITION 1.3
++@set VERSION 1.9.1
++@set UPDATED January 1994
++
++@iftex
++@finalout
++@end iftex
++
+ @ifinfo
++@format
++START-INFO-DIR-ENTRY
++* Indent: (indent). Indent C programs.
++END-INFO-DIR-ENTRY
++@end format
++
+ Copyright (C) 1989, 1992, 1993, 1994 Free Software Foundation, Inc.
+
+ @c !!set edition, date, version