mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
nvi: fix segfault and DBCREATE warning
Fix homepage Use Debian download Use BDB4 instead of 5 Use more MacPorts patches Closes #21492.
This commit is contained in:
1 parent
66b72dce5a
commit
eafc7d6fa4
1 file changed
+11
-33
+11
-33
@@ -1,14 +1,20 @@
|
||||
require 'formula'
|
||||
|
||||
class Nvi < Formula
|
||||
homepage 'https://sites.google.com/a/bostic.com/keithbostic/nvi'
|
||||
url 'http://www.kotnet.org/~skimo/nvi/devel/nvi-1.81.6.tar.bz2'
|
||||
sha1 'd3445ed69166102735335a2ff60d092d9a9143c6'
|
||||
homepage 'https://sites.google.com/a/bostic.com/keithbostic/vi/'
|
||||
url 'http://ftp.de.debian.org/debian/pool/main/n/nvi/nvi_1.81.6.orig.tar.gz'
|
||||
sha1 'ce3e0d7d476fb3bdcce9d547e170152290db0347'
|
||||
|
||||
depends_on 'berkeley-db'
|
||||
depends_on 'berkeley-db4'
|
||||
|
||||
# Patches per MacPorts
|
||||
# The first corrects usage of BDB flags.
|
||||
def patches
|
||||
DATA
|
||||
{:p0 => [
|
||||
"https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-common__db.h",
|
||||
"https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-dist__port.h.in",
|
||||
"https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-ex_script.c.diff"
|
||||
]}
|
||||
end
|
||||
|
||||
def install
|
||||
@@ -22,31 +28,3 @@ class Nvi < Formula
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/ex/ex_script.c b/ex/ex_script.c
|
||||
index 31f42c1..8f0104a 100644
|
||||
--- a/ex/ex_script.c
|
||||
+++ b/ex/ex_script.c
|
||||
@@ -12,6 +12,10 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+#ifdef __APPLE__
|
||||
+#undef HAVE_SYS5_PTY
|
||||
+#endif
|
||||
+
|
||||
#ifndef lint
|
||||
static const char sccsid[] = "$Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo Exp $ (Berkeley) $Date: 2001/06/25 15:19:19 $";
|
||||
#endif /* not lint */
|
||||
@@ -45,6 +49,10 @@ static const char sccsid[] = "$Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo
|
||||
#include "script.h"
|
||||
#include "pathnames.h"
|
||||
|
||||
+#ifdef __APPLE__
|
||||
+#undef HAVE_SYS5_PTY
|
||||
+#endif
|
||||
+
|
||||
static void sscr_check __P((SCR *));
|
||||
static int sscr_getprompt __P((SCR *));
|
||||
static int sscr_init __P((SCR *));
|
||||
Reference in new issue
Block a user