From 9c2bf0004d2e4ec8a874ee4b509a0d462d941a0b Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Tue, 4 Sep 2018 22:58:06 +0200 Subject: [PATCH] nut: remove some options --- Formula/nut.rb | 59 ++++++++++++++++---------------------------------- 1 file changed, 19 insertions(+), 40 deletions(-) diff --git a/Formula/nut.rb b/Formula/nut.rb index ccb8d66d65..f98bb9f6e0 100644 --- a/Formula/nut.rb +++ b/Formula/nut.rb @@ -21,25 +21,9 @@ class Nut < Formula depends_on "libtool" => :build end - option "without-serial", "Omits serial drivers" - option "without-libusb-compat", "Omits USB drivers" - option "with-dev", "Includes dev headers" - option "with-net-snmp", "Builds SNMP support" - option "with-neon", "Builds XML-HTTP support" - option "with-powerman", "Builds powerman PDU support" - option "with-freeipmi", "Builds IPMI PSU support" - option "with-cgi", "Builds CGI wrappers" - option "with-libltdl", "Adds dynamic loading support of plugins using libltdl" - depends_on "pkg-config" => :build - depends_on "libusb-compat" => :recommended - depends_on "net-snmp" => :optional - depends_on "neon" => :optional - depends_on "powerman" => :optional - depends_on "freeipmi" => :optional + depends_on "libusb-compat" depends_on "openssl" - depends_on "libtool" => :build - depends_on "gd" if build.with? "cgi" conflicts_with "rhino", :because => "both install `rhino` binaries" @@ -49,29 +33,24 @@ class Nut < Formula system "./autogen.sh" end - args = %W[ - --disable-dependency-tracking - --prefix=#{prefix} - --localstatedir=#{var} - --without-doc - --without-avahi - --with-macosx_ups - --with-openssl - --without-nss - --without-wrap - ] - args << (build.with?("serial") ? "--with-serial" : "--without-serial") - args << (build.with?("libusb-compat") ? "--with-usb" : "--without-usb") - args << (build.with?("dev") ? "--with-dev" : "--without-dev") - args << (build.with?("net-snmp") ? "--with-snmp" : "--without-snmp") - args << (build.with?("neon") ? "--with-neon" : "--without-neon") - args << (build.with?("powerman") ? "--with-powerman" : "--without-powerman") - args << (build.with?("ipmi") ? "--with-ipmi" : "--without-ipmi") - args << "--with-freeipmi" if build.with? "ipmi" - args << (build.with?("libltdl") ? "--with-libltdl" : "--without-libltdl") - args << (build.with?("cgi") ? "--with-cgi" : "--without-cgi") - - system "./configure", *args + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--localstatedir=#{var}", + "--with-macosx_ups", + "--with-openssl", + "--with-serial", + "--with-usb", + "--without-avahi", + "--without-cgi", + "--without-dev", + "--without-doc", + "--without-ipmi", + "--without-libltdl", + "--without-neon", + "--without-nss", + "--without-powerman", + "--without-snmp", + "--without-wrap" system "make", "install" end