Compare commits
5 commits
master
...
new-formul
Author | SHA1 | Date | |
---|---|---|---|
e7254545f6 | |||
|
a3f99229e7 | ||
|
a7fd411960 | ||
|
c34ec5c089 | ||
|
798894f4b5 |
3 changed files with 44 additions and 23 deletions
|
@ -1,17 +1,14 @@
|
|||
class Make < Formula
|
||||
desc "Utility for directing compilation"
|
||||
homepage "https://www.gnu.org/software/make/"
|
||||
url "https://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2"
|
||||
mirror "https://ftpmirror.gnu.org/make/make-4.2.1.tar.bz2"
|
||||
sha256 "d6e262bf3601b42d2b1e4ef8310029e1dcf20083c5446b4b7aa67081fdffc589"
|
||||
revision 1
|
||||
url "https://ftp.gnu.org/gnu/make/make-4.3.tar.lz"
|
||||
mirror "https://ftpmirror.gnu.org/make/make-4.3.tar.lz"
|
||||
sha256 "de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82"
|
||||
|
||||
bottle do
|
||||
rebuild 3
|
||||
sha256 "250c966a63e8e661f6c5f38669f3ea6bebeaeccb7cc4f797116e63d5580bf1d8" => :catalina
|
||||
sha256 "c457485b491cccb4a03059e38244b14e7c7f54abb377fa31874848cc786b54ff" => :mojave
|
||||
sha256 "d1788bda69cb9fad4fa9225ee111503ff3b8dee37901878f380c3a27ee62b8f0" => :high_sierra
|
||||
sha256 "1d55b106718979c19a8e6ad9974fe9dbea6501daafcf0014e80143efd37dd74e" => :sierra
|
||||
sha256 "b2cbb6b854495469de4d065825c94540ad3053a1ff7c1832f4eb7781ee6b8231" => :catalina
|
||||
sha256 "50ac9c7185e08349c35531d8ee30e755713aec340229cab2008ba1a2ceac15c9" => :mojave
|
||||
sha256 "e7f49884dbeaae3e7ccc9dc3a58fec587c2a594f50314dbc33cde44c6f807f53" => :high_sierra
|
||||
end
|
||||
|
||||
def install
|
||||
|
|
|
@ -1,14 +1,21 @@
|
|||
class MidnightCommander < Formula
|
||||
desc "Terminal-based visual file manager"
|
||||
homepage "https://www.midnight-commander.org/"
|
||||
url "https://www.midnight-commander.org/downloads/mc-4.8.23.tar.xz"
|
||||
sha256 "dd7f7ce74183307b0df25b5c3e60ad3293fd3d3d27d2f37dd7a10efce13dff1c"
|
||||
head "https://github.com/MidnightCommander/mc.git"
|
||||
url "https://www.midnight-commander.org/downloads/mc-4.8.24.tar.xz"
|
||||
sha256 "859f1cc070450bf6eb4d319ffcb6a5ac29deb0ac0d81559fb2e71242b1176d46"
|
||||
|
||||
bottle do
|
||||
sha256 "5c97885f5afc7eeeb4cf0cafc805f551dcd05ef88d918b401619eda36f0e5d2b" => :catalina
|
||||
sha256 "e76360b03ae28f84ee962e1e15a7bd4506a7bb7dc0811f88647beed8a21beae4" => :mojave
|
||||
sha256 "cac5b58750645de5fb74112a5ba5e640593500fc3b78d45d33432d448e962d61" => :high_sierra
|
||||
sha256 "c6adcb70e949c89ba12ba91fffb89ad00c55e8c3a063ae6d01954a02a84512f2" => :catalina
|
||||
sha256 "2e3e95bd852f0edd7069b09ff24e897e94bb495f3b852230f7cc3400acfc2d9a" => :mojave
|
||||
sha256 "2e888d8d8cec7a0c881d0df09f5662080494f89e1871fbcccf30e9a0cc18aa1b" => :high_sierra
|
||||
end
|
||||
|
||||
head do
|
||||
url "https://github.com/MidnightCommander/mc.git"
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
@ -19,13 +26,6 @@ class MidnightCommander < Formula
|
|||
|
||||
conflicts_with "minio-mc", :because => "Both install a `mc` binary"
|
||||
|
||||
# Fix compilation https://midnight-commander.org/ticket/4035
|
||||
# Remove in next release
|
||||
patch do
|
||||
url "https://midnight-commander.org/raw-attachment/ticket/4035/mc-4.8.23.patch"
|
||||
sha256 "eca0c095700bc4c4a41e74da0f95874c4a91a0f22ad45b2d96b32d2f537d856f"
|
||||
end
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--disable-debug
|
||||
|
@ -40,7 +40,7 @@ class MidnightCommander < Formula
|
|||
# Fix compilation bug on macOS 10.13 by pretending we don't have utimensat()
|
||||
# https://github.com/MidnightCommander/mc/pull/130
|
||||
ENV["ac_cv_func_utimensat"] = "no" if MacOS.version >= :high_sierra
|
||||
|
||||
system "./autogen.sh" if build.head?
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
|
24
Formula/pihelper.rb
Normal file
24
Formula/pihelper.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
class Pihelper < Formula
|
||||
desc "Unofficial command-line client for the Pi-hole"
|
||||
homepage "https://git.wbrawner.com/cgit.cgi/Pi-Helper/pihelper.git/about/"
|
||||
url "https://git.wbrawner.com/cgit.cgi/Pi-Helper/pihelper.git/snapshot/pihelper-0.1.0.tar.gz"
|
||||
sha256 "110f16e1e8167c18ce7c11fd5a8d73f016f0e5a9c4e5898f3b24bbdd878bafcb"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "json-c"
|
||||
depends_on "openssl@1.1"
|
||||
uses_from_macos "curl"
|
||||
|
||||
def install
|
||||
system "cmake", ".", "-DPIHELPER_EXECUTABLE=ON", "-DPIHELPER_STATIC=OFF", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
require "open3"
|
||||
File.write(Dir.pwd + "/tmp_file", "host=localhost\napi-key=test\n")
|
||||
Open3.popen3("#{bin}/pihelper", "-f", Dir.pwd + "/tmp_file") do |_, _, stderr|
|
||||
assert_equal "Failed to retrieve status for Pi-hole at localhost\n" + "\n", stderr.read
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue