37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Nvi < Formula
|
|
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-db4'
|
|
|
|
# Patches per MacPorts
|
|
# The first corrects usage of BDB flags.
|
|
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"
|
|
end
|
|
|
|
def install
|
|
cd 'dist' do
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--program-prefix=n",
|
|
"--disable-dependency-tracking"
|
|
system "make"
|
|
ENV.j1
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|