aboutsummaryrefslogtreecommitdiff
path: root/databases/gdbm
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-02-15 17:01:07 +0000
committerSteve Price <steve@FreeBSD.org>1998-02-15 17:01:07 +0000
commitfcc102b66968d5670b5fe67b8d06c9e461751b3f (patch)
tree15c837d8a948a9d4897718ba1bae3d5636e32e43 /databases/gdbm
parent14737a7a862e70f0feedf11f29902d4e1d74b718 (diff)
downloadports-fcc102b66968d5670b5fe67b8d06c9e461751b3f.tar.gz
ports-fcc102b66968d5670b5fe67b8d06c9e461751b3f.zip
Fix to properly install info files.
PR: 5740 Submitted by: Igor Vinokurov <igor@zynaps.ru>
Notes
Notes: svn path=/head/; revision=9733
Diffstat (limited to 'databases/gdbm')
-rw-r--r--databases/gdbm/Makefile8
-rw-r--r--databases/gdbm/files/patch-aa13
-rw-r--r--databases/gdbm/files/patch-ab20
-rw-r--r--databases/gdbm/pkg-plist3
4 files changed, 43 insertions, 1 deletions
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 <bjn@visi.com>
#
-# $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 <bsd.port.mk>
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