Skip to content

Commit

Permalink
portable-ncurses: disable unneeded components
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Sep 29, 2023
1 parent b3bd89f commit 69d6fd8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Formula/portable-ncurses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ def install
"--prefix=#{prefix}",
"--enable-static",
"--disable-shared",
"--without-ada",
"--without-cxx-binding",
"--without-manpages",
"--without-progs",
"--without-tests",
"--enable-pc-files",
"--with-pkg-config-libdir=#{lib}/pkgconfig",
"--enable-sigwinch",
"--enable-symlinks",
"--enable-widec",
"--with-gpm=no",
"--without-ada"
"--with-gpm=no"

system "make", "install"
make_libncurses_symlinks
end
Expand All @@ -56,9 +60,6 @@ def make_libncurses_symlinks
end

test do
cp_r Dir["#{prefix}/*"], testpath
system testpath/"bin/tput", "cols"

(testpath/"test.c").write <<~EOS
#include <ncursesw/curses.h>
int main()
Expand Down

0 comments on commit 69d6fd8

Please sign in to comment.