From fcc102b66968d5670b5fe67b8d06c9e461751b3f Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 15 Feb 1998 17:01:07 +0000 Subject: [PATCH] Fix to properly install info files. PR: 5740 Submitted by: Igor Vinokurov --- databases/gdbm/Makefile | 8 +++++++- databases/gdbm/files/patch-aa | 13 +++++++++++++ databases/gdbm/files/patch-ab | 20 ++++++++++++++++++++ databases/gdbm/pkg-plist | 3 +++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 databases/gdbm/files/patch-aa create mode 100644 databases/gdbm/files/patch-ab diff --git a/databases/gdbm/Makefile b/databases/gdbm/Makefile index 28d66f8f7565..704e2bf29742 100644 --- a/databases/gdbm/Makefile +++ b/databases/gdbm/Makefile @@ -3,7 +3,7 @@ # Date created: 8 Apr 1996 # Whom: Brent J. Nordquist # -# $Id: Makefile,v 1.3 1996/11/18 10:19:15 asami Exp $ +# $Id: Makefile,v 1.4 1997/01/28 08:11:23 asami Exp $ # DISTNAME= gdbm-1.7.3 @@ -16,4 +16,10 @@ GNU_CONFIGURE= yes MAKE_FLAGS= CFLAGS="${CFLAGS}" LDFLAGS=-s -f MAN3= gdbm.3 +post-install: + @if [ ! -f ${PREFIX}/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ + fi + @install-info ${PREFIX}/info/gdbm.info ${PREFIX}/info/dir + .include diff --git a/databases/gdbm/files/patch-aa b/databases/gdbm/files/patch-aa new file mode 100644 index 000000000000..7669707f19e1 --- /dev/null +++ b/databases/gdbm/files/patch-aa @@ -0,0 +1,13 @@ +--- gdbm.texinfo.orig Sat Feb 14 16:25:48 1998 ++++ gdbm.texinfo Sat Feb 14 16:28:33 1998 +@@ -2,6 +2,10 @@ + @comment %**start of header (This is for running Texinfo on a region.) + @setfilename gdbm.info + @settitle gdbm ++@dircategory Programming & development tools ++@direntry ++* GDBM: (gdbm). The GNU database manager. ++@end direntry + @c @setchapternewpage odd + @comment %**end of header (This is for running Texinfo on a region.) + diff --git a/databases/gdbm/files/patch-ab b/databases/gdbm/files/patch-ab new file mode 100644 index 000000000000..1753a3c3931f --- /dev/null +++ b/databases/gdbm/files/patch-ab @@ -0,0 +1,20 @@ +--- Makefile.in.orig Sun May 15 13:28:49 1994 ++++ Makefile.in Sat Feb 14 16:37:46 1998 +@@ -88,7 +88,7 @@ + + DISTFILES = $(SRCS) $(HDRS) $(MSCFILES) + +-all: libgdbm.a ++all: libgdbm.a info + + progs: $(PROGS) + +@@ -149,7 +149,7 @@ + + info: gdbm.info + +-gdbm.info: ++gdbm.info: gdbm.texinfo + $(MAKEINFO) $(srcdir)/gdbm.texinfo + + dvi: gdbm.dvi diff --git a/databases/gdbm/pkg-plist b/databases/gdbm/pkg-plist index c821913a50db..5e16ec395b00 100644 --- a/databases/gdbm/pkg-plist +++ b/databases/gdbm/pkg-plist @@ -1,4 +1,7 @@ include/gdbm.h +@unexec install-info --delete %D/info/gdbm.info %D/info/dir info/gdbm.info +@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir +@exec install-info %D/info/gdbm.info %D/info/dir lib/libgdbm.a man/man3/gdbm.3.gz