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.
|
2014-03-14 15:03:25 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-common__db.h"
|
|
|
|
sha1 "8c350d51a970b31890ed2b756f7594dc54af3636"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-dist__port.h.in"
|
|
|
|
sha1 "c710836415f999255e3617256380a4881c2281a8"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-ex_script.c.diff"
|
|
|
|
sha1 "c70eec15f8e0dbd66777953506ab78dc77150505"
|
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
|