diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile new file mode 100644 index 00000000000..c45d4058ab4 --- /dev/null +++ b/devel/gindent/Makefile @@ -0,0 +1,31 @@ +# OpenBSD makefile for: indent +# Version required: 1.9.1 +# Date created: 1 Nov 1997 +# Whom: ejovi +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/02 00:18:41 joey Exp $ +# + +DISTNAME= indent-1.9.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GNU} + +MAINTAINER= joey@OpenBSD.ORG + +MAN1= indent.1 + +post-install: + @mv ${PREFIX}/bin/indent ${PREFIX}/bin/indent + @strip ${PREFIX}/bin/indent + @test -d ${PREFIX}/info || ${MKDIR} ${PREFIX}/info \ + && chmod a+rx ${PREFIX}/info + @if [ ! -f ${PREFIX}/info/dir ]; then \ + if [ -f /usr/share/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ + else \ + touch ${PREFIX}/info/dir ; \ + fi ; \ + fi + @install-info ${PREFIX}/info/indent.info ${PREFIX}/info/dir + +.include diff --git a/devel/gindent/files/md5 b/devel/gindent/files/md5 new file mode 100644 index 00000000000..bd4664cbf53 --- /dev/null +++ b/devel/gindent/files/md5 @@ -0,0 +1 @@ +MD5 (indent-1.9.1.tar.gz) = 21b5f78c7ade93fa7d33f79ff48d3982 diff --git a/devel/gindent/patches/patch-aa b/devel/gindent/patches/patch-aa new file mode 100644 index 00000000000..cb9500bb6a4 --- /dev/null +++ b/devel/gindent/patches/patch-aa @@ -0,0 +1,18 @@ +--- makefile.in.orig Thu Aug 28 17:48:56 1997 ++++ makefile.in Thu Aug 28 17:50:29 1997 +@@ -51,6 +51,7 @@ + exec_prefix = ${prefix} + bindir = $(exec_prefix)/bin + infodir = ${prefix}/info ++mandir = ${prefix}/man + + #### End of system configuration section. #### + +@@ -126,6 +127,7 @@ + install: all + ${INSTALL_PROGRAM} indent ${bindir}/indent + ${INSTALL_DATA} ${srcdir}/indent.info ${infodir}/indent.info ++ ${INSTALL_DATA} ${srcdir}/indent.1 ${mandir}/man1/indent.1 + + + # Cleaning up diff --git a/devel/gindent/pkg/COMMENT b/devel/gindent/pkg/COMMENT new file mode 100644 index 00000000000..c44be7800b0 --- /dev/null +++ b/devel/gindent/pkg/COMMENT @@ -0,0 +1 @@ +GNU indent. diff --git a/devel/gindent/pkg/DESCR b/devel/gindent/pkg/DESCR new file mode 100644 index 00000000000..2626b5bbadf --- /dev/null +++ b/devel/gindent/pkg/DESCR @@ -0,0 +1,2 @@ +The `indent' program changes the appearance of a C program by +inserting or deleting whitespace. diff --git a/devel/gindent/pkg/PLIST b/devel/gindent/pkg/PLIST new file mode 100644 index 00000000000..f2935ff7a83 --- /dev/null +++ b/devel/gindent/pkg/PLIST @@ -0,0 +1,6 @@ +bin/indent +man/man1/indent.1.gz +info/indent.info +@unexec install-info --delete %D/info/indent.info %D/info/dir +@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir +@exec install-info %D/info/indent.info %D/info/dir