2011-01-06 22:52:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Nvi < Formula
|
2013-07-28 17:36:20 +00:00
|
|
|
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'
|
2011-01-06 22:52:47 +00:00
|
|
|
|
2013-07-28 17:36:20 +00:00
|
|
|
depends_on 'berkeley-db4'
|
2011-01-06 22:52:47 +00:00
|
|
|
|
2013-07-28 17:36:20 +00:00
|
|
|
# Patches per MacPorts
|
|
|
|
# The first corrects usage of BDB flags.
|
2011-01-06 22:52:47 +00:00
|
|
|
def patches
|
2013-07-28 17:36:20 +00:00
|
|
|
{: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"
|
|
|
|
]}
|
2011-01-06 22:52:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'dist' do
|
2011-01-06 22:52:47 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--program-prefix=n",
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
system "make"
|
|
|
|
ENV.j1
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|