Skip to content

Commit

Permalink
nedit: migrate to brewed X11
Browse files Browse the repository at this point in the history
Also fixed license. Supports #64166.
  • Loading branch information
Adrian Ho committed Nov 9, 2020
1 parent 6dcdc2a commit 7847f9f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Formula/nedit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ class Nedit < Formula
homepage "https://sourceforge.net/projects/nedit/"
url "https://downloads.sourceforge.net/project/nedit/nedit-source/nedit-5.7-src.tar.gz"
sha256 "add9ac79ff973528ad36c86858238bac4f59896c27dbf285cbe6a4d425fca17a"
license "GPL-2.0"
license "GPL-2.0-or-later"
revision 1

livecheck do
url :stable
Expand All @@ -17,8 +18,14 @@ class Nedit < Formula
sha256 "74a4e728ef503642b5ad4dc4466f26a2d6f241e7d495099c8b14defd4e12f350" => :high_sierra
end

depends_on "libice"
depends_on "libsm"
depends_on "libx11"
depends_on "libxext"
depends_on "libxp"
depends_on "libxpm"
depends_on "libxt"
depends_on "openmotif"
depends_on :x11

def install
system "make", "macosx", "MOTIFLINK='-lXm'"
Expand All @@ -34,7 +41,7 @@ def install
end

test do
system bin/"nedit", "-version"
system bin/"ncl", "-version"
assert_match "Can't open display", shell_output("DISPLAY= #{bin}/nedit 2>&1", 1)
assert_match "Can't open display", shell_output("DISPLAY= #{bin}/ncl 2>&1", 1)
end
end

0 comments on commit 7847f9f

Please sign in to comment.