repo_name
stringlengths 6
97
| path
stringlengths 3
341
| text
stringlengths 8
1.02M
|
|---|---|---|
0x07CB/linuxbrew-core
|
Formula/fruit.rb
|
<gh_stars>100-1000
class Fruit < Formula
desc "Dependency injection framework for C++"
homepage "https://github.com/google/fruit/wiki"
url "https://github.com/google/fruit/archive/v3.6.0.tar.gz"
sha256 "b35b9380f3affe0b3326f387505fa80f3584b0d0a270362df1f4ca9c39094eb5"
license "Apache-2.0"
bottle do
sha256 cellar: :any, arm64_big_sur: "1efe400614d7043d482a1983f780a4d4792112e039a5939e0fb0e5cdc64d2ad6"
sha256 cellar: :any, big_sur: "a08a4deb118150ef8237de0dfe4ac6215a729b504f25881950e0113016a9011b"
sha256 cellar: :any, catalina: "10f1081e14b11a547b36020cdfa75486fac42036389b37d2df831f586fc78429"
sha256 cellar: :any, mojave: "fc0a6e56340a21a4548f589d38df7b52bd6edabb483e6c6e0a9fe8605a373a8f"
sha256 cellar: :any, high_sierra: "73e0c030fb7984d5b3b72d11410ca2f30c4e5a66ba183070fc3ae8a919ea5094"
sha256 cellar: :any, x86_64_linux: "74c9b8a5b5b91ed6e37666f2bf369ed7b83297a95d6760f21bbf103b93c6335e" # linuxbrew-core
end
depends_on "cmake" => :build
def install
system "cmake", ".", "-DFRUIT_USES_BOOST=False", *std_cmake_args
system "make", "install"
pkgshare.install "examples/hello_world/main.cpp"
end
test do
cp_r pkgshare/"main.cpp", testpath
system ENV.cxx, "main.cpp", "-I#{include}", "-L#{lib}",
"-std=c++11", "-lfruit", "-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/rarian.rb
|
<filename>Formula/rarian.rb<gh_stars>100-1000
class Rarian < Formula
desc "Documentation metadata library"
homepage "https://rarian.freedesktop.org/"
url "https://rarian.freedesktop.org/Releases/rarian-0.8.1.tar.bz2"
sha256 "aafe886d46e467eb3414e91fa9e42955bd4b618c3e19c42c773026b205a84577"
livecheck do
url "https://rarian.freedesktop.org/Releases/"
regex(/href=.*?rarian[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "d69d0f1b4d7ddae2d5d751a506a3515b1969c4caa56ea55a4a8220971eb72641"
sha256 big_sur: "12560010f5d31af2a399dd3cc9427ffc37474a9d6d04d1f8eac715956983cc56"
sha256 catalina: "6cd01a0bbc9d5168548c6735ddf1057ae3ef403d3868be499ff1ce3ba1cd6ab8"
sha256 mojave: "e727630f28efcdcb1a577f67525992f00a00c25ee1582277e1e91e2fa060187d"
sha256 high_sierra: "815aafc0d05198cd4e3880715a6ad5de21b3bf47ccf25ef4b91aa918848a67ee"
sha256 sierra: "9266addbd38ed67b7394d05702d2be69d44ccafeb8132ef75470a816614a9f8e"
sha256 el_capitan: "7784dc13b95c0c2f5818bc3657da52f0365bbe9c6ddf8871d81b8638cb89390c"
sha256 yosemite: "069ff9e17c252271d058e72f38eedb2e1196cee49598e1537c64bd45b7f356e6"
sha256 x86_64_linux: "ee0188851e808392329ccbf64a40eb43b03df5703fc83e74ab1a5f9fbec59235" # linuxbrew-core
end
conflicts_with "scrollkeeper",
because: "rarian and scrollkeeper install the same binaries"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/python-markdown.rb
|
<filename>Formula/python-markdown.rb
class PythonMarkdown < Formula
include Language::Python::Virtualenv
desc "Python implementation of Markdown"
homepage "https://python-markdown.github.io"
url "https://files.pythonhosted.org/packages/49/02/37bd82ae255bb4dfef97a4b32d95906187b7a7a74970761fca1360c4ba22/Markdown-3.3.4.tar.gz"
sha256 "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49"
license "BSD-3-Clause"
revision 1
head "https://github.com/Python-Markdown/markdown.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7a0926148f224393a9d718e9ae032d503af50e4651aa799aacfcd6ae234f4909"
sha256 cellar: :any_skip_relocation, big_sur: "17410bd96abac23079f5746f78077457b2abed0fafeb544f0b0e28ee23451587"
sha256 cellar: :any_skip_relocation, catalina: "cd69e83d7367882f20a1704c583ea03f8b70af2b9e4b92d6575eaea674951c62"
sha256 cellar: :any_skip_relocation, mojave: "4c511d30c1aac5d2db8bc48143cee680c5cfc0447aebf25e225270a1e54ada4f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ffcfa712ec575e026fb75c9d3cbd7b997cf115abddc37beac019c56af2222f44" # linuxbrew-core
end
depends_on "python@3.10"
def install
virtualenv_install_with_resources
end
test do
(testpath/"test.md").write("# Hello World!")
assert_equal "<h1>Hello World!</h1>", shell_output(bin/"markdown_py test.md").strip
end
end
|
0x07CB/linuxbrew-core
|
Formula/bzr-colo.rb
|
<filename>Formula/bzr-colo.rb
class BzrColo < Formula
desc "Git style colocated branches for Bazaar"
homepage "https://launchpad.net/bzr-colo"
url "https://launchpad.net/bzr-colo/trunk/0.4.0/+download/bzr-colo-0.4.0.tar.gz"
sha256 "f61c1abaf80f1e4a573fefd492b70938d27c4b8ca5611cdb0e0a4dc0ed71bbb3"
depends_on "bazaar"
def install
(share/"bazaar/plugins/colo").install Dir["*"]
end
test do
system "bzr", "whoami", "Homebrew"
system "bzr", "colo-init", "foo"
file_path = (testpath/"foo/trunk/foo.txt")
cd "foo" do
system "bzr", "colo-checkout", "trunk"
cd "trunk" do
file_path.write("change")
system "bzr", "add"
system "bzr", "commit", "-m", "some change in trunk"
system "bzr", "colo-branch", "branch1"
assert_match(/\* branch1/, shell_output("bzr colo-branches"))
file_path.append_lines("change")
system "bzr", "commit", "-m", "some change in branch1"
assert_match(/some change in branch1/, shell_output("bzr log -l1"))
system "bzr", "switch", "colo:trunk"
assert_match(/\* trunk/, shell_output("bzr colo-branches"))
assert_match(/some change in trunk/, shell_output("bzr log -l1"))
system "bzr", "merge", "colo:branch1"
system "bzr", "commit", "-m", "this is so much worse than just using bzr"
assert_match(/this is so much worse than just using bzr/, shell_output("bzr log -r2"))
assert_match(/some change in trunk/, shell_output("bzr log -r1"))
end
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/termshark.rb
|
class Termshark < Formula
desc "Terminal UI for tshark, inspired by Wireshark"
homepage "https://termshark.io"
url "https://github.com/gcla/termshark/archive/v2.3.0.tar.gz"
sha256 "8e2a22534773b1ab0ce4327e929bbbe413d3695bab2d55c985d1f61961698610"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9fc25d8ee00903f6f3ce91d3cde70c12dc636d51050f938f2230a1bb6eaabbba"
sha256 cellar: :any_skip_relocation, big_sur: "4e8111a7730d4d042b4654689d0baa4e1cec23c658fc75f62f552d5d7f553843"
sha256 cellar: :any_skip_relocation, catalina: "8dc2114b14d2738361021fef34e5069de185371c5828c1528fe7fbd3a5543aec"
sha256 cellar: :any_skip_relocation, mojave: "a665f8f658b7699ff18acf7a8ac29658a90b694d368438fb7082b068d0ae426c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "675df117582fa6642221cec464645d3c891d664eb0bed20b1c915517ff375d0d" # linuxbrew-core
end
depends_on "go" => :build
depends_on "socat" => :test
depends_on "wireshark"
def install
# Don't set GOPATH because we want to build using go modules to
# ensure our dependencies are the ones specified in go.mod.
mkdir_p buildpath
ln_sf buildpath, buildpath/"termshark"
cd "termshark" do
system "go", "build", "-o", bin/"termshark",
"cmd/termshark/termshark.go"
end
end
test do
assert_match "termshark v#{version}",
shell_output("#{bin}/termshark -v --pass-thru=false")
# Build a test pcap programmatically. Termshark will read this
# from a temp file.
packet = []
packet += [0xd4, 0xc3, 0xb2, 0xa1, 0x02, 0x00, 0x04, 0x00]
packet += [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
packet += [0x00, 0x00, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00]
packet += [0xf3, 0x2a, 0x39, 0x52, 0x00, 0x00, 0x00, 0x00]
packet += [0x4d, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x00]
packet += [0x10, 0x40, 0x00, 0x20, 0x35, 0x01, 0x2b, 0x59]
packet += [0x00, 0x06, 0x29, 0x17, 0x93, 0xf8, 0xaa, 0xaa]
packet += [0x03, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00]
packet += [0x00, 0x37, 0xf9, 0x39, 0x00, 0x00, 0x40, 0x11]
packet += [0xa6, 0xdb, 0xc0, 0xa8, 0x2c, 0x7b, 0xc0, 0xa8]
packet += [0x2c, 0xd5, 0xf9, 0x39, 0x00, 0x45, 0x00, 0x23]
packet += [0x8d, 0x73, 0x00, 0x01, 0x43, 0x3a, 0x5c, 0x49]
packet += [0x42, 0x4d, 0x54, 0x43, 0x50, 0x49, 0x50, 0x5c]
packet += [0x6c, 0x63, 0x63, 0x6d, 0x2e, 0x31, 0x00, 0x6f]
packet += [0x63, 0x74, 0x65, 0x74, 0x00, 0xf3, 0x2a, 0x39]
packet += [0x52, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00]
packet += [0x00, 0x4d, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00]
packet += [0x20, 0x35, 0x01, 0x2b, 0x59, 0x00, 0x06, 0x29]
packet += [0x17, 0x93, 0xf8, 0xaa, 0xaa, 0x03, 0x00, 0x00]
packet += [0x00, 0x08, 0x00, 0x45, 0x00, 0x00, 0x37, 0xf9]
packet += [0x39, 0x00, 0x00, 0x40, 0x11, 0xa6, 0xdb, 0xc0]
packet += [0xa8, 0x2c, 0x7b, 0xc0, 0xa8, 0x2c, 0xd5, 0xf9]
packet += [0x39, 0x00, 0x45, 0x00, 0x23, 0x8d, 0x73, 0x00]
packet += [0x01, 0x43, 0x3a, 0x5c, 0x49, 0x42, 0x4d, 0x54]
packet += [0x43, 0x50, 0x49, 0x50, 0x5c, 0x6c, 0x63, 0x63]
packet += [0x6d, 0x2e, 0x31, 0x00, 0x6f, 0x63, 0x74, 0x65]
packet += [0x74, 0x00]
File.open("#{HOMEBREW_TEMP}/termshark-test.pcap", "w+") do |f|
f.write(packet.pack("C*"))
end
# Rely on exit code of grep - if termshark works correctly, it will
# detect stdout is not a tty, defer to tshark and display the grepped IP.
system [
"#{bin}/termshark -r #{HOMEBREW_TEMP}/termshark-test.pcap",
" | grep 192.168.44.123",
].join
# Pretend to be a tty and run termshark with the temporary pcap. Queue up
# 'q' and 'enter' to terminate. Rely on the exit code of termshark, which
# should be EXIT_SUCCESS/0. Output is piped to /dev/null to avoid
# interfering with the outer terminal. The quit command is delayed five
# seconds to provide ample time for termshark to load the pcap (there is
# no external mechanism to tell when the load is complete).
testcmds = [
"{ sleep 5s ; echo q ; echo ; } | ",
"socat - EXEC:'sh -c \\\"",
"stty rows 50 cols 80 && ",
"TERM=xterm ",
"#{bin}/termshark -r #{HOMEBREW_TEMP}/termshark-test.pcap",
"\\\"',pty,setsid,ctty > /dev/null",
]
system testcmds.join
# "Scrape" the terminal UI for a specific IP address contained in the test
# pcap. Since the output contains ansi terminal codes, use the -a flag to
# grep to ensure it's not treated as binary input.
testcmds[5] = "\\\"',pty,setsid,ctty | grep -a 192.168.44.123 > /dev/null"
system testcmds.join
# Clean up.
File.delete("#{HOMEBREW_TEMP}/termshark-test.pcap")
end
end
|
0x07CB/linuxbrew-core
|
Formula/perltidy.rb
|
<gh_stars>100-1000
class Perltidy < Formula
desc "Indents and reformats Perl scripts to make them easier to read"
homepage "https://perltidy.sourceforge.io/"
url "https://downloads.sourceforge.net/project/perltidy/20210717/Perl-Tidy-20210717.tar.gz"
sha256 "4d1bd38e1c3a39a2fabb2ddf61a57e3d6cf2778a7b2aebcbf618ad205972cf14"
license "GPL-2.0-or-later"
livecheck do
url :stable
regex(%r{url=.*?/Perl-Tidy[._-]v?(\d+(?:\.\d+)*)\.t}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9edc9a821a8e2f328c762335e4894aa89d8f7b88581f2f978863d03609b770c1"
sha256 cellar: :any_skip_relocation, big_sur: "ddf621becd4af56097f4bdf2d3d9c1098cae8c5c56fc7f5daf5cd66f88e985a8"
sha256 cellar: :any_skip_relocation, catalina: "c84935b3b18530692c91f59941e094a212d736f13e5e2e8f6f51b91e9e6cda59"
sha256 cellar: :any_skip_relocation, mojave: "e5a3e554fa0f765e4ea678c541a93423a62ba4db5614b3937e28f062e1b687ac"
sha256 cellar: :any_skip_relocation, x86_64_linux: "45d415c3bd44f071c5aa4d465446f6c4b0ad58e30941d59b8ed027f1e0b6c634" # linuxbrew-core
end
uses_from_macos "perl"
def install
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}",
"INSTALLSITESCRIPT=#{bin}",
"INSTALLSITEMAN1DIR=#{man1}",
"INSTALLSITEMAN3DIR=#{man3}"
system "make"
system "make", "install"
bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"])
end
test do
(testpath/"testfile.pl").write <<~EOS
print "Help Desk -- What Editor do you use?";
chomp($editor = <STDIN>);
if ($editor =~ /emacs/i) {
print "Why aren't you using vi?\n";
} elsif ($editor =~ /vi/i) {
print "Why aren't you using emacs?\n";
} else {
print "I think that's the problem\n";
}
EOS
system bin/"perltidy", testpath/"testfile.pl"
assert_predicate testpath/"testfile.pl.tdy", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/jrtplib.rb
|
class Jrtplib < Formula
desc "Fully featured C++ Library for RTP (Real-time Transport Protocol)"
homepage "https://research.edm.uhasselt.be/jori/jrtplib"
url "https://research.edm.uhasselt.be/jori/jrtplib/jrtplib-3.11.2.tar.bz2"
sha256 "2c01924c1f157fb1a4616af5b9fb140acea39ab42bfb28ac28d654741601b04c"
livecheck do
skip "No longer developed"
end
bottle do
sha256 cellar: :any, arm64_big_sur: "b00a6b5d09b1eb5d8e6a72e548cff53f2834b4b07d235f3cb4ee346b9d4a0dbc"
sha256 cellar: :any, big_sur: "c025524ef889d74cc261768b9e12f8d3ffe57802adef254e2a01850db983e269"
sha256 cellar: :any, catalina: "05fc5e0747f7d5f725f9dda22cf39d414e8ee751829d14e9c32fa12279834cfc"
sha256 cellar: :any, mojave: "1b48b36e9011b4aa675f1d581e900c64bcad93ba15fc86d1e27db09ed2c75ce9"
sha256 cellar: :any, high_sierra: "420016bd3f9981189dc8bf69dc7520da8d9cbde848147dde495792c1a5a984fa"
sha256 cellar: :any, x86_64_linux: "43260e27fd5b6abdd0b2ed5d7a6628a490a6fd7dd0e492a731e30fb117c22384" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "jthread"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
(testpath/"test.cpp").write <<~EOS
#include <jrtplib3/rtpsessionparams.h>
using namespace jrtplib;
int main() {
RTPSessionParams sessionparams;
sessionparams.SetOwnTimestampUnit(1.0/8000.0);
return 0;
}
EOS
system ENV.cxx, "test.cpp", "-I#{include}", "-L#{lib}", "-ljrtp",
"-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/i386-elf-gdb.rb
|
class I386ElfGdb < Formula
desc "GNU debugger for i386-elf cross development"
homepage "https://www.gnu.org/software/gdb/"
url "https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz"
mirror "https://ftpmirror.gnu.org/gdb/gdb-10.2.tar.xz"
sha256 "aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29"
license "GPL-3.0-or-later"
revision 1
head "https://sourceware.org/git/binutils-gdb.git", branch: "master"
livecheck do
formula "gdb"
end
bottle do
sha256 arm64_big_sur: "b4c91d248b5ba7d765c277903ac03f1f3d35a77079ae3acbdba8768a9dcb4c55"
sha256 big_sur: "dbf60ac8e71d01328d134cb1eaa47cd734dd612cd67cc7b730d56afc138ea969"
sha256 catalina: "4ca5521aab0566367e9a72767225d08667efb40e609c0b8e9e4ff7464f755052"
sha256 mojave: "85a64a23e61b011e32cff2c56e7915f32a8d8d669be09e4698b431412e8ea7b0"
end
depends_on "i686-elf-gcc" => :test
depends_on "python@3.9"
depends_on "xz" # required for lzma support
uses_from_macos "texinfo" => :build
uses_from_macos "zlib"
# Fix for https://sourceware.org/bugzilla/show_bug.cgi?id=26949#c8
# Remove when upstream includes this commit
# https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b413232211bf
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/242630de4b54d6c57721e12ce88988a0f4e41202/gdb/gdb-10.2.patch"
sha256 "36652e9d97037266650a3b31f9f39539c4b376d31016fa4fc325dc0aa7930acc"
end
def install
target = "i386-elf"
args = %W[
--target=#{target}
--prefix=#{prefix}
--datarootdir=#{share}/#{target}
--includedir=#{include}/#{target}
--infodir=#{info}/#{target}
--mandir=#{man}
--disable-debug
--disable-dependency-tracking
--with-lzma
--with-python=#{Formula["python@3.9"].opt_bin}/python3
--with-system-zlib
--disable-binutils
]
mkdir "build" do
system "../configure", *args
system "make"
# Don't install bfd or opcodes, as they are provided by binutils
system "make", "install-gdb"
end
end
test do
(testpath/"test.c").write "void _start(void) {}"
system Formula["i686-elf-gcc"].bin/"i686-elf-gcc", "-g", "-nostdlib", "test.c"
assert_match "Symbol \"_start\" is a function at address 0x",
shell_output("#{bin}/i386-elf-gdb -batch -ex 'info address _start' a.out")
end
end
|
0x07CB/linuxbrew-core
|
Formula/nuclei.rb
|
class Nuclei < Formula
desc "HTTP/DNS scanner configurable via YAML templates"
homepage "https://nuclei.projectdiscovery.io/"
url "https://github.com/projectdiscovery/nuclei/archive/v2.5.2.tar.gz"
sha256 "f10abc813e7b5ab4676dd4a6b238b45f9205796659a0a91a0404b2d3945aff92"
license "MIT"
head "https://github.com/projectdiscovery/nuclei.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6802d6b0a39b74722839112be840b1a5a5e5a7b7891367ba9c1f37348ab9e8d5"
sha256 cellar: :any_skip_relocation, big_sur: "604a7e45584388acbba33cfe400ea3380c376bd4caab99bb86da40c6a8349dcd"
sha256 cellar: :any_skip_relocation, catalina: "d3169586e62a557027a6aaefad5ad354ad7454fb135dd1423c4994d5a3044ba0"
sha256 cellar: :any_skip_relocation, mojave: "ffe8b9f81a3bf0970d3dce0b7a43589ed3b2b410133d0dad1dc403ae6636c3b8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d55caee7e8dd002c968714479b8d7cca69065eb0789cb7b27e9ca0a65553d438" # linuxbrew-core
end
depends_on "go" => :build
def install
cd "v2/cmd/nuclei" do
system "go", "build", *std_go_args, "main.go"
end
end
test do
(testpath/"test.yaml").write <<~EOS
id: homebrew-test
info:
name: Homebrew test
author: bleepnetworks
severity: INFO
description: Check DNS functionality
dns:
- name: \"{{FQDN}}\"
type: A
class: inet
recursion: true
retries: 3
matchers:
- type: word
words:
- \"IN\tA\"
EOS
system "nuclei", "-target", "google.com", "-t", "test.yaml"
end
end
|
0x07CB/linuxbrew-core
|
Formula/remarshal.rb
|
<reponame>0x07CB/linuxbrew-core
class Remarshal < Formula
include Language::Python::Virtualenv
desc "Convert between TOML, YAML and JSON"
homepage "https://github.com/dbohdan/remarshal"
url "https://files.pythonhosted.org/packages/24/37/1f167687b2d9f3bac3e7e73508f86c7e6c1bf26a37ca5443182c8f596625/remarshal-0.14.0.tar.gz"
sha256 "16425aa1575a271dd3705d812b06276eeedc3ac557e7fd28e06822ad14cd0667"
license "MIT"
revision OS.mac? ? 2 : 3
head "https://github.com/dbohdan/remarshal.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "5dbc82f8251611f4d764d4207a222e1c577004f8be4b068edac392a822e275e0"
sha256 cellar: :any, big_sur: "e80acb98ffa9b1810221849012cbb256fb576c2eaa7751a15d837f51b3e753a1"
sha256 cellar: :any, catalina: "c565d849e47622eb7a95f5a4dbbc560aeb706c4ebef9f916096137d316a544ed"
sha256 cellar: :any, mojave: "0eeefb705f7d7c83e76004df5c907b643b4ee296c24ee383c39e75490762523f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "37546ab0b67bb432f2548ce99f344adce24fa11eabe690b3446c2f44e27328ca" # linuxbrew-core
end
depends_on "poetry" => :build
depends_on "libyaml" # for faster PyYAML
depends_on "python@3.9"
depends_on "six"
conflicts_with "msgpack-tools", because: "both install 'json2msgpack' binary"
resource "cbor2" do
url "https://files.pythonhosted.org/packages/9e/25/9dd432c051010faea6a702cb85d0b53dc9d5414513866b6a73b3ac954092/cbor2-5.4.1.tar.gz"
sha256 "a8bf432f6cb595f50aeb8fed2a4aa3b3f7caa7f135fb57e4378eaa39242feac9"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz"
sha256 "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
end
resource "tomlkit" do
url "https://files.pythonhosted.org/packages/65/ed/7b7216101bc48627b630693b03392f33827901b81d4e1360a76515e3abc4/tomlkit-0.7.2.tar.gz"
sha256 "d7a454f319a7e9bd2e249f239168729327e4dd2d27b17dc68be264ad1ce36754"
end
resource "u-msgpack-python" do
url "https://files.pythonhosted.org/packages/62/94/a4f485b628310534d377b3e7cb6f85b8066dc823dbff0e4421fb4227fb7e/u-msgpack-python-2.7.1.tar.gz"
sha256 "b7e7d433cab77171a4c752875d91836f3040306bab5063fb6dbe11f64ea69551"
end
def install
venv = virtualenv_create(libexec, "python3")
venv.pip_install resources
system Formula["poetry"].opt_bin/"poetry", "build", "--format", "wheel", "--verbose", "--no-interaction"
venv.pip_install_and_link Dir["dist/remarshal-*.whl"].first
%w[toml yaml json msgpack].permutation(2).each do |informat, outformat|
bin.install_symlink "remarshal" => "#{informat}2#{outformat}"
end
end
test do
json = <<~EOS.chomp
{"foo.bar":"baz","qux":1}
EOS
yaml = <<~EOS.chomp
foo.bar: baz
qux: 1
EOS
toml = <<~EOS.chomp
"foo.bar" = "baz"
qux = 1
EOS
assert_equal yaml, pipe_output("#{bin}/remarshal -if=json -of=yaml", json)
assert_equal yaml, pipe_output("#{bin}/json2yaml", json)
assert_equal toml, pipe_output("#{bin}/remarshal -if=yaml -of=toml", yaml)
assert_equal toml, pipe_output("#{bin}/yaml2toml", yaml)
assert_equal json, pipe_output("#{bin}/remarshal -if=toml -of=json", toml).chomp
assert_equal json, pipe_output("#{bin}/toml2json", toml).chomp
assert_equal pipe_output("#{bin}/remarshal -if=yaml -of=msgpack", yaml),
pipe_output("#{bin}/remarshal -if=json -of=msgpack", json)
end
end
|
0x07CB/linuxbrew-core
|
Formula/mailcheck.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/mailcheck.rb
class Mailcheck < Formula
desc "Check multiple mailboxes/maildirs for mail"
homepage "https://mailcheck.sourceforge.io/"
url "https://downloads.sourceforge.net/project/mailcheck/mailcheck/1.91.2/mailcheck_1.91.2.tar.gz"
sha256 "6ca6da5c9f8cc2361d4b64226c7d9486ff0962602c321fc85b724babbbfa0a5c"
license "GPL-2.0"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "59d3c8716efff8670b81cec68c47b0663ffa079938ee6aae55078770564fa481"
sha256 cellar: :any_skip_relocation, catalina: "66fa586c21ec0cd9a842fcb99e8bbf822681c8858b864b14aa7d57ea89c47a99"
sha256 cellar: :any_skip_relocation, mojave: "7ea23945f9750c34d71ff05c5f41c0f5352e3eecaf1c7cf485d4f51096b9dd4e"
sha256 cellar: :any_skip_relocation, high_sierra: "c630704fee3dea86402e7486295a13601077bd991e45f23d3ac841c95a9c4474"
sha256 cellar: :any_skip_relocation, sierra: "8d33e3b08eef4dfaa7fa3d2c4e5f4a697cd2e5eb950c963f1f0845c0651da5ea"
sha256 cellar: :any_skip_relocation, el_capitan: "b7c134dc23431dfaa3f402b859b7154cab5e176711363bd884dc82ce896d7c7a"
sha256 cellar: :any_skip_relocation, yosemite: "242b05a6e9b8ccc1ac70e22cbf89bc33a885e726d32509fad6b34a3bee123945"
sha256 cellar: :any_skip_relocation, x86_64_linux: "bf25c7173600f92fb766d88b1a85e8662ced6c32c58410fc08fa519351fa2375" # linuxbrew-core
end
def install
system "make", "mailcheck"
bin.install "mailcheck"
man1.install "mailcheck.1"
etc.install "mailcheckrc"
end
end
|
0x07CB/linuxbrew-core
|
Formula/mpop.rb
|
class Mpop < Formula
desc "POP3 client"
homepage "https://marlam.de/mpop/"
url "https://marlam.de/mpop/releases/mpop-1.4.15.tar.xz"
sha256 "3f52b2b5d4bc58ed93cf0b1146cee4f74de81c2c07a25ee032efa659465a0270"
license "GPL-3.0-or-later"
livecheck do
url "https://marlam.de/mpop/download/"
regex(/href=.*?mpop[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "2f8a61fece9387f48d48100bd845a5d663c250692a87ea06821d4b6f23f6e2e0"
sha256 big_sur: "23ad8bc64b32e93f151df2005b1160fc46f6c039764e18c4a7a42ce4140c6350"
sha256 catalina: "0555359b5c2935c7646ed26596e4b731b037fcbf49cd01f94d533d7701e39825"
sha256 mojave: "ac8892c6d8ec4142a3bd053ec53b99d678a4069ee070f40a0232c36283641a10"
sha256 x86_64_linux: "d10d8a7e75b2dfd1c05bad7e92a870b934129317fedc3c37ec3f3f195d38f876" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gnutls"
depends_on "libidn2"
# Both of these patches are needed on top of 1.4.15 to fix build on macOS.
# Remove in next release. Build dependencies autoconf and automake can also
# be removed in next release, as well as the autoreconf call in the install block.
# See https://github.com/marlam/mpop-mirror/issues/9
patch do
url "https://git.marlam.de/gitweb/?p=mpop.git;a=patch;h=68693b7da5d037ac31954db00c210daa28f2ea74"
sha256 "f6bc137aaa6c8bcf6b608167108e2d2d4d255f61f7323d789da4cd028ada84a2"
end
patch do
url "https://git.marlam.de/gitweb/?p=mpop.git;a=patch;h=64f8dc2b39d9e967e09b234993e096f4441ae87a"
sha256 "f920d7897a38de14f30388cc3f62200992ab5bd054e5b250085af013590b3607"
end
def install
system "autoreconf", "-ivf"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/mpop --version")
end
end
|
0x07CB/linuxbrew-core
|
Formula/the_platinum_searcher.rb
|
class ThePlatinumSearcher < Formula
desc "Multi-platform code-search similar to ack and ag"
homepage "https://github.com/monochromegane/the_platinum_searcher"
url "https://github.com/monochromegane/the_platinum_searcher/archive/v2.2.0.tar.gz"
sha256 "3d5412208644b13723b2b7ca4af0870d25c654e3a76feee846164c51b88240b0"
license "MIT"
head "https://github.com/monochromegane/the_platinum_searcher.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0f3097b2d88f4b8479ecb3e3439f6688656fc1c5e20f18a4c300edf9ea953874"
sha256 cellar: :any_skip_relocation, big_sur: "63cc973af4c1fc612acb86c7a928f1680f84db7edfae52f374b95925c00761dc"
sha256 cellar: :any_skip_relocation, catalina: "79066cac44fd6cd21b8feadc9737045f98846832f15bd2a2e1fdaae3a8165e6d"
sha256 cellar: :any_skip_relocation, mojave: "6b7fb2ff2ca2b5a0d264a7733a59eb0e1b68e211d15a261f6bbcab5664bb6ff7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "fa025f9ae8524b5d0505d5b31c15a178f91e93444ee5b3b416ccd9680a790313" # linuxbrew-core
end
depends_on "go" => :build
# Patch to remove godep dependency. Remove when this is merged into release:
# https://github.com/monochromegane/the_platinum_searcher/pull/211
patch do
url "https://github.com/monochromegane/the_platinum_searcher/commit/763f368fe26fa44a12e1a37598185322aa30ba8f.patch?full_index=1"
sha256 "2ee0f53065663f22f3c44b30c5804e37b8cb49200a30c4513b9ef668441dd543"
end
def install
system "go", "build", *std_go_args, "-o", bin/"pt", "./cmd/pt"
end
test do
path = testpath/"hello_world.txt"
path.write "Hello World!"
lines = `#{bin}/pt 'Hello World!' #{path}`.strip.split(":")
assert_equal "Hello World!", lines[2]
end
end
|
0x07CB/linuxbrew-core
|
Formula/cassandra-reaper.rb
|
class CassandraReaper < Formula
desc "Management interface for Cassandra"
homepage "https://cassandra-reaper.io/"
url "https://github.com/thelastpickle/cassandra-reaper/releases/download/2.3.1/cassandra-reaper-2.3.1-release.tar.gz"
sha256 "3a6633e43ea99d295f61067f948d9918689589d70e09a541310c4c9fa9ecc268"
license "Apache-2.0"
depends_on arch: :x86_64 # openjdk@8 does not support ARM
depends_on "openjdk@8"
def install
prefix.install "bin"
etc.install "resource" => "cassandra-reaper"
share.install "server/target" => "cassandra-reaper"
inreplace Dir[etc/"cassandra-reaper/*.yaml"], " /var/log", " #{var}/log"
end
service do
run opt_bin/"cassandra-reaper"
environment_variables JAVA_HOME: Formula["openjdk@8"].opt_prefix
keep_alive true
error_log_path var/"log/cassandra-reaper/service.err"
log_path var/"log/cassandra-reaper/service.log"
end
test do
ENV["JAVA_HOME"] = Formula["openjdk@8"].opt_prefix
cp etc/"cassandra-reaper/cassandra-reaper.yaml", testpath
port = free_port
inreplace "cassandra-reaper.yaml" do |s|
s.gsub! "port: 8080", "port: #{port}"
s.gsub! "port: 8081", "port: #{free_port}"
end
fork do
exec "#{bin}/cassandra-reaper", "#{testpath}/cassandra-reaper.yaml"
end
sleep 30
assert_match "200 OK", shell_output("curl -Im3 -o- http://localhost:#{port}/webui/login.html")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libsmf.rb
|
class Libsmf < Formula
desc "C library for handling SMF ('*.mid') files"
homepage "https://sourceforge.net/projects/libsmf/"
url "https://downloads.sourceforge.net/project/libsmf/libsmf/1.3/libsmf-1.3.tar.gz"
sha256 "d3549f15de94ac8905ad365639ac6a2689cb1b51fdfa02d77fa6640001b18099"
revision 1
bottle do
sha256 cellar: :any, big_sur: "02243fbcfb6de40f0c04b2341132e19c946be2b9fdf017f1838b3043aeddcedb"
sha256 cellar: :any, catalina: "fa858ef4b6b179d578663bbdb0d5c7490ea75a3921713e577a7f848faa99b601"
sha256 cellar: :any, mojave: "bbe040e330a998499e078129097a07f2c5de9fff9c5f26a638e6f5248badda3b"
sha256 cellar: :any, high_sierra: "7a4b394b51e89bd781fcce0514b3cc58656da63fa2e317186e47828e2c271320"
sha256 cellar: :any, sierra: "45aedd028eb76b2dfbb6fa3ba9b3fc809e7265411d5d7760997a71503ebae41a"
sha256 cellar: :any, x86_64_linux: "610023f4a71bc211b47e1ca618d61dc40cf476c9b0b7f785a98dce13a3e47ea7" # linuxbrew-core
end
depends_on "pkg-config" => :build
depends_on "glib"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/gron.rb
|
class Gron < Formula
desc "Make JSON greppable"
homepage "https://github.com/tomnomnom/gron"
url "https://github.com/tomnomnom/gron/archive/v0.6.1.tar.gz"
sha256 "eef150a425aa4eaa8b2e36a75ee400d4247525403f79e24ed32ccb346dc653ff"
license "MIT"
head "https://github.com/tomnomnom/gron.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d083132bef855096318805ebd6733993c444c1c6e5a203525184b5517f19da1a"
sha256 cellar: :any_skip_relocation, big_sur: "18f72c72d99203bd58c670642d6c33fa9e1f67e6861212ba21f98b975df406f0"
sha256 cellar: :any_skip_relocation, catalina: "dc6b46a589f618ab5b2e9d4aea01bd75f0326f585085c3b1f12e266dda2e7e5d"
sha256 cellar: :any_skip_relocation, mojave: "2a0ad03c4c7dfd2098758be2c5b65f16107ce8c67b586a4679f9d871aaee09a7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d845fa277fd9957de0401937879f4b2bf9c3d7ae5a228dc53f7f58db95c9857b" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-s -w"
end
test do
assert_equal <<~EOS, pipe_output("#{bin}/gron", "{\"foo\":1, \"bar\":2}")
json = {};
json.bar = 2;
json.foo = 1;
EOS
end
end
|
0x07CB/linuxbrew-core
|
Formula/karchive.rb
|
class Karchive < Formula
desc "Reading, creating, and manipulating file archives"
homepage "https://api.kde.org/frameworks/karchive/html/index.html"
url "https://download.kde.org/stable/frameworks/5.87/karchive-5.87.0.tar.xz"
sha256 "103f2e8a60b50683ed626d3c9c29c99ced3c55d20a9f5d1cfd0a576e7dc61c35"
license all_of: [
"BSD-2-Clause",
"LGPL-2.0-only",
"LGPL-2.0-or-later",
any_of: ["LGPL-2.0-only", "LGPL-3.0-only"],
]
head "https://invent.kde.org/frameworks/karchive.git", branch: "master"
# We check the tags from the `head` repository because the latest stable
# version doesn't seem to be easily available elsewhere.
livecheck do
url :head
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "382cd1e7c986caf9c193a509ec7e08eeda49e38a11caeba1f9fb38f777a8db36"
sha256 cellar: :any, big_sur: "9dbf24b216359a30749add98de038853aeea7ade8156d25160cde8f941c06d7a"
sha256 cellar: :any, catalina: "3acce027ea727bb256609b05a127eaacf5234e8c57ae9955669120c27bd1fb1d"
sha256 cellar: :any, mojave: "4509c01f7b0b035da8bfee3760330747de6c5f5916a353855d12516ec166c9e0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "40b57df5716b3dc33bbc903c50543564f7d6e21876f26e1580a8d86067cc5d5a" # linuxbrew-core
end
depends_on "cmake" => [:build, :test]
depends_on "doxygen" => :build
depends_on "extra-cmake-modules" => [:build, :test]
depends_on "graphviz" => :build
depends_on "qt@5"
depends_on "xz"
uses_from_macos "bzip2"
uses_from_macos "zlib"
on_linux do
depends_on "gcc"
end
fails_with gcc: "5"
def install
args = std_cmake_args
args << "-DBUILD_TESTING=OFF"
args << "-DBUILD_QCH=ON"
system "cmake", "-S", ".", "-B", "build", *args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
pkgshare.install "examples"
end
test do
ENV.delete "CPATH"
args = std_cmake_args
args << "-DQt5Core_DIR=#{Formula["qt@5"].opt_prefix/"lib/cmake/Qt5Core"}"
%w[bzip2gzip
helloworld
tarlocalfiles
unzipper].each do |test_name|
mkdir test_name.to_s do
system "cmake", (pkgshare/"examples/#{test_name}"), *args
system "make"
end
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/neovim-qt.rb
|
class NeovimQt < Formula
desc "Neovim GUI, in Qt5"
homepage "https://github.com/equalsraf/neovim-qt"
url "https://github.com/equalsraf/neovim-qt/archive/v0.2.16.1.tar.gz"
sha256 "971d4597b40df2756b313afe1996f07915643e8bf10efe416b64cc337e4faf2a"
license "ISC"
head "https://github.com/equalsraf/neovim-qt.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "2459483bd8c8a6d9520a729b3c7b37881908fce5da4b01755d42ac4370bf350e"
sha256 cellar: :any, big_sur: "42019f88da4ede0e143b06779a6d89c3c02c7b61e5029e97a11966ac62e8a4a8"
sha256 cellar: :any, catalina: "14c3958fc58680157c242535783da6b4979667630ca634983ab30700f220f455"
sha256 cellar: :any, mojave: "787697eae5c8c23f259fada57c9f3ea2b54c2db356f0635d5982dc2041341c81"
sha256 x86_64_linux: "23dada7f611b7e124eeb7ac6795028ced6da817e6286250e0dd8dc9b8d9c67bb" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "neovim-remote" => :test
depends_on "neovim"
depends_on "qt@5"
on_linux do
depends_on "gcc"
end
fails_with gcc: "5"
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DUSE_SYSTEM_MSGPACK=ON"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
if OS.mac?
prefix.install bin/"nvim-qt.app"
bin.install_symlink prefix/"nvim-qt.app/Contents/MacOS/nvim-qt"
end
end
test do
# Disable tests in CI environment:
# qt.qpa.xcb: could not connect to display
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]
# Same test as Formula/neovim.rb
testfile = testpath/"test.txt"
testserver = testpath/"nvim.sock"
testcommand = "s/Vim/Neovim/g"
testinput = "Hello World from Vim!!"
testexpected = "Hello World from Neovim!!"
testfile.write(testinput)
nvr_opts = ["--nostart", "--servername", testserver]
ohai "#{bin}/nvim-qt --nofork -- --listen #{testserver}"
nvimqt_pid = spawn bin/"nvim-qt", "--nofork", "--", "--listen", testserver
sleep 10
system "nvr", *nvr_opts, "--remote", testfile
system "nvr", *nvr_opts, "-c", testcommand
system "nvr", *nvr_opts, "-c", "w"
assert_equal testexpected, testfile.read.chomp
system "nvr", *nvr_opts, "-c", "call GuiClose()"
Process.wait nvimqt_pid
end
end
|
0x07CB/linuxbrew-core
|
Formula/docbook2x.rb
|
class Docbook2x < Formula
desc "Convert DocBook to UNIX manpages and GNU TeXinfo"
homepage "https://docbook2x.sourceforge.io/"
url "https://downloads.sourceforge.net/project/docbook2x/docbook2x/0.8.8/docbook2X-0.8.8.tar.gz"
sha256 "4077757d367a9d1b1427e8d5dfc3c49d993e90deabc6df23d05cfe9cd2fcdc45"
revision 3 unless OS.mac?
livecheck do
url :stable
regex(%r{url=.*?/docbook2X[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "88732999a070c6a9f609c5740fcdf7ed6c014be05555a9aea867e1a69b71aeec"
sha256 cellar: :any_skip_relocation, big_sur: "9a9d1f18cb66569bdebd729119d64719a8e4990ceab99a10a395d61eea3217ae"
sha256 cellar: :any_skip_relocation, catalina: "a7562a999301c0879be6f39bd031bb886e68ca56c8aca08b1977eaf1e2927496"
sha256 cellar: :any_skip_relocation, mojave: "2009056af30fb2a08a751e055fbdec14d49b4bc51da34cb63737b22b4b4d7784"
sha256 cellar: :any_skip_relocation, high_sierra: "81734088203909fc5db96462d14116596058910cd1b7ab67389a7bf93c9bae63"
sha256 cellar: :any_skip_relocation, sierra: "a1110d4bd90cecf9ce8edacc27a3edc84dfcd4db7ab50b67269af0eb6a9bb00a"
sha256 cellar: :any_skip_relocation, el_capitan: "acfdd1c80cb523b213dea0125819b1b6fc783d6d740cc8fc0047f44756b57889"
sha256 cellar: :any_skip_relocation, yosemite: "e3efe4afe190e126174c6e3bec0a9feb4ad37ddd0ecaef778b1e8df8a60e8717"
sha256 cellar: :any_skip_relocation, x86_64_linux: "60e7fec19c3fe52b198744b2f5b2962d63522f9dc0cecfe8ae91c17910bbe8a7" # linuxbrew-core
end
depends_on "docbook"
uses_from_macos "libxslt"
uses_from_macos "perl"
on_linux do
resource "XML::NamespaceSupport" do
url "https://cpan.metacpan.org/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-1.12.tar.gz"
sha256 "47e995859f8dd0413aa3f22d350c4a62da652e854267aa0586ae544ae2bae5ef"
end
resource "XML::Parser" do
url "https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz"
sha256 "1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216"
end
resource "XML::SAX::Exception" do
url "https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-Base-1.09.tar.gz"
sha256 "66cb355ba4ef47c10ca738bd35999723644386ac853abbeb5132841f5e8a2ad0"
end
resource "XML::SAX::ParserFactory" do
url "https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-1.02.tar.gz"
sha256 "4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a"
end
end
def install
if OS.linux?
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
resources.each do |res|
res.stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make", "PERL5LIB=#{ENV["PERL5LIB"]}"
system "make", "install"
end
end
end
inreplace "perl/db2x_xsltproc.pl", "http://docbook2x.sf.net/latest/xslt", "#{share}/docbook2X/xslt"
inreplace "configure", "${prefix}", prefix
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
bin.env_script_all_files libexec/"bin", PERL5LIB: ENV["PERL5LIB"] if OS.linux?
end
test do
ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
(testpath/"brew.1.xml").write <<~EOS
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<refentry id='brew1'>
<refmeta>
<refentrytitle>brew</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>brew</refname>
<refpurpose>The missing package manager for macOS</refpurpose>
</refnamediv>
</refentry>
EOS
system bin/"docbook2man", testpath/"brew.1.xml"
assert_predicate testpath/"brew.1", :exist?, "Failed to create man page!"
end
end
|
0x07CB/linuxbrew-core
|
Formula/fennel.rb
|
<filename>Formula/fennel.rb
class Fennel < Formula
desc "Lua Lisp Language"
homepage "https://fennel-lang.org"
url "https://github.com/bakpakin/Fennel/archive/0.10.0.tar.gz"
sha256 "407d47ae50e9d7a756f47b7bd81c4bdcb0b24c40322b496e7fe7357ae1eee6e3"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "61413fc779425837a7498ece98d85016b3a5d26f1ffb5099f6363afe058b2290" # linuxbrew-core
end
depends_on "lua"
def install
system "make", "fennel"
bin.install "fennel"
end
test do
assert_match "hello, world!", shell_output("#{bin}/fennel -e '(print \"hello, world!\")'")
end
end
|
0x07CB/linuxbrew-core
|
Formula/metis.rb
|
class Metis < Formula
desc "Programs that partition graphs and order matrices"
homepage "http://glaros.dtc.umn.edu/gkhome/views/metis"
url "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz"
sha256 "76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2"
livecheck do
url "http://glaros.dtc.umn.edu/gkhome/metis/metis/download"
regex(%r{href=.*?/metis[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "ea93856908a2c1c60023dd2f849339d479b20ab4ae6d51623f9496f64993ca20"
sha256 cellar: :any, big_sur: "bca0197271b673ba235c37334494b47250c9732e9a0164d8ee79948fc3cd4308"
sha256 cellar: :any, catalina: "b410b124973bf31beb58806d4050b8dda1fb3dca679fc3443514025200fd4a37"
sha256 cellar: :any, mojave: "f3cdcf0cc5af4ddd27a4550d4a73cffcb34058fe34604b09d453610460d24465"
sha256 cellar: :any, high_sierra: "88b6965d941a87044150238387971c4bb94ed2ffca327affccaf311d666a2b4b"
sha256 cellar: :any, sierra: "9c8deed80ece8c24e7ebccbce8410557b27afe711d3f59fccb7d781254d0cc34"
sha256 cellar: :any, el_capitan: "54f75262475744bc6ad3ba66ac801e03c18bbac00a9bcf0ca9d05853f2022498"
sha256 cellar: :any, yosemite: "b33c2fc2c8a1cdb9f48faf41201bdc6384090b8dbd6ed3eecd05264eb6431c0b"
sha256 cellar: :any, x86_64_linux: "5bae428970f681f9bea501461d755d60127ab380bc0572b35156c4733021df22" # linuxbrew-core
end
depends_on "cmake" => :build
def install
system "make", "config", "prefix=#{prefix}", "shared=1"
system "make", "install"
pkgshare.install "graphs"
end
test do
["4elt", "copter2", "mdual"].each do |g|
cp pkgshare/"graphs/#{g}.graph", testpath
system "#{bin}/graphchk", "#{g}.graph"
system "#{bin}/gpmetis", "#{g}.graph", "2"
system "#{bin}/ndmetis", "#{g}.graph"
end
cp [pkgshare/"graphs/test.mgraph", pkgshare/"graphs/metis.mesh"], testpath
system "#{bin}/gpmetis", "test.mgraph", "2"
system "#{bin}/mpmetis", "metis.mesh", "2"
end
end
|
0x07CB/linuxbrew-core
|
Formula/elixir-build.rb
|
<reponame>0x07CB/linuxbrew-core
class ElixirBuild < Formula
desc "Elixir version of ruby-build"
homepage "https://github.com/mururu/elixir-build"
url "https://github.com/mururu/elixir-build/archive/v20141001.tar.gz"
sha256 "825637780a580b7ebe8c5265a43d37ceff9f3876e771aa2f824079e504ad7347"
license "MIT"
head "https://github.com/mururu/elixir-build.git"
conflicts_with "narwhal", because: "both install `json` binaries"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
system "#{bin}/elixir-build", "--version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/assimp.rb
|
class Assimp < Formula
desc "Portable library for importing many well-known 3D model formats"
homepage "https://www.assimp.org/"
url "https://github.com/assimp/assimp/archive/v5.0.1.tar.gz"
sha256 "11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc"
license :cannot_represent
head "https://github.com/assimp/assimp.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "0571a9c07e7166cbfbd2c12b17f121c718204491501f268cdd904791df3c3697"
sha256 cellar: :any, big_sur: "8cd36113e1e7db18e625e652a522374bf6158306254f31627f2e8f067ae665db"
sha256 cellar: :any, catalina: "b2450bc0cc287a25a2e4ca42ff229ee104a6de51ef3a8cc02603850572126f18"
sha256 cellar: :any, mojave: "4ee11342b9d284810e88828be1662ee5be09a161f2c1353648e63255bbf4375b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2e3ac1d327084657319b78eb9c6f6e9ca6b8d700ca0dc59461676805be2fa733" # linuxbrew-core
end
depends_on "cmake" => :build
uses_from_macos "zlib"
def install
args = std_cmake_args
args << "-DASSIMP_BUILD_TESTS=OFF"
args << "-DCMAKE_INSTALL_RPATH=#{rpath}"
system "cmake", *args
system "make", "install"
end
test do
# Library test.
(testpath/"test.cpp").write <<~EOS
#include <assimp/Importer.hpp>
int main() {
Assimp::Importer importer;
return 0;
}
EOS
system ENV.cc, "-std=c++11", "test.cpp", "-L#{lib}", "-lassimp", "-o", "test"
system "./test"
# Application test.
(testpath/"test.obj").write <<~EOS
# WaveFront .obj file - a single square based pyramid
# Start a new group:
g MySquareBasedPyramid
# List of vertices:
# Front left
v -0.5 0 0.5
# Front right
v 0.5 0 0.5
# Back right
v 0.5 0 -0.5
# Back left
v -0.5 0 -0.5
# Top point (top of pyramid).
v 0 1 0
# List of faces:
# Square base (note: normals are placed anti-clockwise).
f 4 3 2 1
# Triangle on front
f 1 2 5
# Triangle on back
f 3 4 5
# Triangle on left side
f 4 1 5
# Triangle on right side
f 2 3 5
EOS
system bin/"assimp", "export", "test.obj", "test.ply"
end
end
|
0x07CB/linuxbrew-core
|
Formula/fswatch.rb
|
<filename>Formula/fswatch.rb
class Fswatch < Formula
desc "Monitor a directory for changes and run a shell command"
homepage "https://github.com/emcrisostomo/fswatch"
url "https://github.com/emcrisostomo/fswatch/releases/download/1.16.0/fswatch-1.16.0.tar.gz"
sha256 "95ece85eb01af71e99afef0173755fcedb737b639163f8efc7fed674f6f5372f"
license all_of: ["GPL-3.0-or-later", "Apache-2.0"]
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "a9857b4d1cc1320e967edcc5ba5c61bd9215fac591204bc005bc89223f107228"
sha256 cellar: :any, big_sur: "f930656cf465723b282216767a932555efdfd6b75d0404cd904c52005fad53ac"
sha256 cellar: :any, catalina: "a5df0020481ef351591515771abd877adc2968061ce41f4b6429f13d6ab06d30"
sha256 cellar: :any, mojave: "4423be79c01f66ffea513d6dcf8758bb9c1a005f77823620c6d93ec6f0bb3da2"
sha256 x86_64_linux: "f1970fcf18da765433d64fc6430487549173e8bdaf296b28270b3d8d9900d74e" # linuxbrew-core
end
def install
ENV.cxx11
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules"
system "make", "install"
end
test do
system bin/"fswatch", "-h"
end
end
|
0x07CB/linuxbrew-core
|
Formula/txt2tags.rb
|
<reponame>0x07CB/linuxbrew-core
class Txt2tags < Formula
include Language::Python::Virtualenv
desc "Conversion tool to generating several file formats"
homepage "https://txt2tags.org/"
url "https://files.pythonhosted.org/packages/0e/80/dc4215b549ddbe1d1251bc4cd47ad6f4a65e1f9803815997817ff297d22e/txt2tags-3.7.tar.gz"
sha256 "27969387206d12b4e4a0eb13d0d5dd957d71dbb932451b0dceeab5e3dbb6178a"
revision 3
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "5dfd365914bcf32df61972239ce4e158aa04282f05aefe898b648842b4c37ab0"
sha256 cellar: :any_skip_relocation, big_sur: "2d19d074b099ee8318e3d55f291d6b02de4130a5d643120e03e0dd438c9a6311"
sha256 cellar: :any_skip_relocation, catalina: "2d19d074b099ee8318e3d55f291d6b02de4130a5d643120e03e0dd438c9a6311"
sha256 cellar: :any_skip_relocation, mojave: "2d19d074b099ee8318e3d55f291d6b02de4130a5d643120e03e0dd438c9a6311"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f9b5979bbd085fa0318c11540cf422e3587a9fca6cd51a4eeb4ef2da98d3b27e" # linuxbrew-core
end
depends_on "python@3.10"
def install
virtualenv_install_with_resources
end
test do
(testpath/"test.txt").write("\n= Title =")
system bin/"txt2tags", "-t", "html", "--no-headers", "test.txt"
assert_match "<h1>Title</h1>", File.read("test.html")
end
end
|
0x07CB/linuxbrew-core
|
Formula/toml11.rb
|
class Toml11 < Formula
desc "TOML for Modern C++"
homepage "https://github.com/ToruNiina/toml11"
url "https://github.com/ToruNiina/toml11/archive/refs/tags/v3.7.0.tar.gz"
sha256 "a0b6bec77c0e418eea7d270a4437510884f2fe8f61e7ab121729624f04c4b58e"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "f599c7820bc826902f7466f3bf72bf3b0765bb8d80618a52ed7e22eb1b313ce3" # linuxbrew-core
sha256 cellar: :any_skip_relocation, all: "f599c7820bc826902f7466f3bf72bf3b0765bb8d80618a52ed7e22eb1b313ce3"
end
depends_on "cmake" => :build
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
(testpath/"test.toml").write <<~EOS
test_str = "a test string"
EOS
(testpath/"test.cpp").write <<~EOS
#include "toml.hpp"
#include <iostream>
int main(int argc, char** argv) {
const auto data = toml::parse("test.toml");
const auto test_str = toml::find<std::string>(data, "test_str");
std::cout << "test_str = " << test_str << std::endl;
return 0;
}
EOS
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", "-I#{include}"
assert_equal "test_str = a test string\n", shell_output("./test")
end
end
|
0x07CB/linuxbrew-core
|
Formula/k3sup.rb
|
class K3sup < Formula
desc "Utility to create k3s clusters on any local or remote VM"
homepage "https://k3sup.dev"
url "https://github.com/alexellis/k3sup.git",
tag: "0.11.0",
revision: "fd9dfeaa6cd32f0d048f33705a04c14ca4aa3550"
license "MIT"
head "https://github.com/alexellis/k3sup.git"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "44254c499b99bd16a2238c842d86cc67b35b69eb82fe74fa95bff35752ad9faa"
sha256 cellar: :any_skip_relocation, big_sur: "b22624a0ef6adf2a4f98555575bce03fc087f9b997d0df9b386234af8a32cd0a"
sha256 cellar: :any_skip_relocation, catalina: "7aba6d1d734e22a29ae782cc843b587dd7acb39a8fe4e534ced37044befaa8ac"
sha256 cellar: :any_skip_relocation, mojave: "2095dcbf2b5ec52b588ff506148efe627bf1c1b84b48b29406897eb5b40ceaec"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c8bb336d418b0de5e0f9a42cd6e6b2af4bf20d76051581a9d7b53157c3391eaf" # linuxbrew-core
end
depends_on "go" => :build
def install
ldflags = %W[
-s -w
-X github.com/alexellis/k3sup/cmd.Version=#{version}
-X github.com/alexellis/k3sup/cmd.GitCommit=#{Utils.git_short_head}
]
system "go", "build", "-ldflags", ldflags.join(" "), *std_go_args
end
test do
output = shell_output("#{bin}/k3sup install 2>&1", 1).split("\n").pop
assert_match "unable to load the ssh key", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/lrzip.rb
|
<gh_stars>100-1000
class Lrzip < Formula
desc "Compression program with a very high compression ratio"
homepage "http://lrzip.kolivas.org"
url "http://ck.kolivas.org/apps/lrzip/lrzip-0.641.tar.xz"
sha256 "2c6389a513a05cba3bcc18ca10ca820d617518f5ac6171e960cda476b5553e7e"
license "GPL-2.0-or-later"
livecheck do
url "http://ck.kolivas.org/apps/lrzip/"
regex(/href=.*?lrzip[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "d9e67f4c880ecfe1e59f0714073f1dab6ce921a0585e763ab009bac21d545335"
sha256 cellar: :any, big_sur: "33d561fad2bba643625d358fc65cfa2d8f37ae51d3329887da76e884d43b1515"
sha256 cellar: :any, catalina: "701705808812d442dbd211235510a039a53cd4de9a4b28c014da5ad8a000014d"
sha256 cellar: :any, mojave: "a3230ecfa68e08deb5f1414cb67736cffcde179ba34748df8e0fcdcb0d2c1ef7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "<KEY>" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "nasm" => :build if Hardware::CPU.intel?
depends_on "pkg-config" => :build
depends_on "lz4"
depends_on "lzo"
uses_from_macos "bzip2"
uses_from_macos "zlib"
def install
# Attempting to build the ASM/x86 folder as a compilation unit fails (even on Intel). Removing this compilation
# unit doesn't disable ASM usage though, since ASM is still included in the C build process.
# See https://github.com/ckolivas/lrzip/issues/193
inreplace "lzma/Makefile.am", "SUBDIRS = C ASM/x86", "SUBDIRS = C"
# Set nasm format correctly on macOS. See https://github.com/ckolivas/lrzip/pull/211
inreplace "configure.ac", "-f elf64", "-f macho64" if OS.mac?
system "autoreconf", "-ivf"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--disable-asm" unless Hardware::CPU.intel?
system "./configure", *args
system "make", "SHELL=bash"
system "make", "install"
end
test do
path = testpath/"data.txt"
original_contents = "." * 1000
path.write original_contents
# compress: data.txt -> data.txt.lrz
system bin/"lrzip", "-o", "#{path}.lrz", path
path.unlink
# decompress: data.txt.lrz -> data.txt
system bin/"lrzip", "-d", "#{path}.lrz"
assert_equal original_contents, path.read
end
end
|
0x07CB/linuxbrew-core
|
Formula/trojan-go.rb
|
<filename>Formula/trojan-go.rb<gh_stars>100-1000
class TrojanGo < Formula
desc "Trojan proxy in Go"
homepage "https://p4gefau1t.github.io/trojan-go/"
url "https://github.com/p4gefau1t/trojan-go.git",
tag: "v0.10.6",
revision: "2dc60f52e79ff8b910e78e444f1e80678e936450"
license "GPL-3.0-only"
head "https://github.com/p4gefau1t/trojan-go.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9762f85a824ff74c47da792549bee3b227c3abdc0cdb0e240cbedd353aefdfc1"
sha256 cellar: :any_skip_relocation, big_sur: "dbd2c6728ed016b1edec17347f6afb7b2c963838785e9579c597a84c84760782"
sha256 cellar: :any_skip_relocation, catalina: "032789eb1b094143bb9e0ff9ff2e322b4bed0e14e5a475459637dea749771a2a"
sha256 cellar: :any_skip_relocation, mojave: "938d529de6c2e30510d85e21a15507d1dd25c2775e4f15a23f3ebfe341403d9b"
end
depends_on "go" => :build
resource "geoip" do
url "https://github.com/v2fly/geoip/releases/download/202109102251/geoip.dat"
sha256 "ca9de5837b4ac6ceeb2a3f50d0996318011c0c7f8b5e11cb1fca6a5381f30862"
end
resource "geoip-only-cn-private" do
url "https://github.com/v2fly/geoip/releases/download/202109102251/geoip-only-cn-private.dat"
sha256 "5af05c2ba255e0388f9630fcd40e05314e1cf89b8228ce4d319c45b1de36bd7c"
end
resource "geosite" do
url "https://github.com/v2fly/domain-list-community/releases/download/20210910080130/dlc.dat"
sha256 "96376220c7e78076bfde7254ee138b7c620902c7731c1e642a8ac15a74fecb34"
end
def install
execpath = libexec/name
ldflags = %W[
-s -w
-X github.com/p4gefau1t/trojan-go/constant.Version=v#{version}
-X github.com/p4gefau1t/trojan-go/constant.Commit=#{Utils.git_head}
].join(" ")
system "go", "build", *std_go_args(ldflags: ldflags), "-o", execpath, "-tags=full"
(bin/"trojan-go").write_env_script execpath,
TROJAN_GO_LOCATION_ASSET: "${TROJAN_GO_LOCATION_ASSET:-#{pkgshare}}"
pkgetc.install "example/client.json" => "config.json"
resource("geoip").stage do
pkgshare.install "geoip.dat"
end
resource("geoip-only-cn-private").stage do
pkgshare.install "geoip-only-cn-private.dat"
end
resource("geosite").stage do
pkgshare.install "dlc.dat" => "geosite.dat"
end
end
def caveats
<<~EOS
An example config is installed to #{etc}/trojan-go/config.json
EOS
end
service do
run [bin/"trojan-go", "-config", etc/"trojan-go/config.json"]
run_type :immediate
keep_alive true
end
test do
require "webrick"
(testpath/"test.crt").write <<~EOS
-----BEGIN CERTIFICATE-----
MIIBuzCCASQCCQDC8CtpZ04+pTANBgkqhkiG9w0BAQsFADAhMQswCQYDVQQGEwJV
UzESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTIxMDUxMDE0MjEwNFoYDzIxMjEwNDE2
MTQyMTA0WjAhMQswCQYDVQQGEwJVUzESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0G
CSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8VJ+Gv2BRZajCUJ8LxGCGopO6w27xvwLu
U0ztdJibWCUUYxGk7IDnhnarbpD18CnZ0bqqUvu/gn1Lod5rHUuDdh2KdMefiugR
bu1jtKxi25kKfd+12nqph7dI9iuenroHUi5SBxCCKEQSo528/2QIeltTtBASNiKB
CBjdIu0wjwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBAGm7Lrhd7ZP91d7ezBLQZ3L/
xciCZUmm6DcMfGgel13aI8keYID5LPUoIJ8X3uoOu2SV7r4G53mJKtyyqUKfbMBG
DSq4rm8g2L9r5LdVYQFcvJjJxHGLMOvZUvm7NiQH1/zd73nHYhu+0yravaUkywEl
fhs+mOABareCK+xi+YT0
-----END CERTIFICATE-----
EOS
(testpath/"test.key").write <<~EOS
-----BEGIN PRIVATE KEY-----
<KEY>
-----END PRIVATE KEY-----
EOS
http_server_port = free_port
http_server = WEBrick::HTTPServer.new Port: http_server_port
Thread.new { http_server.start }
trojan_go_server_port = free_port
(testpath/"server.yaml").write <<~EOS
run-type: server
local-addr: 127.0.0.1
local-port: #{trojan_go_server_port}
remote-addr: 127.0.0.1
remote-port: #{http_server_port}
password:
- <PASSWORD>
ssl:
cert: #{testpath}/test.crt
key: #{testpath}/test.key
EOS
server = fork { exec "#{bin}/trojan-go", "-config", testpath/"server.yaml" }
trojan_go_client_port = free_port
(testpath/"client.yaml").write <<~EOS
run-type: client
local-addr: 127.0.0.1
local-port: #{trojan_go_client_port}
remote-addr: 127.0.0.1
remote-port: #{trojan_go_server_port}
password:
- <PASSWORD>
ssl:
verify: false
sni: localhost
EOS
client = fork { exec "#{bin}/trojan-go", "-config", testpath/"client.yaml" }
sleep 3
begin
system "curl", "--socks5", "127.0.0.1:#{trojan_go_client_port}", "github.com"
ensure
Process.kill 9, server
Process.wait server
Process.kill 9, client
Process.wait client
http_server.shutdown
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/libid3tag.rb
|
<gh_stars>100-1000
class Libid3tag < Formula
desc "ID3 tag manipulation library"
homepage "https://www.underbit.com/products/mad/"
url "https://downloads.sourceforge.net/project/mad/libid3tag/0.15.1b/libid3tag-0.15.1b.tar.gz"
sha256 "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"
license "GPL-2.0-only"
livecheck do
url :stable
regex(%r{url=.*?/libid3tag[._-]v?(\d+(?:\.\d+)+[a-z]?)\.t}i)
end
bottle do
rebuild 2
sha256 cellar: :any, arm64_big_sur: "cd7f36377060c5d16d3ee4d4ef5696ef47be82f4f0807172eef36f589cfad246"
sha256 cellar: :any, big_sur: "ef38d5804e95cf7f2096c9e8ec31e568170c6e238e43e7ddc3df914ded26f07b"
sha256 cellar: :any, catalina: "93b071dac99b3d85dac56e59af42e28d5de959bed9fd37a9a2178c02c8b20f17"
sha256 cellar: :any, mojave: "1186600473728830dbb65189d11912e2abf42dac5fcbf7ee38629784cc83b310"
sha256 cellar: :any, x86_64_linux: "84dc0ced0ad0ef6c7584ffe35bd20a137ac360c3ad820213ca4dd235f7403545" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
uses_from_macos "gperf"
uses_from_macos "zlib"
on_linux do
# fix build with gperf
# https://bugs.gentoo.org/show_bug.cgi?id=605158
patch do
url "https://gist.githubusercontent.com/iMichka/c23ea881388319b38838183754349bba/raw/4829ff0702a511f96026369676a11edd9a79ab30/libid3tag.diff"
sha256 "00f04427c6b3bab2bb8595f6df0ebc774b60031ee60428241801ccf6337d4c5d"
end
end
# patch for utf-16 (memory leaks), see https://bugs.launchpad.net/mixxx/+bug/403586
{
"utf16.patchlibid3tag-0.15.1b-utf16" => "487d0c531f3653f8e754d720729cf1cec1bce6e897b845fa61adaaf2668d1568",
"unknown-encoding" => "8b695c9c05e3885655b2e798326b804011615bc6c831cd55cdbacc456a6b9494",
"compat" => "88f486c3d263a4dd5bb556232dcfe2fba175b5124bcdd72aa6c30f562fc87d53",
"file-write" => "eff855cabd8a51866a29246a1b257da64f46aab72d4b8e163e2a4c0d15165bf1",
}.each do |name, sha|
patch do
url "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-#{name}.patch?id=56bd759df1d0"
sha256 sha
end
end
# typedef for 64-bit long + buffer overflow
{
"64bit-long" => "5f8b3d3419addf90977832b0a6e563acc2c8e243bb826ebb6d0ec573ec122e1b",
"fix_overflow" => "43ea3e0b324fb25802dae6410564c947ce1982243c781ef54b023f060c3b0ac4",
"tag" => "ca7262ddad158ab0be804429d705f8c6a1bb120371dec593323fa4876c1b277f",
}.each do |name, sha|
patch :p0 do
url "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-#{name}.patch?id=56bd759df1d0"
sha256 sha
end
end
# corrects "a cappella" typo
patch :p2 do
url "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-a_capella.patch?id=56bd759df1d0"
sha256 "5e86270ebb179d82acee686700d203e90f42e82beeed455b0163d8611657d395"
end
def install
# Run autoconf because config.{guess,sub} are outdated
touch "NEWS"
touch "AUTHORS"
touch "ChangeLog"
system "autoreconf", "-fiv"
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make", "install"
(lib+"pkgconfig/id3tag.pc").write pc_file
end
def pc_file
<<~EOS
prefix=#{opt_prefix}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: id3tag
Description: ID3 tag reading library
Version: #{version}
Requires:
Conflicts:
Libs: -L${libdir} -lid3tag -lz
Cflags: -I${includedir}
EOS
end
end
|
0x07CB/linuxbrew-core
|
Formula/pdftilecut.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/pdftilecut.rb<gh_stars>100-1000
class Pdftilecut < Formula
desc "Sub-divide a PDF page(s) into smaller pages so you can print them"
homepage "https://github.com/oxplot/pdftilecut"
url "https://github.com/oxplot/pdftilecut/archive/v0.5.tar.gz"
sha256 "48a34df2ab7a9fbf2f7dbec328fae9cd15fff8a77fe938675a9e2ee336357b58"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "11d7a2b31e405708a309b9f0faf98e508ca920e1ad03b061f088652ced8099e6"
sha256 cellar: :any, big_sur: "5cc898901cadbd6b08d17bb17ada4e636d00b8c3d4139343ccc26e8e701e4c81"
sha256 cellar: :any, catalina: "173f96dddd480ad7c18440dcc55fe1d23930b71b9ae38723e426214a13e03f15"
sha256 cellar: :any, mojave: "6da1ac7ea176188c87da04b27539d6a55e0a03736daf42959d577cca6a1c4014"
sha256 cellar: :any_skip_relocation, x86_64_linux: "768fe1056fcb98cc2a6420e840066f219b9dbe76531a0579186f5a7c96a66d24" # linuxbrew-core
end
depends_on "go" => :build
depends_on "jpeg-turbo"
depends_on "qpdf"
def install
system "go", "build", *std_go_args
end
test do
testpdf = test_fixtures("test.pdf")
system "#{bin}/pdftilecut", "-tile-size", "A6", "-in", testpdf, "-out", "split.pdf"
assert_predicate testpath/"split.pdf", :exist?, "Failed to create split.pdf"
end
end
|
0x07CB/linuxbrew-core
|
Formula/sng.rb
|
class Sng < Formula
desc "Enable lossless editing of PNGs via a textual representation"
homepage "https://sng.sourceforge.io/"
url "https://downloads.sourceforge.net/project/sng/sng-1.1.0.tar.gz"
sha256 "119c55870c1d1bdc65f7de9dbc62929ccb0c301c2fb79f77df63f5d477f34619"
license "Zlib"
revision 1
bottle do
rebuild 1
sha256 arm64_big_sur: "441c39690c079231af81a27fce72a0f0ea7cf982c9e48e320160ccc7304486a0"
sha256 big_sur: "f0e4ce732890622d796d3ab7d5c2d078f9ad327e5d64bdf9d7625b15d7a38281"
sha256 catalina: "070137e810c2ea02cdb3727ef7fc0da31065762ed6fee972a33d8690fc43e051"
sha256 mojave: "de4c08894b82e37ff3fc07fd0ade38ede24bcf241757f0b6392ab2f4a5f87d67"
sha256 x86_64_linux: "0ce9666cfd5eea30852cfab6733bc7b4c5dd8b03d3beedc729e62acccb0813a6" # linuxbrew-core
end
depends_on "libpng"
depends_on "xorgrgb"
def install
system "./configure", "--prefix=#{prefix}", "--with-rgbtxt=#{Formula["xorgrgb"].share}/X11/rgb.txt"
system "make", "install"
end
test do
cp test_fixtures("test.png"), "test.png"
system bin/"sng", "test.png"
assert_includes File.read("test.sng"), "width: 8; height: 8; bitdepth: 8;"
end
end
|
0x07CB/linuxbrew-core
|
Formula/asciiquarium.rb
|
require "language/perl"
class Asciiquarium < Formula
include Language::Perl::Shebang
desc "Aquarium animation in ASCII art"
homepage "https://robobunny.com/projects/asciiquarium/html/"
url "https://robobunny.com/projects/asciiquarium/asciiquarium_1.1.tar.gz"
sha256 "1b08c6613525e75e87546f4e8984ab3b33f1e922080268c749f1777d56c9d361"
license "GPL-2.0-or-later"
revision 3
livecheck do
url "https://robobunny.com/projects/asciiquarium/"
regex(/href=.*?asciiquarium[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "8c9d6bd3efb4262f656cfc13688ab05f0170ef2722bed28a77e0857c2473750a"
sha256 cellar: :any, big_sur: "ed80b66a1dad41855acd00b13b9c0d038f5bd3d8aaf59a7875bf5f317d38bb11"
sha256 cellar: :any, catalina: "cfd54b1753a801f6d6e74bcebd384e9d8b1dd9a51eb5271ff0a76e0d392c41fa"
sha256 cellar: :any, mojave: "1e50254a2473ef040dafa627205372aad2077fcbd04c8e062fe92344c9936eeb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "042b96e7b18945a5e5085f72aea363d4d21640bf69b46f86179081d78953f9da" # linuxbrew-core
end
depends_on "ncurses"
depends_on "perl"
resource "Curses" do
url "https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/Curses-1.37.tar.gz"
sha256 "74707ae3ad19b35bbefda2b1d6bd31f57b40cdac8ab872171c8714c88954db20"
end
resource "Term::Animation" do
url "https://cpan.metacpan.org/authors/id/K/KB/KBAUCOM/Term-Animation-2.6.tar.gz"
sha256 "7d5c3c2d4f9b657a8b1dce7f5e2cbbe02ada2e97c72f3a0304bf3c99d084b045"
end
def install
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
resources.each do |r|
r.stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make"
system "make", "install"
end
end
# Disable dynamic selection of perl which may cause segfault when an
# incompatible perl is picked up.
# https://github.com/Homebrew/homebrew-core/issues/4936
rewrite_shebang detected_perl_shebang, "asciiquarium"
chmod 0755, "asciiquarium"
bin.install "asciiquarium"
bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"])
end
test do
on_linux do
return if ENV["HOMEBREW_GITHUB_ACTIONS"]
end
# This is difficult to test because:
# - There are no command line switches that make the process exit
# - The output is a constant stream of terminal control codes
# - Testing only if the binary exists can still result in failure
# The test process is as follows:
# - Spawn the process capturing stdout and the pid
# - Kill the process after there is some output
# - Ensure the start of the output matches what is expected
require "pty"
ENV["TERM"] = "xterm"
PTY.spawn(bin/"asciiquarium") do |stdout, stdin, _pid|
sleep 1
stdin.write "q"
output = begin
stdout.gets
rescue Errno::EIO
nil
end
assert_match "\e[?10", output[0..4]
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/jpeginfo.rb
|
<reponame>0x07CB/linuxbrew-core
class Jpeginfo < Formula
desc "Prints information and tests integrity of JPEG/JFIF files"
homepage "https://www.kokkonen.net/tjko/projects.html"
url "https://www.kokkonen.net/tjko/src/jpeginfo-1.6.1.tar.gz"
sha256 "629e31cf1da0fa1efe4a7cc54c67123a68f5024f3d8e864a30457aeaed1d7653"
license "GPL-2.0-or-later"
revision 1
head "https://github.com/tjko/jpeginfo.git"
livecheck do
url :homepage
regex(/href=.*?jpeginfo[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any, arm64_big_sur: "883d13008806a89bd05f612ffd27940a5985f47ad9c950af76f719b6a781bb1e"
sha256 cellar: :any, big_sur: "27bb3588438853fb065ef36885dfea66a2e066dddc7025ea8fd6295682ff8b83"
sha256 cellar: :any, catalina: "0f0cc493a38a1a701a51f6aa2cada9b8f248c228a72ce30c451d5cab2906e8c5"
sha256 cellar: :any, mojave: "71cbeda00d00f513847a88930a6851b00ab9811fb6ed37d0617eaee5e86decf3"
sha256 cellar: :any, x86_64_linux: "5d9f93af870fbb528f20afa17ce42b568c3bd854fe92c93c740b64a495998590" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "jpeg"
def install
ENV.deparallelize
# The ./configure file inside the tarball is too old to work with Xcode 12, regenerate:
system "autoconf", "--force"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/jpeginfo", "--help"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libcuefile.rb
|
<filename>Formula/libcuefile.rb
class Libcuefile < Formula
desc "Library to work with CUE files"
homepage "https://www.musepack.net/"
url "https://files.musepack.net/source/libcuefile_r475.tar.gz"
version "r475"
sha256 "b681ca6772b3f64010d24de57361faecf426ee6182f5969fcf29b3f649133fe7"
license "GPL-2.0"
livecheck do
url "https://www.musepack.net/index.php?pg=src"
regex(/href=.*?libcuefile[._-](r\d+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any, arm64_big_sur: "2d73e0ee1f734eb35034383fa5e0697ace0684f0a1586832613227a6769b07d6"
sha256 cellar: :any, big_sur: "2d4ea14db508f6439073daa64338f884249c7479af688ec91e4a286a3c42591e"
sha256 cellar: :any, catalina: "3069cf9b0261d8cedee8979348227f5c77a5c6dcb8942f9fbea20b3e3f190374"
sha256 cellar: :any, mojave: "1e64fe68ce178b904ac44a7a2c017a030c6f0ff87fb18b7c943c8c766f23d186"
sha256 cellar: :any, high_sierra: "a0b9b31c26ac9dc2704e71834259c0f9d0a12dce4ad4bbcdaae64fea5004ceae"
sha256 cellar: :any, sierra: "66ec2d9281a5459326a1b2d220b9f68fa241a6b9f8370324377af6751d60b7fd"
sha256 cellar: :any, el_capitan: "fc48e0953e3df489f37ee30214bd50b07020955b02f957a90c699474f09ef974"
sha256 cellar: :any, yosemite: "427a043ee4dc777743c80a836c5fa69c4de91ea2510f740db099224f95ed38b4"
sha256 cellar: :any, x86_64_linux: "e94f00b695fde97d790ff4a9743cfaae875893a83c664af983ebc40a160cbc1f" # linuxbrew-core
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
include.install "include/cuetools/"
end
end
|
0x07CB/linuxbrew-core
|
Formula/jid.rb
|
<filename>Formula/jid.rb<gh_stars>100-1000
class Jid < Formula
desc "Json incremental digger"
homepage "https://github.com/simeji/jid"
url "https://github.com/simeji/jid/archive/v0.7.6.tar.gz"
sha256 "0912050b3be3760804afaf7ecd6b42bfe79e7160066587fbc0afa5324b03fb48"
license "MIT"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "37f25dc38d57a971fb609224c33802bfa4213b58d825b188a67eb653af1c9e2f"
sha256 cellar: :any_skip_relocation, big_sur: "703bee89d514891dec82186680f2ee9837b1599721c3d68405fd4c72d015a811"
sha256 cellar: :any_skip_relocation, catalina: "0b45fe9c59facbc6b2bbacf4b52927934b09d6e2050ad3a5b5a32434a4bd4751"
sha256 cellar: :any_skip_relocation, mojave: "2980bf16f4376b7bdfc27e0e6bbe45d9e1f8aca8a143f6f7b6fd939eb6892617"
sha256 cellar: :any_skip_relocation, high_sierra: "d429ac5400fd67dcee12e5fe962e84f535858c7ecb3235ee01f8a54dc44e7a9e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a8fda694c17d6e1186fa50416922349cb02032332e27e623c0504260da5dce2b" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"jid", "cmd/jid/jid.go"
prefix.install_metafiles
end
test do
assert_match "jid version v#{version}", shell_output("#{bin}/jid --version")
end
end
|
0x07CB/linuxbrew-core
|
Formula/awsume.rb
|
<gh_stars>100-1000
class Awsume < Formula
include Language::Python::Virtualenv
desc "Utility for easily assuming AWS IAM roles from the command-line"
homepage "https://awsu.me"
url "https://files.pythonhosted.org/packages/2f/d4/2f9621851aa22e06b0242d1c5dc2fbeb6267d5beca92c0adf875438793c2/awsume-4.5.3.tar.gz"
sha256 "e94cc4c1d0f3cc0db8270572e2880c0641ce14cf226355bf42440b726bf453ef"
license "MIT"
revision 1
head "https://github.com/trek10inc/awsume.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "210b9496cf1db0eb9aee0d7635ea84f68595148a3debf35bda8c7ca53c0f2809"
sha256 cellar: :any_skip_relocation, big_sur: "5eb13db692e829105df6d6a3eed791e592161e888b8e0c03fd58e994db59f78a"
sha256 cellar: :any_skip_relocation, catalina: "f80c5c9be67fe1e07c3402f29c1ca9abe25c52a4d7224327300f59b299e87dcf"
sha256 cellar: :any_skip_relocation, mojave: "9dbe4b489474f9f08896f373c64e5ce1629395aa359715b382a1d376604d6888"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2ad27b95b14cba0c03e647a31e87b125619e77603d988bb2e0502f3a7008570e" # linuxbrew-core
end
depends_on "openssl@1.1"
depends_on "python@3.10"
depends_on "six"
uses_from_macos "sqlite"
resource "boto3" do
url "https://files.pythonhosted.org/packages/f1/25/4773ca66ec580636c4e8ab473c9e5375a266746f3dbfe4f85235b9c67211/boto3-1.18.62.tar.gz"
sha256 "364a0fd497147ff0e15327f653223b05e60a1afce002995e5b1106084355352e"
end
resource "botocore" do
url "https://files.pythonhosted.org/packages/60/dc/d214623d85eb3c8dcb26a60ea15df43ac81747bcb26db5cc957affb4c517/botocore-1.21.62.tar.gz"
sha256 "c92fee381c6f2771f7ec2bffaff2938b8a1c2a957560815a01ad77c975268fdd"
end
resource "colorama" do
url "https://files.pythonhosted.org/packages/1f/bb/5d3246097ab77fa083a61bd8d3d527b7ae063c7d8e8671b1cf8c4ec10cbe/colorama-0.4.4.tar.gz"
sha256 "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"
end
resource "jmespath" do
url "https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz"
sha256 "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
end
resource "pluggy" do
url "https://files.pythonhosted.org/packages/a1/16/db2d7de3474b6e37cbb9c008965ee63835bba517e22cdb8c35b5116b5ce1/pluggy-1.0.0.tar.gz"
sha256 "4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"
end
resource "psutil" do
url "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz"
sha256 "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz"
sha256 "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
end
resource "s3transfer" do
url "https://files.pythonhosted.org/packages/88/ef/4d1b3f52ae20a7e72151fde5c9f254cd83f8a49047351f34006e517e1655/s3transfer-0.5.0.tar.gz"
sha256 "50ed823e1dc5868ad40c8dc92072f757aa0e653a192845c94a3b676f4a62da4c"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/80/be/3ee43b6c5757cabea19e75b8f46eaf05a2f5144107d7db48c7cf3a864f73/urllib3-1.26.7.tar.gz"
sha256 "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
end
def install
virtualenv_install_with_resources
end
test do
assert_match version.to_s, shell_output("bash -c '. #{bin}/awsume -v 2>&1'")
file_path = File.expand_path("~/.awsume/config.yaml")
shell_output(File.exist?(file_path))
assert_match "PROFILE TYPE SOURCE MFA? REGION ACCOUNT",
shell_output("bash -c '. #{bin}/awsume --list-profiles 2>&1'")
end
end
|
0x07CB/linuxbrew-core
|
Formula/vtclock.rb
|
class Vtclock < Formula
desc "Text-mode fullscreen digital clock"
homepage "https://github.com/dse/vtclock"
url "https://github.com/dse/vtclock/archive/0.0.20161228.tar.gz"
sha256 "0148411febd672c34e436361f5969371ae5291bdc497c771af403a5ee85a78b4"
license "GPL-2.0-or-later"
version_scheme 1
head "https://github.com/dse/vtclock.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7ba3ce880fdedf82e166ed0f7f7a4124c57510680d5c591fd363ac14887618f5"
sha256 cellar: :any_skip_relocation, big_sur: "747b98b591c6a732012006db26bc8cdd871509e6407f557a1b616c54d2c2079d"
sha256 cellar: :any_skip_relocation, catalina: "77d6846683ebe827ad322e81cd281e79d28b5e93122aadf32c49a1566b1c9f2e"
sha256 cellar: :any_skip_relocation, mojave: "1f4d80e05dcf1c214a317d54057674f496ff0a063d9acaedc3e845d212c627bd"
end
depends_on "pkg-config" => :build
uses_from_macos "ncurses"
def install
system "make"
bin.install "vtclock"
end
test do
system "#{bin}/vtclock", "-h"
end
end
|
0x07CB/linuxbrew-core
|
Formula/jnettop.rb
|
class Jnettop < Formula
desc "View hosts/ports taking up the most network traffic"
homepage "https://web.archive.org/web/20161127214942/jnettop.kubs.info/wiki/"
url "https://downloads.sourceforge.net/project/jnettop/jnettop/0.13/jnettop-0.13.0.tar.gz"
sha256 "a005d6fa775a85ff9ee91386e25505d8bdd93bc65033f1928327c98f5e099a62"
license "GPL-2.0-or-later"
revision 2
livecheck do
url :stable
regex(%r{url=.*?/jnettop[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
rebuild 2
sha256 cellar: :any, arm64_big_sur: "1f1f3c5e26f7fc52b331300926a4aa93e1081b31cc20cb533f9b0791477cc101"
sha256 cellar: :any, big_sur: "1a077d39b05adcb4ba5a5e777e6ff054ad3b910876ff3d49172057f050e8b39c"
sha256 cellar: :any, catalina: "13d9effd79e9b18faa659af615a7b68c7a940adf5eaee5e30806553e1a237f0f"
sha256 cellar: :any, mojave: "5b4a91804760ca7e39c76cbd16cd7612ed002d429f8996004e1da49d92839c1a"
end
depends_on "pkg-config" => :build
depends_on "glib"
uses_from_macos "libpcap"
def install
# Work around "-Werror,-Wimplicit-function-declaration" issues with
# configure scripts on Xcode 12:
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
# Fix undefined reference to `g_thread_init'
if OS.linux?
inreplace "Makefile.in", "$(jnettop_LDFLAGS) $(jnettop_OBJECTS)",
"$(jnettop_OBJECTS) $(AM_LDFLAGS) $(LDFLAGS) $(jnettop_LDFLAGS)"
end
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--man=#{man}"
system "make", "install"
end
test do
system "#{bin}/jnettop", "-h"
end
end
|
0x07CB/linuxbrew-core
|
Formula/sentencepiece.rb
|
class Sentencepiece < Formula
desc "Unsupervised text tokenizer and detokenizer"
homepage "https://github.com/google/sentencepiece"
url "https://github.com/google/sentencepiece/archive/v0.1.96.tar.gz"
sha256 "5198f31c3bb25e685e9e68355a3bf67a1db23c9e8bdccc33dc015f496a44df7a"
license "Apache-2.0"
head "https://github.com/google/sentencepiece.git", branch: "master"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any, arm64_big_sur: "f7f3e11b9915fb85ac7af279eb89461781f1cb9ef849a3af6680b49b4a0a1f4e"
sha256 cellar: :any, big_sur: "eea4ce35e1bcfa7b5d82ba21071128f7afaa528aec2ebacff98fdc18afb7dde2"
sha256 cellar: :any, catalina: "2d6622948cbaf6f114b6bcacf179ff072ce647054161e081a04013b27cf547b4"
sha256 cellar: :any, mojave: "aabe9c776c900c63034f423c7c5d9983ff4cd0156199e2b9153f77a4f2961929"
end
depends_on "cmake" => :build
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make"
system "make", "install"
end
pkgshare.install "data"
end
test do
cp (pkgshare/"data/botchan.txt"), testpath
system "#{bin}/spm_train", "--input=botchan.txt", "--model_prefix=m", "--vocab_size=1000"
end
end
|
0x07CB/linuxbrew-core
|
Formula/jbake.rb
|
<reponame>0x07CB/linuxbrew-core
class Jbake < Formula
desc "Java based static site/blog generator"
homepage "https://jbake.org/"
url "https://github.com/jbake-org/jbake/releases/download/v2.6.7/jbake-2.6.7-bin.zip"
sha256 "8d9c2b70fbf26415c5b3e530088b8b7fd1d236d3ce2c98a9c03fff4734bced39"
license "MIT"
depends_on "openjdk"
def install
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.install libexec/"bin/jbake"
bin.env_script_all_files libexec/"bin", JAVA_HOME: Formula["openjdk"].opt_prefix
end
test do
assert_match "Usage: jbake", shell_output("#{bin}/jbake")
end
end
|
0x07CB/linuxbrew-core
|
Formula/saxon-b.rb
|
<reponame>0x07CB/linuxbrew-core
class SaxonB < Formula
desc "XSLT and XQuery processor"
homepage "https://saxon.sourceforge.io/"
url "https://downloads.sourceforge.net/project/saxon/Saxon-B/9.1.0.8/saxonb9-1-0-8j.zip"
version "9.1.0.8"
sha256 "92bcdc4a0680c7866fe5828adb92c714cfe88dcf3fa0caf5bf638fcc6d9369b4"
# We check the "Saxon-B" directory page since versions aren't present in the
# RSS feed as of writing.
livecheck do
url "https://sourceforge.net/projects/saxon/files/Saxon-B/"
strategy :page_match
regex(%r{href=.*?/v?(\d+(?:\.\d+)+)/?["' >]}i)
end
def install
(buildpath/"saxon-b").install Dir["*.jar", "doc", "notices"]
share.install Dir["*"]
end
end
|
0x07CB/linuxbrew-core
|
Formula/smartypants.rb
|
<filename>Formula/smartypants.rb
class Smartypants < Formula
desc "Typography prettifier"
homepage "https://daringfireball.net/projects/smartypants/"
url "https://daringfireball.net/projects/downloads/SmartyPants_1.5.1.zip"
sha256 "2813a12d8dd23f091399195edd7965e130103e439e2a14f298b75b253616d531"
livecheck do
url :homepage
regex(/href=.*?SmartyPants[._-]v?(\d+(?:\.\d+)+)\.zip/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "0a2ba46d5d61456e25f9844222df5afdc0844c33913d598d29e4e73216714df9" # linuxbrew-core
end
def install
bin.install "SmartyPants.pl" => "smartypants"
end
test do
assert_equal "“Give me a beer”, said Mike O’Connor",
pipe_output("#{bin}/smartypants",
%q("Give me a beer", said Mike O'Connor), 0)
end
end
|
0x07CB/linuxbrew-core
|
Formula/aws-elasticbeanstalk.rb
|
<reponame>0x07CB/linuxbrew-core
class AwsElasticbeanstalk < Formula
include Language::Python::Virtualenv
desc "Client for Amazon Elastic Beanstalk web service"
homepage "https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html"
url "https://files.pythonhosted.org/packages/f9/98/03bdafa884371e353d46c78b8fde72519b0f3848b408c300fa1ec13e1264/awsebcli-3.20.2.tar.gz"
sha256 "1621066fbb304d05fd26d99f2e12184d39f379ccd18bd76842440d7c9a892a29"
license "Apache-2.0"
revision 1
bottle do
sha256 cellar: :any, arm64_big_sur: "c0af95eddcd43b6345b535eb133438d01ea0cbc3313ad2c8fa8d0caf8dbaebe6"
sha256 cellar: :any, big_sur: "950a9c1d833da06d2b6e2d2084a8d14b3f1529e078f4d3855b23af690d6b3175"
sha256 cellar: :any, catalina: "b1482376338b0904eda1676e5f0b96b0d60e4bd99605a0cbdd3b382f85ff79d9"
sha256 cellar: :any, mojave: "0525a482142de1addc99f6061df6f2a5ce2d6ba781afd89b0439b5171ab4f247"
sha256 cellar: :any_skip_relocation, x86_64_linux: "da591567363819298769594e98f170fd2100da0e57982682e0b3cc4799640a60" # linuxbrew-core
end
depends_on "rust" => :build
depends_on "python@3.10"
uses_from_macos "libffi"
on_linux do
depends_on "pkg-config" => :build
end
resource "attrs" do
url "https://files.pythonhosted.org/packages/ed/d6/3ebca4ca65157c12bd08a63e20ac0bdc21ac7f3694040711f9fd073c0ffb/attrs-21.2.0.tar.gz"
sha256 "ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"
end
resource "bcrypt" do
url "https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz"
sha256 "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29"
end
resource "blessed" do
url "https://files.pythonhosted.org/packages/d2/44/13a1a790ff7433ad60f5d1a4867810e4411757ccc58fb1bf91465840d6ce/blessed-1.19.0.tar.gz"
sha256 "4db0f94e5761aea330b528e84a250027ffe996b5a94bf03e502600c9a5ad7a61"
end
resource "botocore" do
url "https://files.pythonhosted.org/packages/60/dc/d214623d85eb3c8dcb26a60ea15df43ac81747bcb26db5cc957affb4c517/botocore-1.21.62.tar.gz"
sha256 "c92fee381c6f2771f7ec2bffaff2938b8a1c2a957560815a01ad77c975268fdd"
end
resource "cached-property" do
url "https://files.pythonhosted.org/packages/61/2c/d21c1c23c2895c091fa7a91a54b6872098fea913526932d21902088a7c41/cached-property-1.5.2.tar.gz"
sha256 "9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130"
end
resource "cement" do
url "https://files.pythonhosted.org/packages/70/60/608f0b8975f4ee7deaaaa7052210d095e0b96e7cd3becdeede9bd13674a1/cement-2.8.2.tar.gz"
sha256 "8765ed052c061d74e4d0189addc33d268de544ca219b259d797741f725e422d2"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/6c/ae/d26450834f0acc9e3d1f74508da6df1551ceab6c2ce0766a593362d6d57f/certifi-2021.10.8.tar.gz"
sha256 "78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872"
end
resource "cffi" do
url "https://files.pythonhosted.org/packages/00/9e/92de7e1217ccc3d5f352ba21e52398372525765b2e0c4530e6eb2ba9282a/cffi-1.15.0.tar.gz"
sha256 "920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/9f/c5/334c019f92c26e59637bb42bd14a190428874b2b2de75a355da394cf16c1/charset-normalizer-2.0.7.tar.gz"
sha256 "e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0"
end
resource "colorama" do
url "https://files.pythonhosted.org/packages/82/75/f2a4c0c94c85e2693c229142eb448840fba0f9230111faa889d1f541d12d/colorama-0.4.3.tar.gz"
sha256 "e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1"
end
resource "cryptography" do
url "https://files.pythonhosted.org/packages/10/91/90b8d4cd611ac2aa526290ae4b4285aa5ea57ee191c63c2f3d04170d7683/cryptography-35.0.0.tar.gz"
sha256 "9933f28f70d0517686bd7de36166dda42094eac49415459d9bdf5e7df3e0086d"
end
resource "docker" do
url "https://files.pythonhosted.org/packages/fd/46/6f6116c30cb859a0cdb95444140e9fe0be0de455c9c83748ee421aec8274/docker-4.4.4.tar.gz"
sha256 "d3393c878f575d3a9ca3b94471a3c89a6d960b35feb92f033c0de36cc9d934db"
end
resource "docker-compose" do
url "https://files.pythonhosted.org/packages/0a/43/e71f087c308f7d7566449212ecaf3e02323e6dd0f5b9b6b0fb64cbfd4df6/docker-compose-1.25.5.tar.gz"
sha256 "7a2eb6d8173fdf408e505e6f7d497ac0b777388719542be9e49a0efd477a50c6"
end
resource "dockerpty" do
url "https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz"
sha256 "69a9d69d573a0daa31bcd1c0774eeed5c15c295fe719c61aca550ed1393156ce"
end
resource "docopt" do
url "https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz"
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
end
resource "future" do
url "https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz"
sha256 "e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz"
sha256 "9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
end
resource "jmespath" do
url "https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz"
sha256 "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
end
resource "jsonschema" do
url "https://files.pythonhosted.org/packages/69/11/a69e2a3c01b324a77d3a7c0570faa372e8448b666300c4117a516f8b1212/jsonschema-3.2.0.tar.gz"
sha256 "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"
end
resource "paramiko" do
url "https://files.pythonhosted.org/packages/dd/67/6b3a5f3d730b15b5ff77d13e6f05f9189ae44d8a8bad4967d16694eaac8b/paramiko-2.8.0.tar.gz"
sha256 "e673b10ee0f1c80d46182d3af7751d033d9b573dd7054d2d0aa46be186c3c1d2"
end
resource "pathspec" do
url "https://files.pythonhosted.org/packages/84/2a/bfee636b1e2f7d6e30dd74f49201ccfa5c3cf322d44929ecc6c137c486c5/pathspec-0.5.9.tar.gz"
sha256 "54a5eab895d89f342b52ba2bffe70930ef9f8d96e398cccf530d21fa0516a873"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "PyNaCl" do
url "https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz"
sha256 "54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505"
end
resource "pyrsistent" do
url "https://files.pythonhosted.org/packages/f4/d7/0fa558c4fb00f15aabc6d42d365fcca7a15fcc1091cd0f5784a14f390b7f/pyrsistent-0.18.0.tar.gz"
sha256 "773c781216f8c2900b42a7b638d5b517bb134ae1acbebe4d1e8f1f41ea60eb4b"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz"
sha256 "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
end
resource "semantic-version" do
url "https://files.pythonhosted.org/packages/d4/52/3be868c7ed1f408cb822bc92ce17ffe4e97d11c42caafce0589f05844dd0/semantic_version-2.8.5.tar.gz"
sha256 "d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54"
end
resource "six" do
url "https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz"
sha256 "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a"
end
resource "termcolor" do
url "https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz"
sha256 "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"
end
resource "texttable" do
url "https://files.pythonhosted.org/packages/d5/78/dbc2a5eab57a01fedaf975f2c16f04e76f09336dbeadb9994258aa0a2b1a/texttable-1.6.4.tar.gz"
sha256 "42ee7b9e15f7b225747c3fa08f43c5d6c83bc899f80ff9bae9319334824076e9"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/80/be/3ee43b6c5757cabea19e75b8f46eaf05a2f5144107d7db48c7cf3a864f73/urllib3-1.26.7.tar.gz"
sha256 "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
end
resource "wcwidth" do
url "https://files.pythonhosted.org/packages/25/9d/0acbed6e4a4be4fc99148f275488580968f44ddb5e69b8ceb53fc9df55a0/wcwidth-0.1.9.tar.gz"
sha256 "ee73862862a156bf77ff92b09034fc4825dd3af9cf81bc5b360668d425f3c5f1"
end
resource "websocket-client" do
url "https://files.pythonhosted.org/packages/48/bf/c706b56243f1641159ff211b51d3341024e1cdf63defc2b74595b6319039/websocket-client-0.59.0.tar.gz"
sha256 "d376bd60eace9d437ab6d7ee16f4ab4e821c9dae591e1b783c58ebd8aaf80c5c"
end
def install
virtualenv_install_with_resources
end
test do
output = shell_output("#{bin}/eb init --region=us-east-1 --profile=homebrew-test", 4)
assert_match("ERROR: InvalidProfileError - The config profile (homebrew-test) could not be found", output)
end
end
|
0x07CB/linuxbrew-core
|
Formula/uggconv.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/uggconv.rb
class Uggconv < Formula
desc "Universal Game Genie code converter"
homepage "https://wyrmcorp.com/software/uggconv/index.shtml"
url "https://wyrmcorp.com/software/uggconv/uggconv-1.0.tar.gz"
sha256 "9a215429bc692b38d88d11f38ec40f43713576193558cd8ca6c239541b1dd7b8"
# The homepage gives the status as "Final (will not be updated)" and it was
# last modified on 2001-12-12.
livecheck do
skip "No longer developed"
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "002cd504e9385234ab9b1b4595709ffccb2fda5d49c377add9c27eb422c04ed3"
sha256 cellar: :any_skip_relocation, big_sur: "820cca76f8c5618ba401a343644cffae2ece5526e0295dc29d0dd0f5f524789a"
sha256 cellar: :any_skip_relocation, catalina: "c1fc237ad27120a1804b37d765a47833d67bcd38cfa67be07aed808739021146"
sha256 cellar: :any_skip_relocation, mojave: "71b4a6ad5be4b5dbefe2c64dc17b6bcff00eedcf72070f4a22273ff1f0a392cd"
sha256 cellar: :any_skip_relocation, high_sierra: "ed41635e3235d763c9dcad68db2e390821af5a62ec6709fca8b9c5e9b5d0b995"
sha256 cellar: :any_skip_relocation, sierra: "a22594f94bf7baa1908bd1225f52f1db3dd01daa17f99038ecfbd60e22d12b5d"
sha256 cellar: :any_skip_relocation, el_capitan: "5ab8b271f2ccc17e5229921f01b92ff7b0c297908902c83d24612bb47592af3c"
sha256 cellar: :any_skip_relocation, yosemite: "a40a8a1adee9286acedba6e8eedf20bc53e4bf291fc73478bd3ba0314792c6ce"
sha256 cellar: :any_skip_relocation, x86_64_linux: "870b52f9831401649041b513817db058a8d100007e043ed797e0eaa6b01bce5d" # linuxbrew-core
end
def install
system "make"
bin.install "uggconv"
man1.install "uggconv.1"
end
test do
assert_equal "7E00CE:03 = D7DA-FE86\n",
shell_output("#{bin}/uggconv -s 7E00CE:03")
end
end
|
0x07CB/linuxbrew-core
|
Formula/burl.rb
|
<reponame>0x07CB/linuxbrew-core
class Burl < Formula
desc "Shell script wrapper that offers helpful shortcuts for curl(1)"
homepage "https://github.com/tj/burl"
url "https://github.com/tj/burl/archive/1.0.1.tar.gz"
sha256 "634949b7859ddf7c75a89123608998f8dac8ced8c601fa2c2717569caeaa54e5"
def install
bin.install "bin/burl"
end
test do
system "#{bin}/burl", "-I", "github.com"
end
end
|
0x07CB/linuxbrew-core
|
Formula/dcled.rb
|
<filename>Formula/dcled.rb
class Dcled < Formula
desc "Linux driver for dream cheeky USB message board"
homepage "https://www.jeffrika.com/~malakai/dcled/index.html"
url "https://www.jeffrika.com/~malakai/dcled/dcled-2.2.tgz"
sha256 "0da78c04e1aa42d16fa3df985cf54b0fbadf2d8ff338b9bf59bfe103c2a959c6"
livecheck do
url :homepage
regex(/href=.*?dcled[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "bd8fb1848c3296e5eaadf1436f891a2a6ab8142135947a2806db1d2e5212695d"
sha256 cellar: :any, big_sur: "5c36acee3c790871237cb7a3400c6fe4e37daa90258c10b89043ac2aad3a6dc4"
sha256 cellar: :any, catalina: "83a87a0f780dc73c21151690f3b1d0654d33e2baad358122be9d24a0610cea64"
sha256 cellar: :any, mojave: "4b94dd5ba218e3bdb0a10767d0ae62205495130baa839db4be4ab29d6561e5e2"
sha256 cellar: :any, high_sierra: "91cf7fa30d905efaf7499f0667c65e25ddb69d82be3f52b93d1df6a400fd7141"
sha256 cellar: :any, sierra: "bfc1532d76b4d37c706d065bc98feb5a3aeff20751a713d7b7efb08c0976fe9e"
sha256 cellar: :any, el_capitan: "53d07c9548eaeba12645e944ce92c27a02667758176815220dc4ee2a8945c661"
sha256 cellar: :any, yosemite: "2ead7c4eb3c170690890c294936a2d3fc39def2fc332ce4c1da6d17cc8f91b50"
sha256 cellar: :any, x86_64_linux: "f38a543b5462687bb4a85af64c955326f5aaa0d635186d585b1b93ed01d1297c" # linuxbrew-core
end
depends_on "libhid"
depends_on "libusb"
def install
system "make", "CC=#{ENV.cc}",
"LIBUSB_CFLAGS=-I#{Formula["libusb"].opt_include}/libusb-1.0"
system "make", "install",
"FONTDIR=#{share}/#{name}",
"INSTALLDIR=#{bin}"
end
test do
system "#{bin}/dcled", "--help"
end
end
|
0x07CB/linuxbrew-core
|
Formula/cointop.rb
|
<filename>Formula/cointop.rb
class Cointop < Formula
desc "Interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
url "https://github.com/cointop-sh/cointop/archive/v1.6.9.tar.gz"
sha256 "9f28dde6451c80cfa7ad4d3b9ecc980afea3ec3f3e9ed3934f44eb783c1d699b"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2e256f08652ccc9e8553f5a7059c5e1366909e214b915e07e9233f9e090b9fd7"
sha256 cellar: :any_skip_relocation, big_sur: "5925cc2524f811927da33686b986b942f325ade6cd1f48429743e960b050ca22"
sha256 cellar: :any_skip_relocation, catalina: "e826c229542d81013553ed2bd97199c43686c99bae7186f6a3c115cabfe7bad0"
sha256 cellar: :any_skip_relocation, mojave: "76019503a46dfc7a32e5ff4727248150ad0c2588d9877c57dc97b6465d8e07ac"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e14587d83b287f5b63cd2cc996532aeba3ef9dc1d44d51a666b58183ea257177" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-X github.com/cointop-sh/cointop/cointop.version=#{version}"
end
test do
system bin/"cointop", "test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/git-hooks.rb
|
class GitHooks < Formula
desc "Manage project, user, and global Git hooks"
homepage "https://github.com/icefox/git-hooks"
url "https://github.com/icefox/git-hooks/archive/1.00.0.tar.gz"
sha256 "8197ca1de975ff1f795a2b9cfcac1a6f7ee24276750c757eecf3bcb49b74808e"
head "https://github.com/icefox/git-hooks.git"
bottle do
sha256 cellar: :any_skip_relocation, catalina: "d33514436cb623e468314418876fe1e7bb8c31ee64fdcd3c9a297f26a7e7ae42"
sha256 cellar: :any_skip_relocation, mojave: "a66bf94650a35829721b07c4f6a497154c9e667917ea8c28418b870c0de15697"
sha256 cellar: :any_skip_relocation, high_sierra: "710495206af282348fa5e311f825bdbbcb7a891345ff467468908e16b3dbc090"
sha256 cellar: :any_skip_relocation, sierra: "aaceeb7b390f71c45e3c1db15c23ab664a06bfc34de1c629a2b2f5b29e1bdec2"
sha256 cellar: :any_skip_relocation, el_capitan: "bdfffb820e5a7574169b91113ed59c578ebe88bcea8c890166a33fb9af17c0ce"
sha256 cellar: :any_skip_relocation, yosemite: "d4c5fba7f1b80e8e68762356a2f64ac216bf4e9f3151cf2f236c92a9524b97ed"
end
# The icefox/git-hooks repository has been deleted and it doesn't appear to
# have moved to an alternative location. There is a rewrite in Go by a
# different author which someone may want to work into a new formula as a
# replacement: https://github.com/git-hooks/git-hooks
deprecate! date: "2020-06-25", because: :repo_removed
conflicts_with "git-hooks-go", because: "both install `git-hooks` binaries"
def install
bin.install "git-hooks"
(etc/"git-hooks").install "contrib"
end
test do
system "git", "init"
output = shell_output("git hooks").strip
assert_match "Listing User, Project, and Global hooks", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/prestd.rb
|
<gh_stars>100-1000
class Prestd < Formula
desc "Simplify and accelerate development on any Postgres application, existing or new"
homepage "https://github.com/prest/prest"
url "https://github.com/prest/prest/archive/v1.0.10.tar.gz"
sha256 "0267d9f718ae6d7181fc3631d280b12af0534927df6f715598137f8ff1fb93f1"
license "MIT"
head "https://github.com/prest/prest.git", branch: "main"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6f7e525ce2f762739c8e3f33af949046790099d2c81eb8dee6c26483b8b96c04"
sha256 cellar: :any_skip_relocation, big_sur: "9ddeb2d90e3f0376637547d74dccbb46a23cba6c6b579455a0fd477854443229"
sha256 cellar: :any_skip_relocation, catalina: "55f91de387918a2d1166c50435c0a9c56c79b23f32a844ad105228f8fea2e57e"
sha256 cellar: :any_skip_relocation, mojave: "0ac506e43d96a7cd6b841337d9ddf80167a96da34e177a2ffed460efbf15839e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "555d1beda6082e133ae4c3e8f832cac87e0799f6d5baaaee983214dab86a2236" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags",
"-s -w -X github.com/prest/prest/helpers.PrestVersionNumber=#{version}",
"./cmd/prestd"
end
test do
(testpath/"prest.toml").write <<~EOS
[jwt]
default = false
[pg]
host = "127.0.0.1"
user = "prest"
pass = "<PASSWORD>"
port = 5432
database = "prest"
EOS
output = shell_output("prestd migrate up --path .", 255)
assert_match "connect: connection refused", output
assert_match version.to_s, shell_output("prestd version")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libprelude.rb
|
class Libprelude < Formula
desc "Universal Security Information & Event Management (SIEM) system"
homepage "https://www.prelude-siem.org/"
url "https://www.prelude-siem.org/attachments/download/1395/libprelude-5.2.0.tar.gz"
sha256 "187e025a5d51219810123575b32aa0b40037709a073a775bc3e5a65aa6d6a66e"
license "GPL-2.0-or-later"
revision 1
livecheck do
url "https://www.prelude-siem.org/projects/prelude/files"
regex(/href=.*?libprelude[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "62a0baace0727b7e5bbbf6dbb826e54604f18c28a3e2d20dda6bad782b50ffde"
sha256 big_sur: "c2e8d9d9c831ad24e13cd6d470a08c91c9dad1085ce7fe40e559df77b79a1503"
sha256 catalina: "abd1ed78ae980d13cffbe2f7421179f3e416d63f0263b2df2749219bb4ade1ae"
sha256 mojave: "99b39668c53d9e1514e8168db34402d897bd9159ecafdc3a377b097748945fb0"
sha256 x86_64_linux: "282e13c10a69ba928d5f5597c5e88c33253caef9c5a221eae4f15dc670e125a7" # linuxbrew-core
end
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "gnutls"
depends_on "libgpg-error"
depends_on "python@3.9"
def install
ENV["HAVE_CXX"] = "yes"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--without-valgrind
--without-lua
--without-ruby
--without-perl
--without-swig
--without-python2
--with-python3=python#{Formula["python@3.9"].version.major_minor}
--with-libgnutls-prefix=#{Formula["gnutls"].opt_prefix}
]
system "./configure", *args
system "make"
system "make", "install"
end
test do
assert_equal prefix.to_s, shell_output(bin/"libprelude-config --prefix").chomp
assert_equal version.to_s, shell_output(bin/"libprelude-config --version").chomp
(testpath/"test.c").write <<~EOS
#include <libprelude/prelude.h>
int main(int argc, const char* argv[]) {
int ret = prelude_init(&argc, argv);
if ( ret < 0 ) {
prelude_perror(ret, "unable to initialize the prelude library");
return -1;
}
}
EOS
system ENV.cc, "test.c", "-L#{lib}", "-lprelude", "-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/php-cs-fixer.rb
|
<filename>Formula/php-cs-fixer.rb
class PhpCsFixer < Formula
desc "Tool to automatically fix PHP coding standards issues"
homepage "https://cs.symfony.com/"
url "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.2.1/php-cs-fixer.phar"
sha256 "5d77329b72ae79322fd24e1737f1606e50f77cd42140661e5d8ed6917ddc4617"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "bdccc22b31bde4d2c8e83b203c7799393f2c5c689d2b7482898b16da07ba07e6" # linuxbrew-core
end
uses_from_macos "php", since: :catalina
def install
bin.install "php-cs-fixer.phar" => "php-cs-fixer"
end
test do
(testpath/"test.php").write <<~EOS
<?php $this->foo( 'homebrew rox' );
EOS
(testpath/"correct_test.php").write <<~EOS
<?php
$this->foo('homebrew rox');
EOS
system "#{bin}/php-cs-fixer", "fix", "test.php"
assert compare_file("test.php", "correct_test.php")
end
end
|
0x07CB/linuxbrew-core
|
Formula/wp-cli.rb
|
class WpCli < Formula
desc "Command-line interface for WordPress"
homepage "https://wp-cli.org/"
url "https://github.com/wp-cli/wp-cli/releases/download/v2.5.0/wp-cli-2.5.0.phar"
sha256 "be0853e9f443f3848566070871d344e8ad81eb1e15d15dcf9324b4a75e272789"
license "MIT"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ae62ac60656fe354a25fe4a143e58801a037ab76243218e6e2bc1eac4f5f1345"
sha256 cellar: :any_skip_relocation, big_sur: "67acd9816806eef402f59f1904fcebd2e23e6d6cb7657604430e299cf21bd300"
sha256 cellar: :any_skip_relocation, catalina: "67acd9816806eef402f59f1904fcebd2e23e6d6cb7657604430e299cf21bd300"
sha256 cellar: :any_skip_relocation, mojave: "67acd9816806eef402f59f1904fcebd2e23e6d6cb7657604430e299cf21bd300"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a3538f32afa8bef557e659322b49734e90e0420cd96561ea56119f71d91d813c" # linuxbrew-core
end
uses_from_macos "php"
# Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix
on_macos do
pour_bottle? only_if: :default_prefix if Hardware::CPU.intel?
end
def install
bin.install "wp-cli-#{version}.phar" => "wp"
end
test do
output = shell_output("#{bin}/wp core download --path=wptest")
assert_match "Success: WordPress downloaded.", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/cabextract.rb
|
<filename>Formula/cabextract.rb
class Cabextract < Formula
desc "Extract files from Microsoft cabinet files"
homepage "https://www.cabextract.org.uk/"
url "https://www.cabextract.org.uk/cabextract-1.9.1.tar.gz"
sha256 "afc253673c8ef316b4d5c29cc4aa8445844bee14afffbe092ee9469405851ca7"
license "GPL-3.0"
livecheck do
url :homepage
regex(/href=.*?cabextract[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f421b4d93548f37080a4041a1ae83cffa6e0407489913ea09525e3e3f482d39e"
sha256 cellar: :any_skip_relocation, big_sur: "1ddac23f5e64926d1f2cd400e6fa0739db93dc0517712965b2b0ca1b3e74eabd"
sha256 cellar: :any_skip_relocation, catalina: "d60179c028ac5fb69580f2f01cd9f59c1d1544c8f6d84a230a7dd3587f3c27e0"
sha256 cellar: :any_skip_relocation, mojave: "cd27b939a0191d4dfff8ae13300b260b5ae01c563a21613718160012a982d5e8"
sha256 cellar: :any_skip_relocation, high_sierra: "c77caa7c32b4320f9e887abeea99261345e83f03e2c321ec9e99ddd9c75f5d98"
sha256 cellar: :any_skip_relocation, sierra: "c531546af69afda3101f07b509eb143cdaef00f4fdcbdd420e60287508a87e5e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "629e79b7cb08ae0bd4c7c1e04ff729865f7efba43c589575a2f9f2d1af507989" # linuxbrew-core
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
# probably the smallest valid .cab file
cab = <<~EOS.gsub(/\s+/, "")
4d5343460000000046000000000000002c000000000000000301010001000000d20400003
e00000001000000000000000000000000003246899d200061000000000000000000
EOS
(testpath/"test.cab").binwrite [cab].pack("H*")
system "#{bin}/cabextract", "test.cab"
assert_predicate testpath/"a", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/bat-extras.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/bat-extras.rb
class BatExtras < Formula
desc "Bash scripts that integrate bat with various command-line tools"
homepage "https://github.com/eth-p/bat-extras"
url "https://github.com/eth-p/bat-extras/archive/refs/tags/v2021.08.21.tar.gz"
sha256 "15b5be9f33e2eba6ca8f27870a98ed6920a015281039bc418dafdba2a684d366"
license "MIT"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "3ef0479ac64740999c67d9ff77067f0d96e9111cfd037cd0ec19605d3b6b0c9b"
sha256 cellar: :any_skip_relocation, big_sur: "3ef0479ac64740999c67d9ff77067f0d96e9111cfd037cd0ec19605d3b6b0c9b"
sha256 cellar: :any_skip_relocation, catalina: "3ef0479ac64740999c67d9ff77067f0d96e9111cfd037cd0ec19605d3b6b0c9b"
sha256 cellar: :any_skip_relocation, mojave: "3ef0479ac64740999c67d9ff77067f0d96e9111cfd037cd0ec19605d3b6b0c9b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1c94dd7dd7e3d29f1493267a300b3d6a1f309560f341ec24990d708e3aca3759" # linuxbrew-core
end
depends_on "bat" => :test
depends_on "ripgrep" => :test
def install
system "./build.sh", "--prefix=#{prefix}", "--install"
end
test do
system "#{bin}/prettybat < /dev/null"
system bin/"batgrep", "/usr/bin/env", bin
end
end
|
0x07CB/linuxbrew-core
|
Formula/gopls.rb
|
<filename>Formula/gopls.rb
class Gopls < Formula
desc "Language server for the Go language"
homepage "https://github.com/golang/tools/tree/master/gopls"
url "https://github.com/golang/tools/archive/gopls/v0.7.2.tar.gz"
sha256 "7c4d5fab07890106b337cd292485bccc0fcf82da7ce246ac3fc55914aaf9d140"
license "BSD-3-Clause"
livecheck do
url :stable
strategy :github_latest
regex(%r{href=.*?/tag/(?:gopls%2F)?v?(\d+(?:\.\d+)+)["' >]}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d3da9c6aedca9fd37c9022c8a7545a00e4d63ff33a9aaf6806bbd30ba4fc4724"
sha256 cellar: :any_skip_relocation, big_sur: "7217383324ca5d77ade1972e8357377bc2526913f7b2da3fd5a7021b649bb799"
sha256 cellar: :any_skip_relocation, catalina: "9d61076699f6cdf086bcc8104fc355f87158799261739956d85960994c6b028d"
sha256 cellar: :any_skip_relocation, mojave: "1e771496411197bac6386a0e6977e2cdbb6d5655a62e5e7126a0c3e6bd1b6496"
sha256 cellar: :any_skip_relocation, x86_64_linux: "dcf8e757e34afba03062e8d719576ec14fb5f4a0a19fbcd868babb130d429656" # linuxbrew-core
end
depends_on "go" => :build
def install
cd "gopls" do
system "go", "build", *std_go_args
end
end
test do
output = shell_output("#{bin}/gopls api-json")
output = JSON.parse(output)
assert_equal "gopls.add_dependency", output["Commands"][0]["Command"]
assert_equal "buildFlags", output["Options"]["User"][0]["Name"]
end
end
|
0x07CB/linuxbrew-core
|
Formula/libcpuid.rb
|
<gh_stars>100-1000
class Libcpuid < Formula
desc "Small C library for x86 CPU detection and feature extraction"
homepage "https://github.com/anrieff/libcpuid"
url "https://github.com/anrieff/libcpuid/archive/v0.5.1.tar.gz"
sha256 "36d62842ef43c749c0ba82237b10ede05b298d79a0e39ef5fd1115ba1ff8e126"
license "BSD-2-Clause"
head "https://github.com/anrieff/libcpuid.git"
bottle do
sha256 cellar: :any, big_sur: "f7252b191ada11eee6bb25649cba4fda28be44c91ebcfd936e3508d3573bf4f1"
sha256 cellar: :any, catalina: "e954e21a3bb2ab10c1eb831af1626ccf9cbbe69e123a4da6d69975d59cfca867"
sha256 cellar: :any, mojave: "9cb4e35df56ce25adcfc4c0a03f1a377aac54ec7e217bc9bb583df41eebcc8c2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a6caf9f4f13f5d7423e6ffba9039d5077b0b8917122b8e8af5f44432e9c87cb8" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
def install
system "autoreconf", "-ivf"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"cpuid_tool"
assert_predicate testpath/"raw.txt", :exist?
assert_predicate testpath/"report.txt", :exist?
assert_match "CPUID is present", File.read(testpath/"report.txt")
end
end
|
0x07CB/linuxbrew-core
|
Formula/robot-framework.rb
|
<reponame>0x07CB/linuxbrew-core
class RobotFramework < Formula
include Language::Python::Virtualenv
desc "Open source test framework for acceptance testing"
homepage "https://robotframework.org/"
url "https://files.pythonhosted.org/packages/82/4d/81586f077fd94ebbf66840b1187a6789843c9830a3025ec182df2439f29b/robotframework-4.1.1.zip"
sha256 "663f84c177b2fa9b3b782939e31637a057a33f3a4b29067812f1259b7f4bad35"
license "Apache-2.0"
head "https://github.com/robotframework/robotframework.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "eeb75394cf3110b1eea1336847236bbff4f4018e4d2093346d144d417ee13e42"
sha256 cellar: :any, big_sur: "577fbfad49b95e982eeac6005ed478698999276f9338050b9f00cbf71ea93fa5"
sha256 cellar: :any, catalina: "ba8994c8b5f6313df1b0f3b343c775add6ebd925e4c1145e1cfcb64e9fa957cd"
sha256 cellar: :any, mojave: "fad8548881d3ebdace6631a8bf9d3c45823410a7598e1eff891a40c8f19af214"
sha256 cellar: :any_skip_relocation, x86_64_linux: "757e88996ab923a72c66b44ab8553c4d7fc67b9f19e5d023385f3db16235b03b" # linuxbrew-core
end
depends_on "rust" => :build
depends_on "openssl@1.1"
depends_on "python@3.9"
resource "bcrypt" do
url "https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz"
sha256 "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29"
end
resource "cffi" do
url "https://files.pythonhosted.org/packages/2e/92/87bb61538d7e60da8a7ec247dc048f7671afe17016cd0008b3b710012804/cffi-1.14.6.tar.gz"
sha256 "c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd"
end
resource "cryptography" do
url "https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz"
sha256 "94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c"
end
resource "paramiko" do
url "https://files.pythonhosted.org/packages/cf/a1/20d00ce559a692911f11cadb7f94737aca3ede1c51de16e002c7d3a888e0/paramiko-2.7.2.tar.gz"
sha256 "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "PyNaCl" do
url "https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz"
sha256 "54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505"
end
resource "robotframework-archivelibrary" do
url "https://files.pythonhosted.org/packages/3d/ca/0cd119e4ebf6944d48b7e9467c9bc254ea3188cb2cf9109e8e87ae906a99/robotframework-archivelibrary-0.4.1.tar.gz"
sha256 "61cfb1d74717cb11862c87d8f44f5b5cc4a2862de42c441859df83fc33dd3dcf"
end
resource "robotframework-pythonlibcore" do
url "https://files.pythonhosted.org/packages/ce/f1/1a5d360be3a69e0ba502171eadd0ae922dd509d200495615246161b5c38a/robotframework-pythonlibcore-3.0.0.tar.gz"
sha256 "1bce3b8dfcb7519789ee3a89320f6402e126f6d0a02794184a1ab8cee0e46b5d"
end
resource "robotframework-selenium2library" do
url "https://files.pythonhosted.org/packages/c4/7d/3c07081e7f0f1844aa21fd239a0139db4da5a8dc219d1e81cb004ba1f4e2/robotframework-selenium2library-3.0.0.tar.gz"
sha256 "2a8e942b0788b16ded253039008b34d2b46199283461b294f0f41a579c70fda7"
end
resource "robotframework-seleniumlibrary" do
url "https://files.pythonhosted.org/packages/c4/75/fe0184ba697a585d80457b74b7bed1bb290501cd6f9883d149efb4a3d9f2/robotframework-seleniumlibrary-5.1.3.tar.gz"
sha256 "f51a0068c6c0d8107ee1120874a3afbf2bbe751fd0782cb86a27a616d9ca30b6"
end
resource "robotframework-sshlibrary" do
url "https://files.pythonhosted.org/packages/07/18/983ea1dfbbaa299cce92aaf62a9e8d3ba40d02f5bd4a9c9d1f62aace6ec6/robotframework-sshlibrary-3.7.0.tar.gz"
sha256 "55bd5a11bb1fe60a5a83446e6a3e1e81b13fc671e3b660aa55912a263c1f63aa"
end
resource "scp" do
url "https://files.pythonhosted.org/packages/7f/3c/3bfda15f1387d44721f78d338c004ebca27b1015c275da4d3272654be152/scp-0.14.0.tar.gz"
sha256 "ddbdb3ef8c068aa1fd37a5fa65a122a80673c9fd73fdc5668a4604f99ccf5943"
end
resource "selenium" do
url "https://files.pythonhosted.org/packages/ed/9c/9030520bf6ff0b4c98988448a93c04fcbd5b13cd9520074d8ed53569ccfe/selenium-3.141.0.tar.gz"
sha256 "deaf32b60ad91a4611b98d8002757f29e6f2c2d5fcaf202e1c9ad06d6772300d"
end
resource "six" do
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/4f/5a/597ef5911cb8919efe4d86206aa8b2658616d676a7088f0825ca08bd7cb8/urllib3-1.26.6.tar.gz"
sha256 "f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"
end
def install
virtualenv_install_with_resources
# remove non-native binary
(libexec/"lib/python3.9/site-packages/selenium/webdriver/firefox/x86/x_ignore_nofocus.so").unlink if OS.linux?
end
test do
(testpath/"HelloWorld.robot").write <<~EOS
*** Settings ***
Library HelloWorld.py
*** Test Cases ***
HelloWorld
Hello World
EOS
(testpath/"HelloWorld.py").write <<~EOS
def hello_world():
print("HELLO WORLD!")
EOS
system bin/"robot", testpath/"HelloWorld.robot"
end
end
|
0x07CB/linuxbrew-core
|
Formula/microplane.rb
|
class Microplane < Formula
desc "CLI tool to make git changes across many repos"
homepage "https://github.com/Clever/microplane"
url "https://github.com/Clever/microplane/archive/v0.0.34.tar.gz"
sha256 "289b3df07b3847fecb0d815ff552dad1b1b1e4f662eddc898ca7b1e7d81d6d7c"
license "Apache-2.0"
head "https://github.com/Clever/microplane.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fb8cd7544c9c9801ea665666d9a0abf44fbc9a38c15e4749d2137ab62a4f33ff"
sha256 cellar: :any_skip_relocation, big_sur: "ad84fa0e4efc89cd232632aec23c676ebfc23f787037f0da5a8356dc0b765028"
sha256 cellar: :any_skip_relocation, catalina: "f9e918678833d61cedb4decb86652ccc356665aed0febcc48b30d950bc8c9b71"
sha256 cellar: :any_skip_relocation, mojave: "5105e70832a0200105c87bf33d04e4852d7a01d8eb05ac9d7f7d3816d3f8748a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2439149f7ad75feb2d3bc41479fb626f8916b1e0796eeef71b69ea630b8afc27" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-s -w -X main.version=#{version}", "-o", bin/"mp"
end
test do
# mandatory env variable
ENV["GITHUB_API_TOKEN"] = "test"
# create repos.txt
(testpath/"repos.txt").write <<~EOF
hashicorp/terraform
EOF
# create mp/init.json
shell_output("mp init -f #{testpath}/repos.txt")
# test command
output = shell_output("mp plan -b microplaning -m 'microplane fun' -r terraform -- sh echo 'hi' 2>&1")
assert_match "planning", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/kcptun.rb
|
class Kcptun < Formula
desc "Stable & Secure Tunnel based on KCP with N:M multiplexing and FEC"
homepage "https://github.com/xtaci/kcptun"
url "https://github.com/xtaci/kcptun/archive/v20210922.tar.gz"
sha256 "f6a08f0fe75fa85d15f9c0c28182c69a5ad909229b4c230a8cbe38f91ba2d038"
license "MIT"
head "https://github.com/xtaci/kcptun.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c97a883e2048b359e651f507f30253737d2321e4fc1a395d974cc77393e0fe6e"
sha256 cellar: :any_skip_relocation, big_sur: "1ad1270e0bba0a7dc12310895df5d16387fe419368e6cfc6a374d818f9c1678b"
sha256 cellar: :any_skip_relocation, catalina: "445130c0d80589759e05859e2e999335eed7a00a845709c659432c54773d3a35"
sha256 cellar: :any_skip_relocation, mojave: "d2b5d0001b6afed4dcf1804930bc47a8b3df26e75717e18319e38c2b9ebba890"
sha256 cellar: :any_skip_relocation, x86_64_linux: "74c644d4282ee536136dfa9f2221d9fc01e09359221ea5ae98b620d697683f0a" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", "-ldflags", "-X main.VERSION=#{version} -s -w",
"-o", bin/"kcptun_client", "github.com/xtaci/kcptun/client"
system "go", "build", "-ldflags", "-X main.VERSION=#{version} -s -w",
"-o", bin/"kcptun_server", "github.com/xtaci/kcptun/server"
etc.install "examples/local.json" => "kcptun_client.json"
end
service do
run [opt_bin/"kcptun_client", "-c", etc/"kcptun_client.json"]
keep_alive true
log_path var/"log/kcptun.log"
error_log_path var/"log/kcptun.log"
end
test do
server = fork { exec bin/"kcptun_server", "-t", "1.1.1.1:80" }
client = fork { exec bin/"kcptun_client", "-r", "127.0.0.1:29900", "-l", ":12948" }
sleep 1
begin
assert_match "cloudflare", shell_output("curl -vI http://127.0.0.1:12948/")
ensure
Process.kill 9, server
Process.wait server
Process.kill 9, client
Process.wait client
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/mrtg.rb
|
class Mrtg < Formula
desc "Multi router traffic grapher"
homepage "https://oss.oetiker.ch/mrtg/"
url "https://oss.oetiker.ch/mrtg/pub/mrtg-2.17.8.tar.gz"
sha256 "1ac2e0af69e0ecdef755e798ca59834ab78ac185c2a5effdb7685c58f2ef01b4"
livecheck do
url "https://oss.oetiker.ch/mrtg/pub/"
regex(/href=.*?mrtg[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "d18d7f28aefcf8a4d927191ea39d7e7180ef0fd6f9cbfa8f78a7c479ae180225"
sha256 cellar: :any, big_sur: "07e807ddaf2a41cefd8511bf441c403da9062eaaa4978628d99ee82fc9204947"
sha256 cellar: :any, catalina: "16df660ec359b69b2459c924b53531e858d5cbf07ae2d182c3d8af150c62274d"
sha256 cellar: :any, mojave: "f2d1b8898e2cdda752a6456bed569a37a61c48b6d3f881ecc9a8e8ec2543257a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "110cdf1481f558df5b6b2438b5087ff0e13d07ee2a287c2bd29617dc431a0843" # linuxbrew-core
end
depends_on "gd"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/cfgmaker", "--nointerfaces", "localhost"
end
end
|
0x07CB/linuxbrew-core
|
Formula/distcc.rb
|
<gh_stars>100-1000
class Distcc < Formula
desc "Distributed compiler client and server"
homepage "https://github.com/distcc/distcc/"
url "https://github.com/distcc/distcc/releases/download/v3.4/distcc-3.4.tar.gz"
sha256 "2b99edda9dad9dbf283933a02eace6de7423fe5650daa4a728c950e5cd37bd7d"
license "GPL-2.0-or-later"
revision 1
head "https://github.com/distcc/distcc.git"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 arm64_big_sur: "ffab1cecd8e01d68b0219b5a6bfe5ff17951b56721e22e43c98e5195d25a0478"
sha256 big_sur: "18a8fd773714b43e5effec750afca17ff2c55c29cfcfbf43a70da804d0387be8"
sha256 catalina: "eeb7573a412908530b6deec90e1a8dea6d6e8ca543914ccdc8aa93cf390cacad"
sha256 mojave: "a2ed5a4d9b741a95a0ff3bb710f7382b6d3b4e01c30f6e0e9698da8796291504"
sha256 x86_64_linux: "1c5befd01ca2e4c87b074ef98b7d23f33a5b08e9b63e77b71869d4da1b2a7e51" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "python@3.10"
resource "libiberty" do
url "https://ftp.debian.org/debian/pool/main/libi/libiberty/libiberty_20210106.orig.tar.xz"
sha256 "9df153d69914c0f5a9145e0abbb248e72feebab6777c712a30f1c3b8c19047d4"
end
def install
# While libiberty recommends that packages vendor libiberty into their own source,
# distcc wants to have a package manager-installed version.
# Rather than make a package for a floating package like this, let's just
# make it a resource.
buildpath.install resource("libiberty")
cd "libiberty" do
system "./configure"
system "make"
end
ENV.append "LDFLAGS", "-L#{buildpath}/libiberty"
ENV.append_to_cflags "-I#{buildpath}/include"
# Make sure python stuff is put into the Cellar.
# --root triggers a bug and installs into HOMEBREW_PREFIX/lib/python2.7/site-packages instead of the Cellar.
inreplace "Makefile.in", '--root="$$DESTDIR"', ""
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
service do
run [opt_bin/"distcc", "--allow=192.168.0.1/24"]
keep_alive true
working_dir opt_prefix
end
test do
system "#{bin}/distcc", "--version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/rcm.rb
|
<filename>Formula/rcm.rb
class Rcm < Formula
desc "RC file (dotfile) management"
homepage "https://thoughtbot.github.io/rcm/rcm.7.html"
url "https://thoughtbot.github.io/rcm/dist/rcm-1.3.4.tar.gz"
sha256 "9b11ae37449cf4d234ec6d1348479bfed3253daba11f7e9e774059865b66c24a"
license "BSD-3-Clause"
# The first-party website doesn't appear to provide links to archive files, so
# we check the Git repository tags instead.
livecheck do
url "https://github.com/thoughtbot/rcm.git"
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "a43a7792728bc4c441e997bc6e0879aecc237d1c95c7a47ff49093e33ad14979"
sha256 cellar: :any_skip_relocation, big_sur: "1ae14043eb53ab02db26a3bf33d15d817a09917788f0165bbcc538f77a9d38fd"
sha256 cellar: :any_skip_relocation, catalina: "86ac10a7254567afb24c9816f6a80dd90a81bc8cd8619c112e59c0950929ef14"
sha256 cellar: :any_skip_relocation, mojave: "44c9524d9d5ce8ea5310fe6681b040d6c685cec693446f617686f82929d83c6b"
sha256 cellar: :any_skip_relocation, high_sierra: "7130060f9a26eda6a704eb06bda4c04a4cc0b0980f1c9d3fc5dce876fa5a3fdf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "31c97a752cc241f759cc607caf8cf867ebf3c69a039f4998cedb7a8b18c3c242" # linuxbrew-core
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/".gitconfig").write <<~EOS
[user]
name = <NAME>
email = <EMAIL>
EOS
assert_match(/(Moving|Linking)\.\.\./x, shell_output("#{bin}/mkrc -v ~/.gitconfig"))
end
end
|
0x07CB/linuxbrew-core
|
Formula/vsftpd.rb
|
<filename>Formula/vsftpd.rb
class Vsftpd < Formula
desc "Secure FTP server for UNIX"
homepage "https://security.appspot.com/vsftpd.html"
url "https://security.appspot.com/downloads/vsftpd-3.0.5.tar.gz"
mirror "https://fossies.org/linux/misc/vsftpd-3.0.5.tar.gz"
sha256 "26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3"
license "GPL-2.0-only"
livecheck do
url :homepage
regex(/href=.*?vsftpd[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "11589c537eaaaba8cfd68207f078d8d4d0485b40d8553c23ae7caf76ab5104d7"
sha256 big_sur: "1ede9475ee1dc93ad54a413ca82bdd15d3b0f50b9d6f731cf7e3578cae8b0cbd"
sha256 catalina: "79b378cfa6134e01ff2d253578c24601e5bb2d2514e7427da083a9af0446ac14"
sha256 mojave: "d6ebf6f6f786c417698436901442203446bc6c64a9d50e6134b4035e2c0c5002"
sha256 x86_64_linux: "124a191424c1d2f2261a858bc2d2a8319dc91572035f62c9f7065c08cdfd6e5b" # linuxbrew-core
end
uses_from_macos "perl" => :build
# Patch to remove UTMPX dependency, locate macOS's PAM library, and
# remove incompatible LDFLAGS. (reported to developer via email)
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/5fbea7b01a521f840f51be6ffec29f612a37eed3/vsftpd/3.0.3.patch"
sha256 "c158fac428e06e16219e332c3897c3f730586e55d0ef3a670ed3c716e3de5371"
end
def install
inreplace "defs.h", "/etc/vsftpd.conf", "#{etc}/vsftpd.conf"
inreplace "tunables.c", "/etc", etc
inreplace "tunables.c", "/var", var
system "make"
# make install has all the paths hardcoded; this is easier:
sbin.install "vsftpd"
etc.install "vsftpd.conf"
man5.install "vsftpd.conf.5"
man8.install "vsftpd.8"
end
def caveats
<<~EOS
To use chroot, vsftpd requires root privileges, so you will need to run
`sudo vsftpd`.
You should be certain that you trust any software you grant root privileges.
The vsftpd.conf file must be owned by root or vsftpd will refuse to start:
sudo chown root #{HOMEBREW_PREFIX}/etc/vsftpd.conf
EOS
end
plist_options startup: true
service do
run [opt_sbin/"vsftpd", etc/"vsftpd.conf"]
end
test do
assert_match version.to_s, shell_output("#{sbin}/vsftpd -v 0>&1")
end
end
|
0x07CB/linuxbrew-core
|
Formula/openalpr.rb
|
<gh_stars>100-1000
class Openalpr < Formula
desc "Automatic License Plate Recognition library"
homepage "https://www.openalpr.com"
url "https://github.com/openalpr/openalpr/archive/v2.3.0.tar.gz"
sha256 "1cfcaab6f06e9984186ee19633a949158c0e2aacf9264127e2f86bd97641d6b9"
license "AGPL-3.0-or-later"
revision 2
bottle do
sha256 arm64_big_sur: "4413a608d96584a63180fcb7a8d1c794ef8277010b9bd76f03c3bdfd60e3fe5a"
sha256 big_sur: "a686b58100f9c397a2be1eb70595c773440e26e652a8539745bcfebd38359b12"
sha256 catalina: "c1ba59a1d018a65f019ea162dd44efefc28ef54720f5b702c3763f21b5bdbb65"
sha256 mojave: "6b61f23a1832eaea3acebf2ac5333d96eaa2ac9f978b8c1dbe6cfabadf0e980c"
sha256 x86_64_linux: "3bf248717da8025ebd21a2691dd99a4c61650aab1a8bb3ddfc89c84d5d48cc79" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "leptonica"
depends_on "libtiff"
depends_on "log4cplus"
depends_on "opencv"
depends_on "python@3.9"
depends_on "tesseract"
uses_from_macos "curl"
# A photo of licence plate from https://commons.wikimedia.org/wiki/File:California_2018_license_plate_(USA).jpg
resource "testdata" do
url "https://upload.wikimedia.org/wikipedia/commons/b/b0/California_2018_license_plate_%28USA%29.jpg"
sha256 "dd58b62f4f75690280dd0b021b19422cef7f4f4381664d3ee512106e6f491e5c"
end
# Make compatible with opencv 4
# See https://github.com/openalpr/openalpr/pull/878
# Remove in the next release
patch do
url "https://github.com/openalpr/openalpr/commit/a35f0d688e546392bf15e0d1d4ef73b6bc8d179d.patch?full_index=1"
sha256 "c22c0773182badc6ff7a65c0a423b7a01d722788be192f1b4245b1bad8d15089"
end
# Fix compatibility with tesseract 4
# See https://github.com/openalpr/openalpr/pull/693
# Remove in the next release
patch do
url "https://github.com/openalpr/openalpr/commit/28e0b0fa95c12923138768d670b852242a750d0c.patch?full_index=1"
sha256 "3c99b8fe00f7fbdc3840cdf0453154fd8d88bba90de7636137697194b9632b30"
end
# Fix Alpr#is_loaded segfault in python bindings
# Remove in the next release
patch do
url "https://github.com/openalpr/openalpr/commit/479aa4edbfd3cd0062d73fd2e0457367b3dc522f.patch?full_index=1"
sha256 "c08c4be680825e97f165500290eb387a37fb5569cd01cb1e6ed42991dabee920"
end
def install
mkdir "src/build" do
args = std_cmake_args
args << "-DCMAKE_INSTALL_SYSCONFDIR=#{etc}"
args << "-DCMAKE_CXX_FLAGS=-std=c++11"
args << "-DCMAKE_INSTALL_SYSCONFDIR:PATH=#{etc}"
args << "-DWITH_BINDING_PYTHON=ON"
args << "-DWITH_BINDING_JAVA=OFF"
args << "-DWITH_BINDING_GO=OFF"
args << "-DWITH_TESTS=OFF"
args << "-DTesseract_PKGCONF_INCLUDE_DIRS=#{Formula["tesseract"].opt_include}/tesseract"
args << "-DTesseract_PKGCONF_LIBRARY_DIRS=#{Formula["tesseract"].opt_lib}/tesseract"
system "cmake", "..", *args
system "make", "install"
end
(lib/"python2.7/dist-packages").rmtree
cd "src/bindings/python" do
system Formula["python@3.9"].opt_bin/"python3", *Language::Python.setup_install_args(prefix)
end
end
test do
resource("testdata").stage { testpath.install Dir["*.jpg"].first => "plate.jpg" }
plate_number = "7TRR812"
assert_match plate_number, shell_output("#{bin}/alpr plate.jpg")
(testpath/"test.py").write <<~EOS
from openalpr import Alpr
try:
alpr = Alpr("us", "#{etc}/openalpr/openalpr.conf", "#{share}/openalpr/runtime_data")
if not alpr.is_loaded():
raise RuntimeError("Error loading OpenALPR")
alpr.set_top_n(7)
alpr.set_default_region("ca")
alpr.set_detect_region(False)
with open("#{testpath}/plate.jpg", "rb") as f:
print(alpr.recognize_array(f.read()))
finally:
if alpr:
alpr.unload()
EOS
output = shell_output("#{Formula["python@3"].opt_bin}/python3 #{testpath}/test.py")
assert_match plate_number, output
end
end
|
0x07CB/linuxbrew-core
|
Formula/wandio.rb
|
class Wandio < Formula
desc "Transparently read from and write to zip, bzip2, lzma or zstd archives"
homepage "https://research.wand.net.nz/software/libwandio.php"
url "https://research.wand.net.nz/software/wandio/wandio-4.2.3.tar.gz"
sha256 "78c781ce2c3783b85d894e29005b7e98fc246b33f94616047de3bb4d11d4d823"
license "LGPL-3.0-or-later"
revision 1
livecheck do
url :homepage
regex(/href=.*?wandio[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "561c437e4a6521dca50fddd9a0099be26e0b4382c208866514a9fd921d10b76e"
sha256 cellar: :any, big_sur: "5ebf117a69a7e0fdb352d3b9ec31d1c58c775f9554ae1c8aad536d791a001e52"
sha256 cellar: :any, catalina: "2315e97da8b41e130ce44790da94a692b7125b4feede7d6becec880b68178b21"
sha256 cellar: :any, mojave: "fe2c352b368e3e440f5ddfdbce45002c849a7446d056dfe4f542a28cd06c1aab"
end
depends_on "lz4"
depends_on "lzo"
depends_on "xz" # For LZMA
depends_on "zstd"
uses_from_macos "bzip2"
uses_from_macos "curl"
uses_from_macos "zlib"
def install
system "./configure", "--with-http",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/wandiocat", "-z", "9", "-Z", "gzip", "-o", "test.gz",
test_fixtures("test.png"), test_fixtures("test.pdf")
assert_predicate testpath/"test.gz", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/apache-geode.rb
|
class ApacheGeode < Formula
desc "In-memory Data Grid for fast transactional data processing"
homepage "https://geode.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=geode/1.14.0/apache-geode-1.14.0.tgz"
mirror "https://archive.apache.org/dist/geode/1.14.0/apache-geode-1.14.0.tgz"
mirror "https://downloads.apache.org/geode/1.14.0/apache-geode-1.14.0.tgz"
sha256 "d8a72225caf63889e41f8909cffc9303fb288515387f216d3207bc6d5457b947"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "fd7052dbad16cfa3abf8a7236bb87d47292d81b338aea599bef184093e1cf3cb" # linuxbrew-core
end
depends_on "openjdk@11"
def install
rm_f "bin/gfsh.bat"
bash_completion.install "bin/gfsh-completion.bash" => "gfsh"
libexec.install Dir["*"]
(bin/"gfsh").write_env_script libexec/"bin/gfsh", Language::Java.java_home_env("11")
end
test do
flags = "--dir #{testpath} --name=geode_locator_brew_test"
output = shell_output("#{bin}/gfsh start locator #{flags}")
assert_match "Cluster configuration service is up and running", output
ensure
quiet_system "pkill", "-9", "-f", "geode_locator_brew_test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libreplaygain.rb
|
<filename>Formula/libreplaygain.rb<gh_stars>100-1000
class Libreplaygain < Formula
desc "Library to implement ReplayGain standard for audio"
homepage "https://www.musepack.net/"
url "https://files.musepack.net/source/libreplaygain_r475.tar.gz"
version "r475"
sha256 "8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482"
livecheck do
url "https://www.musepack.net/index.php?pg=src"
regex(/href=.*?libreplaygain[._-](r\d+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any, arm64_big_sur: "e1cafa5a3cc922c818b746cea6e697757dfd1450703678dc0f6ba89eb41c94ac"
sha256 cellar: :any, big_sur: "b7a2c4c9ab84445dbe76e5ba32cc84e5f64b4dca4bd0c6ceda202d024a4fcbe6"
sha256 cellar: :any, catalina: "34a785ef56c26e506e4e225ace636163dd3b5dd310448a7b63d1ba1c99a2ea77"
sha256 cellar: :any, mojave: "13df0590c2056af8071e5c182bc1b73cfd52b6ad7afb561d16a1ac3ddf0df179"
sha256 cellar: :any, high_sierra: "c2d3becfcd2f629fb875b6d6c907505489381e5ea3893b0a882510ebbee9951a"
sha256 cellar: :any, sierra: "d8f7cfc1bfad75b97271300a16f5c927849b03ff488141423ecf48b25c6ed8c3"
sha256 cellar: :any, el_capitan: "58b52d360c2f37f3ab3a50c4a2fe72b9a370bd951d52939f8853a5ef49fcc322"
sha256 cellar: :any, yosemite: "d47338c5b86daabf3e2e05ab9dd2443c04c1233f3319307e8e5d545b24dcf722"
sha256 cellar: :any, x86_64_linux: "192ad8d9539a4121eaa4b70b5eecf9f8ce7af90c9ed02aeef288748d2ec0c1dd" # linuxbrew-core
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
include.install "include/replaygain/"
end
end
|
0x07CB/linuxbrew-core
|
Formula/confuse.rb
|
class Confuse < Formula
desc "Configuration file parser library written in C"
homepage "https://github.com/libconfuse/libconfuse"
url "https://github.com/libconfuse/libconfuse/releases/download/v3.3/confuse-3.3.tar.xz"
sha256 "1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010"
license "ISC"
bottle do
sha256 cellar: :any, arm64_big_sur: "1eeec2cb7b54cf11c1e13448f191ed97d4f2477c215130b6402256678019f36e"
sha256 cellar: :any, big_sur: "370cd5df07249d44cbf0a848001be19d41341f404d229dcdcb3b5ae6ead4300c"
sha256 cellar: :any, catalina: "13ad01ca606e746ab7f6bcd42b0da08abdcc29ccaaa9e8106f9d28bfe96bffd7"
sha256 cellar: :any, mojave: "d6038fe2a7fcfea4ba6e3c29174cb6201ce7d05e22ef4c76b881b9f12dabcff6"
sha256 cellar: :any, high_sierra: "371f699488d7e4459251c55e4ef4d9087b08e07b4fedfc553476bc30070ca9c1"
sha256 cellar: :any, x86_64_linux: "f33b7f3eb72f36f423997e802ef9f9a427b0690e2ef04ec97b005c694979d523" # linuxbrew-core
end
depends_on "pkg-config" => :build
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "check"
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#include <confuse.h>
#include <stdio.h>
cfg_opt_t opts[] =
{
CFG_STR("hello", NULL, CFGF_NONE),
CFG_END()
};
int main(void)
{
cfg_t *cfg = cfg_init(opts, CFGF_NONE);
if (cfg_parse_buf(cfg, "hello=world") == CFG_SUCCESS)
printf("%s\\n", cfg_getstr(cfg, "hello"));
cfg_free(cfg);
return 0;
}
EOS
system ENV.cc, "test.c", "-L#{lib}", "-lconfuse", "-o", "test"
assert_match "world", shell_output("./test")
end
end
|
0x07CB/linuxbrew-core
|
Formula/ccfits.rb
|
<reponame>0x07CB/linuxbrew-core
class Ccfits < Formula
desc "Object oriented interface to the cfitsio library"
homepage "https://heasarc.gsfc.nasa.gov/fitsio/CCfits/"
url "https://heasarc.gsfc.nasa.gov/fitsio/CCfits/CCfits-2.6.tar.gz"
sha256 "2bb439db67e537d0671166ad4d522290859e8e56c2f495c76faa97bc91b28612"
livecheck do
url :homepage
regex(/href=.*?CCfits[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "93653ea8290192929bc4b61b468fa55e4e1435e67dea0d6b232751dc610126bd"
sha256 cellar: :any, big_sur: "504f3e52451e700b4562dd91e5017587ebe829aa25421600bb8cb01ee2faa571"
sha256 cellar: :any, catalina: "fb2b7a32b1c881c91191aee126e556879184b2ac23a7c4dc62b88eb1328007af"
sha256 cellar: :any, mojave: "d7111f916b0ee822f04fe233d00c5e66c151bd821a9ba8fc52365c2270e37fa7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "<KEY>" # linuxbrew-core
end
depends_on "cfitsio"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
]
# Remove references to brew's shims
args << "pfk_cxx_lib_path=/usr/bin/g++" if OS.linux?
system "./configure", *args
system "make"
system "make", "install"
end
test do
(testpath/"test.cpp").write <<~EOS
#include <CCfits/CCfits>
#include <iostream>
int main() {
CCfits::FITS::setVerboseMode(true);
std::cout << "the answer is " << CCfits::VTbyte << std::endl;
}
EOS
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", "-I#{include}",
"-L#{lib}", "-lCCfits"
assert_match "the answer is -11", shell_output("./test")
end
end
|
0x07CB/linuxbrew-core
|
Formula/git-game.rb
|
class GitGame < Formula
desc "Game for git to guess who made which commit"
homepage "https://github.com/jsomers/git-game"
url "https://github.com/jsomers/git-game/archive/1.2.tar.gz"
sha256 "d893b2c813388754c16d867cf37726cd7e73c9ccd316735aac43bf1cd3ab1412"
license "MIT"
def install
bin.install "git-game"
end
test do
system "git", "game", "help"
end
end
|
0x07CB/linuxbrew-core
|
Formula/open-sp.rb
|
<reponame>0x07CB/linuxbrew-core
class OpenSp < Formula
desc "SGML parser"
homepage "https://openjade.sourceforge.io"
url "https://downloads.sourceforge.net/project/openjade/opensp/1.5.2/OpenSP-1.5.2.tar.gz"
sha256 "57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce"
bottle do
rebuild 5
sha256 cellar: :any, arm64_big_sur: "032676f1cd5c4bc0c1368cdf08bfe9a8b6df8f2c26ee4367c4a1285ab4fadc3a"
sha256 cellar: :any, big_sur: "50109cdb514313693454259ba30f90f550618d48a1cc71df55ed04343d0cf641"
sha256 cellar: :any, catalina: "1b2c18d6cdcd99d387770eaa14a773bb3edec5b22984ac75f3b07a181916f18f"
sha256 cellar: :any, mojave: "47a3595b023164a54f73009f5d0a1bd092355f7c5b357cb86e1ec781b101bcb8"
sha256 cellar: :any, x86_64_linux: "741afd695bc9e48a7b5b5e0ad7b8650d21d14cf8973fbc5400b5d1ed315c862c" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "docbook" => :build
depends_on "ghostscript" => :build
depends_on "libtool" => :build
depends_on "xmlto" => :build
depends_on "gettext"
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
# The included ./configure file is too old to work with Xcode 12
system "autoreconf", "--verbose", "--install", "--force"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-http",
"--enable-default-catalog=#{etc}/sgml/catalog"
system "make", "pkgdatadir=#{share}/sgml/opensp", "install"
end
test do
(testpath/"eg.sgml").write <<~EOS
<!DOCTYPE TESTDOC [
<!ELEMENT TESTDOC - - (TESTELEMENT)+>
<!ELEMENT TESTELEMENT - - (#PCDATA)>
]>
<TESTDOC>
<TESTELEMENT>Hello</TESTELEMENT>
</TESTDOC>
EOS
system "#{bin}/onsgmls", "--warning=type-valid", "eg.sgml"
end
end
|
0x07CB/linuxbrew-core
|
Formula/xtitle.rb
|
<filename>Formula/xtitle.rb
class Xtitle < Formula
desc "Set window title and icon for your X terminal"
homepage "https://kinzler.com/me/xtitle/"
url "https://kinzler.com/me/xtitle/xtitle-1.0.4.tgz"
sha256 "cadddef1389ba1c5e1dc7dd861545a5fe11cb397a3f692cd63881671340fcc15"
license "GPL-2.0-or-later"
livecheck do
url :homepage
regex(/href=.*?xtitle[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
def install
bin.install "xtitle.sh" => "xtitle"
bin.install "xtctl.sh" => "xtctl"
man1.install "xtitle.man" => "xtitle.1"
end
test do
assert_match version.to_s, shell_output("#{bin}/xtitle --version")
end
end
|
0x07CB/linuxbrew-core
|
Formula/nrg2iso.rb
|
<filename>Formula/nrg2iso.rb
class Nrg2iso < Formula
desc "Extract ISO9660 data from Nero nrg files"
homepage "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html"
url "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso-0.4.1.tar.gz"
sha256 "3be36a416758fc1910473b49a8dadf2a2aa3d51f1976197336bc174bc1e306e5"
license "GPL-3.0-or-later"
# The latest version reported on the English page (nrg2iso.en.html) and the
# main French page (nrg2iso.html) can differ, so we may want to keep an eye
# on this to make sure we don't miss any versions.
livecheck do
url :homepage
regex(/href=.*?nrg2iso[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ca8279b0cbdf542068fad1c72abbd63dab1c756a315e676a0e704d19196feeb9"
sha256 cellar: :any_skip_relocation, big_sur: "fad5cff7cbfe394a08dbe9f52f0f0d7872be02fde704cd610bb2cafba844fae6"
sha256 cellar: :any_skip_relocation, catalina: "4928245286399a545930ec079d6299a844e334e5cbe90eab8d8e55f0fc690f66"
sha256 cellar: :any_skip_relocation, mojave: "3d965e8881897c8c2b42acc476b066398eeb074acce577f011c850c0ee7b5eec"
sha256 cellar: :any_skip_relocation, x86_64_linux: "740b102a8a4df8a8523a8b7812e3eed07f9ce6e0e1c8557867360fe4c1a18136" # linuxbrew-core
end
def install
# fix version output issue
inreplace "nrg2iso.c", "VERSION \"0.4\"", "VERSION \"#{version}\""
system "make"
bin.install "nrg2iso"
end
test do
assert_equal "nrg2iso v#{version}",
shell_output("#{bin}/nrg2iso --version").chomp
end
end
|
0x07CB/linuxbrew-core
|
Formula/datalad.rb
|
<gh_stars>100-1000
class Datalad < Formula
include Language::Python::Virtualenv
desc "Data distribution geared toward scientific datasets"
homepage "https://www.datalad.org"
url "https://files.pythonhosted.org/packages/36/00/e8a1f0ddc0a899d494aa9694f28ebff3b13c87276bc749ed29a1163ec868/datalad-0.15.2.tar.gz"
sha256 "1a878cf521270f089ee1f50339e71cfd7eed41e708d895a12d5c483a9b59991b"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "503698b2d43d533b47508cb1e3cbb383d13cbf9905af706762ada230fadd669b"
sha256 cellar: :any_skip_relocation, catalina: "9615cc1d8c198be8e3ddb464ba689bbc600b983d67fd1e23b66f01d755a7e0a7"
sha256 cellar: :any_skip_relocation, mojave: "6a981503291d9f07c2575403329eaf4194b4e1589a38356f19a059c1ecd6272e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "62fe473caf887f285c26b42d9f51362389b042e70ed1b807847fbfbec1c11b1c" # linuxbrew-core
end
depends_on "git-annex"
depends_on "p7zip"
depends_on "python@3.10"
depends_on "six"
resource "annexremote" do
url "https://files.pythonhosted.org/packages/a1/2d/8cbc4b3a79a5e11589b4b0345f24580791a269b5641b05fb2e633d3bbe37/annexremote-1.5.0.tar.gz"
sha256 "92f32b6f5461cbaeefe0c60b32f9c1e0c1dbe4e57b8ee425affb56f4060f64ef"
end
resource "appdirs" do
url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz"
sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
end
resource "boto" do
url "https://files.pythonhosted.org/packages/c8/af/54a920ff4255664f5d238b5aebd8eedf7a07c7a5e71e27afcfe840b82f51/boto-2.49.0.tar.gz"
sha256 "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/6d/78/f8db8d57f520a54f0b8a438319c342c61c22759d8f9a1cd2e2180b5e5ea9/certifi-2021.5.30.tar.gz"
sha256 "2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee"
end
resource "cffi" do
url "https://files.pythonhosted.org/packages/2e/92/87bb61538d7e60da8a7ec247dc048f7671afe17016cd0008b3b710012804/cffi-1.14.6.tar.gz"
sha256 "c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd"
end
resource "chardet" do
url "https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz"
sha256 "0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/eb/7f/a6c278746ddbd7094b019b08d1b2187101b1f596f35f81dc27f57d8fcf7c/charset-normalizer-2.0.6.tar.gz"
sha256 "5ec46d183433dcbd0ab716f2d7f29d8dee50505b3fdb40c6b985c7c4f5a3591f"
end
resource "Deprecated" do
url "https://files.pythonhosted.org/packages/c8/d1/e412abc2a358a6b9334250629565fe12697ca1cdee4826239eddf944ddd0/Deprecated-1.2.13.tar.gz"
sha256 "43ac5335da90c31c24ba028af536a91d41d53f9e6901ddb021bcc572ce44e38d"
end
resource "distro" do
url "https://files.pythonhosted.org/packages/a5/26/256fa167fe1bf8b97130b4609464be20331af8a3af190fb636a8a7efd7a2/distro-1.6.0.tar.gz"
sha256 "83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424"
end
resource "fasteners" do
url "https://files.pythonhosted.org/packages/28/e4/2888d41cdbd405828ccdb9a8536c5919939c2f4c6ab9b2ba63e9bd2570d5/fasteners-0.16.3.tar.gz"
sha256 "b1ab4e5adfbc28681ce44b3024421c4f567e705cc3963c732bf1cba3348307de"
end
resource "future" do
url "https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz"
sha256 "b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"
end
resource "humanize" do
url "https://files.pythonhosted.org/packages/4f/95/e097e65913e9b5ce68a576cf3ea364eb240973cc15c6a8184047a3571290/humanize-3.12.0.tar.gz"
sha256 "5ec1a66e230a3e31fb3f184aab9436ea13d4e37c168e0ffc345ae5bb57e58be6"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "importlib-metadata" do
url "https://files.pythonhosted.org/packages/f0/70/ca3dd67cdd368b957e73a8156f7e1a10339f9813e314cb8b4549526070da/importlib_metadata-4.8.1.tar.gz"
sha256 "f284b3e11256ad1e5d03ab86bb2ccd6f5339688ff17a4d797a0fe7df326f23b1"
end
resource "iso8601" do
url "https://files.pythonhosted.org/packages/45/66/a943f702763c879e2754b46089a136ee1e58f0f720c58fa640c00281d3fd/iso8601-0.1.16.tar.gz"
sha256 "36532f77cc800594e8f16641edae7f1baf7932f05d8e508545b95fc53c6dc85b"
end
resource "keyring" do
url "https://files.pythonhosted.org/packages/cc/24/c5402ba0c6380cc058980e2b73f0597ab6875692f185054a94244b7161ab/keyring-23.2.1.tar.gz"
sha256 "6334aee6073db2fb1f30892697b1730105b5e9a77ce7e61fca6b435225493efe"
end
resource "keyrings.alt" do
url "https://files.pythonhosted.org/packages/b8/a4/f9ef8a522e2f5bb273de6b5848bcb7d2fa4f0c1ea935fc8630762accb4db/keyrings.alt-4.1.0.tar.gz"
sha256 "52ccb61d6f16c10f32f30d38cceef7811ed48e086d73e3bae86f0854352c4ab2"
end
resource "msgpack" do
url "https://files.pythonhosted.org/packages/59/04/87fc6708659c2ed3b0b6d4954f270b6e931def707b227c4554f99bd5401e/msgpack-1.0.2.tar.gz"
sha256 "fae04496f5bc150eefad4e9571d1a76c55d021325dcd484ce45065ebbdd00984"
end
resource "patool" do
url "https://files.pythonhosted.org/packages/1b/eb/ad3c94cb8cbc1d8b1c47471d2c43537a05fda2bdff54a7d8248873591691/patool-1.12.tar.gz"
sha256 "e3180cf8bfe13bedbcf6f5628452fca0c2c84a3b5ae8c2d3f55720ea04cb1097"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "PyGithub" do
url "https://files.pythonhosted.org/packages/98/36/386d282903c572b18abc36de68aaf4146db4659c82dceee009ef88a86b67/PyGithub-1.55.tar.gz"
sha256 "1bbfff9372047ff3f21d5cd8e07720f3dbfdaf6462fcaed9d815f528f1ba7283"
end
resource "PyJWT" do
url "https://files.pythonhosted.org/packages/b9/6d/e5ac4eb80724cb4201de6dcbc1e8a9f5cb65a0424b30c4c69e49bc1363d1/PyJWT-2.2.0.tar.gz"
sha256 "a0b9a3b4e5ca5517cac9f1a6e9cd30bf1aa80be74fcdf4e28eded582ecfcfbae"
end
resource "PyNaCl" do
url "https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz"
sha256 "54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505"
end
resource "python-gitlab" do
url "https://files.pythonhosted.org/packages/4f/47/5c51420baf1ea3141d7da32a0a92541a5073491c8da8bd309e9ca52c5e8d/python-gitlab-2.10.1.tar.gz"
sha256 "7afa7d7c062fa62c173190452265a30feefb844428efc58ea5244f3b9fc0d40f"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
end
resource "requests-toolbelt" do
url "https://files.pythonhosted.org/packages/28/30/7bf7e5071081f761766d46820e52f4b16c8a08fef02d2eb4682ca7534310/requests-toolbelt-0.9.1.tar.gz"
sha256 "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"
end
resource "simplejson" do
url "https://files.pythonhosted.org/packages/01/52/41c71718f941c9a5abebfaa24e3c14e3c0229327b7ebd21348989845ed8f/simplejson-3.17.5.tar.gz"
sha256 "91cfb43fb91ff6d1e4258be04eee84b51a4ef40a28d899679b9ea2556322fb50"
end
resource "tqdm" do
url "https://files.pythonhosted.org/packages/e3/c1/b3e42d5b659ca598508e2a9ef315d5eef0a970f874ef9d3b38d4578765bd/tqdm-4.62.3.tar.gz"
sha256 "d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/80/be/3ee43b6c5757cabea19e75b8f46eaf05a2f5144107d7db48c7cf3a864f73/urllib3-1.26.7.tar.gz"
sha256 "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
end
resource "Whoosh" do
url "https://files.pythonhosted.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/Whoosh-2.7.4.tar.gz"
sha256 "7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83"
end
resource "wrapt" do
url "https://files.pythonhosted.org/packages/e2/30/dae34ff8afa579098e5796452c414efa4b2738afda40318fdb26e1a8edc1/wrapt-1.13.1.tar.gz"
sha256 "909a80ce028821c7ad01bdcaa588126825931d177cdccd00b3545818d4a195ce"
end
resource "zipp" do
url "https://files.pythonhosted.org/packages/02/bf/0d03dbdedb83afec081fefe86cae3a2447250ef1a81ac601a9a56e785401/zipp-3.6.0.tar.gz"
sha256 "71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa<PASSWORD>"
end
def install
virtualenv_install_with_resources
end
test do
system bin/"datalad", "create", "-d", "testdata"
assert_predicate testpath/"testdata", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/libfuse@2.rb
|
<filename>Formula/libfuse@2.rb
class LibfuseAT2 < Formula
desc "Reference implementation of the Linux FUSE interface"
homepage "https://github.com/libfuse/libfuse"
url "https://github.com/libfuse/libfuse/releases/download/fuse-2.9.9/fuse-2.9.9.tar.gz"
sha256 "d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5"
license any_of: ["LGPL-2.1-only", "GPL-2.0-only"]
bottle do
sha256 x86_64_linux: "b13b4780fa7d33cd2e6fb7f55d44e693579264923381f934d417d108c0a246cc" # linuxbrew-core
end
keg_only :versioned_formula
depends_on :linux
def install
ENV["INIT_D_PATH"] = etc/"init.d"
ENV["UDEV_RULES_PATH"] = etc/"udev/rules.d"
ENV["MOUNT_FUSE_PATH"] = bin
system "./configure", *std_configure_args, "--enable-lib", "--enable-util", "--disable-example"
system "make"
system "make", "install"
(pkgshare/"doc").install "doc/kernel.txt"
end
test do
(testpath/"fuse-test.c").write <<~EOS
#define FUSE_USE_VERSION 21
#include <fuse/fuse.h>
#include <stdio.h>
int main() {
printf("%d%d\\n", FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION);
printf("%d\\n", fuse_version());
return 0;
}
EOS
system ENV.cc, "fuse-test.c", "-L#{lib}", "-I#{include}", "-D_FILE_OFFSET_BITS=64", "-lfuse", "-o", "fuse-test"
system "./fuse-test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/tiny-fugue.rb
|
class TinyFugue < Formula
desc "Programmable MUD client"
homepage "https://tinyfugue.sourceforge.io/"
url "https://downloads.sourceforge.net/project/tinyfugue/tinyfugue/5.0%20beta%208/tf-50b8.tar.gz"
version "5.0b8"
sha256 "3750a114cf947b1e3d71cecbe258cb830c39f3186c369e368d4662de9c50d989"
license "GPL-2.0-or-later"
revision 2
livecheck do
url :stable
regex(%r{url=.*?/tf[._-]v?(\d+(?:\.\d+)*(?:[a-z]\d+?)?)\.t}i)
strategy :sourceforge do |page, regex|
page.scan(regex).map { |match| match.first.sub(/^(\d)(\d)([a-z])/i, '\1.\2\3') }
end
end
bottle do
sha256 arm64_big_sur: "de2a1d16b807c1cede3b8f574a1dbaa5a8bda47b4c65307b33b975b9eec665f7"
sha256 big_sur: "c7e39f8d3cf009ff749208b5b2efa718a802a2ca82368273b1076a0607a10e76"
sha256 catalina: "d10777dd98ae76a048caed1179f7a65f8ee59256dcb94cfcd89ac1da0e135209"
sha256 mojave: "ea162f2b1644a44d95a2847ec34133661008fff66306e3eda790a25f253f2165"
sha256 high_sierra: "b1ddefa5c2a52f3399f5a90c0586d65e5e7ccc9940715cbe682a1a30e8dc6e76"
sha256 x86_64_linux: "d0966131e4d68d0ec304a18982662fd91a41ee6f4ebd06202c0c16b68a115b85" # linuxbrew-core
end
depends_on "libnet"
depends_on "openssl@1.1"
depends_on "pcre"
uses_from_macos "ncurses"
conflicts_with "tee-clc", because: "both install a `tf` binary"
# pcre deprecated pcre_info. Switch to HB pcre-8.31 and pcre_fullinfo.
# Not reported upstream; project is in stasis since 2007.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9dc80757ba32bf5d818d70fc26bb24b6f/tiny-fugue/5.0b8.patch"
sha256 "22f660dc0c0d0691ccaaacadf2f3c47afefbdc95639e46c6b4b77a0545b6a17c"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-getaddrinfo",
"--enable-termcap=ncurses"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/jpdfbookmarks.rb
|
<reponame>0x07CB/linuxbrew-core
class Jpdfbookmarks < Formula
desc "Create and edit bookmarks on existing PDF files"
homepage "https://sourceforge.net/projects/jpdfbookmarks/"
url "https://downloads.sourceforge.net/project/jpdfbookmarks/JPdfBookmarks-2.5.2/jpdfbookmarks-2.5.2.tar.gz"
sha256 "8ab51c20414591632e48ad3817e6c97e9c029db8aaeff23d74c219718cfe19f9"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "91470e2dbd04216a27d182e0645399b3460744315b564f2a6ae5b86d76da2b14"
sha256 cellar: :any_skip_relocation, big_sur: "849a02893bc8fea3cd3813695f7c6d30598e53dccb4bba7933d745d221258a24"
sha256 cellar: :any_skip_relocation, catalina: "849a02893bc8fea3cd3813695f7c6d30598e53dccb4bba7933d745d221258a24"
sha256 cellar: :any_skip_relocation, mojave: "849a02893bc8fea3cd3813695f7c6d30598e53dccb4bba7933d745d221258a24"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a55444d161c8b6a7186b252fd79e2f63831bca8f54e4a0d4633c76988cce96c6" # linuxbrew-core
end
depends_on "openjdk"
def install
libexec.install Dir["jpdfbookmarks.jar", "lib"]
bin.write_jar_script libexec/"jpdfbookmarks.jar", "jpdfbookmarks"
end
test do
test_bookmark = "Test/1,Black,notBold,notItalic,open,FitPage"
(testpath/"in.txt").write(test_bookmark)
system bin/"jpdfbookmarks", test_fixtures("test.pdf"), "-a", "in.txt", "-o", "out.pdf"
assert_predicate testpath/"out.pdf", :exist?
assert_equal test_bookmark, shell_output("#{bin}/jpdfbookmarks out.pdf -d").strip
end
end
|
0x07CB/linuxbrew-core
|
Formula/code-minimap.rb
|
class CodeMinimap < Formula
desc "High performance code minimap generator"
homepage "https://github.com/wfxr/code-minimap"
url "https://github.com/wfxr/code-minimap/archive/v0.6.1.tar.gz"
sha256 "ec526e174634f865f144b306145631693ef6c85fc463189049d29c92a5f1d158"
license any_of: ["Apache-2.0", "MIT"]
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "eb2b39a8a79976931f805356dd7d53f399edfa08933ecab84829353cfb721b0a"
sha256 cellar: :any_skip_relocation, big_sur: "60c121e75de1556e987debfdea99956e53850096ebd4e4e92d65a7e126040470"
sha256 cellar: :any_skip_relocation, catalina: "58739e29a7c5a211eb68487fea0abac801eef75ebbc01fc6b0836230a6720359"
sha256 cellar: :any_skip_relocation, mojave: "11e218821612a7678eabf80f82911f8f61bcdbba4b5a5a18be7130714a88fde2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "89a31ae7bd9049b489449afdeff69b43962fac17990a031b7fee7760370c5248" # linuxbrew-core
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
bash_completion.install "completions/bash/code-minimap.bash"
fish_completion.install "completions/fish/code-minimap.fish"
zsh_completion.install "completions/zsh/_code-minimap"
end
test do
(testpath/"test.txt").write("hello world")
assert_equal "⠉⠉⠉⠉⠉⠁\n", shell_output("#{bin}/code-minimap #{testpath}/test.txt")
end
end
|
0x07CB/linuxbrew-core
|
Formula/elfutils.rb
|
<reponame>0x07CB/linuxbrew-core
class Elfutils < Formula
desc "Libraries and utilities for handling ELF objects"
homepage "https://fedorahosted.org/elfutils/"
url "https://sourceware.org/elfutils/ftp/0.185/elfutils-0.185.tar.bz2"
sha256 "dc8d3e74ab209465e7f568e1b3bb9a5a142f8656e2b57d10049a73da2ae6b5a6"
license all_of: ["GPL-2.0-or-later", "GPL-3.0-or-later", "LGPL-2.0-only"]
livecheck do
url "https://sourceware.org/elfutils/ftp/"
regex(%r{href=(?:["']?v?(\d+(?:\.\d+)+)/?["' >]|.*?elfutils[._-]v?(\d+(?:\.\d+)+)\.t)}i)
end
bottle do
sha256 x86_64_linux: "ce01b01cd668db7abb2afd19e97911e2a52dd8009cf2ac538dabc9591fb181bb" # linuxbrew-core
end
depends_on "m4" => :build
depends_on "bzip2"
depends_on :linux
depends_on "xz"
depends_on "zlib"
def install
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-libdebuginfod",
"--disable-debuginfod",
"--program-prefix=elfutils-",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert_match "elf_kind", shell_output("#{bin}/elfutils-nm #{bin}/elfutils-nm")
end
end
|
0x07CB/linuxbrew-core
|
Formula/scons.rb
|
class Scons < Formula
include Language::Python::Virtualenv
desc "Substitute for classic 'make' tool with autoconf/automake functionality"
homepage "https://www.scons.org/"
url "https://files.pythonhosted.org/packages/5e/f1/82e5d9c0621f116415526181610adf3f9b07ffca419620f4edfc41ef5237/SCons-4.2.0.tar.gz"
sha256 "691893b63f38ad14295f5104661d55cb738ec6514421c6261323351c25432b0a"
license "MIT"
revision 1
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e2d4ba2cf999877f61995e55235552997d2236d66d69d29d9e93059876cf7656"
sha256 cellar: :any_skip_relocation, big_sur: "a5e7cc6c2d5dc05d1cd02ca3927425ccaf583cbbe2a8d97760bfa45d8479bd80"
sha256 cellar: :any_skip_relocation, catalina: "a5e7cc6c2d5dc05d1cd02ca3927425ccaf583cbbe2a8d97760bfa45d8479bd80"
sha256 cellar: :any_skip_relocation, mojave: "a5e7cc6c2d5dc05d1cd02ca3927425ccaf583cbbe2a8d97760bfa45d8479bd80"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6ea01cfe768ad1e59ec0c1dc6e777c6ab36fb821ca553bf5e54d9f74dd35b07f" # linuxbrew-core
end
depends_on "python@3.10"
def install
virtualenv_install_with_resources
end
test do
(testpath/"test.c").write <<~EOS
#include <stdio.h>
int main()
{
printf("Homebrew");
return 0;
}
EOS
(testpath/"SConstruct").write "Program('test.c')"
system bin/"scons"
assert_equal "Homebrew", shell_output("#{testpath}/test")
end
end
|
0x07CB/linuxbrew-core
|
Formula/loudmouth.rb
|
<filename>Formula/loudmouth.rb
class Loudmouth < Formula
desc "Lightweight C library for the Jabber protocol"
homepage "https://mcabber.com"
url "https://mcabber.com/files/loudmouth/loudmouth-1.5.4.tar.bz2"
sha256 "31cbc91c1fddcc5346b3373b8fb45594e9ea9cc7fe36d0595e8912c47ad94d0d"
license "LGPL-2.1"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0b60046b8a592ab656ed824b75774f2e9e8f9749b0a5edb024190019c36da766"
sha256 cellar: :any_skip_relocation, big_sur: "d770f0cd1a81375c306d0bc6fdd81610d27bc844fd5086518aaa7f8fa6252a14"
sha256 cellar: :any_skip_relocation, catalina: "b83be4ad6fce30f484015b344d21e3e425860b3c8a2cb6a609e059611d03caf9"
sha256 cellar: :any_skip_relocation, mojave: "681944a95c5642a4651110e5d91d88acf335176b34d85f0f159aef291f07b38d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f346113f01357da85cd4411eb56e4398457b8e22a9aad191d3cdfa371027759f" # linuxbrew-core
end
head do
url "https://github.com/mcabber/loudmouth.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "glib"
depends_on "gnutls"
depends_on "libidn"
def install
system "./autogen.sh", "-n" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--with-ssl=gnutls"
system "make"
system "make", "check"
system "make", "install"
(pkgshare/"examples").install Dir["examples/*.c"]
end
test do
cp pkgshare/"examples/lm-send-async.c", testpath
system ENV.cc, "lm-send-async.c", "-o", "test",
"-L#{lib}", "-L#{Formula["glib"].opt_lib}", "-lloudmouth-1", "-lglib-2.0",
"-I#{include}/loudmouth-1.0",
"-I#{Formula["glib"].opt_include}/glib-2.0",
"-I#{Formula["glib"].opt_lib}/glib-2.0/include"
system "./test", "--help"
end
end
|
0x07CB/linuxbrew-core
|
Formula/sdl2_mixer.rb
|
<filename>Formula/sdl2_mixer.rb
class Sdl2Mixer < Formula
desc "Sample multi-channel audio mixer library"
homepage "https://www.libsdl.org/projects/SDL_mixer/"
url "https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz"
sha256 "b4cf5a382c061cd75081cf246c2aa2f9df8db04bdda8dcdc6b6cca55bede2419"
license "Zlib"
revision 2
livecheck do
url :homepage
regex(/href=.*?SDL2_mixer[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "f3c822ba6f80353d0fee40ea106025d4519e1dbb141d097fef092393e95fb0b7"
sha256 cellar: :any, big_sur: "1529a00916c4066d8adc0987b627e2bc7cf66aca063562cb3af64f8fa5f231f7"
sha256 cellar: :any, catalina: "9779416544a0d71a8206b45895a3060baca2bf0877441017aaa6b1d6136654a2"
sha256 cellar: :any, mojave: "9c13dd597aca2e0d5f53f2a7b4a1ea4e5a724c08796ba0eaf71a54f9cc714fbc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "412de036ef39cab5f7e1907711c2273a3d671e995ddeda320cad9cfedaa72a28" # linuxbrew-core
end
head do
url "https://github.com/libsdl-org/SDL_mixer.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "flac"
depends_on "libmodplug"
depends_on "libvorbis"
depends_on "mpg123"
depends_on "sdl2"
def install
inreplace "SDL2_mixer.pc.in", "@prefix@", HOMEBREW_PREFIX
if build.head?
mkdir "build"
system "./autogen.sh"
end
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--enable-music-flac
--disable-music-flac-shared
--disable-music-midi-fluidsynth
--disable-music-midi-fluidsynth-shared
--disable-music-mod-mikmod-shared
--disable-music-mod-modplug-shared
--disable-music-mp3-mpg123-shared
--disable-music-ogg-shared
--enable-music-mod-mikmod
--enable-music-mod-modplug
--enable-music-ogg
--enable-music-mp3-mpg123
]
system "./configure", *args
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#include <SDL2/SDL_mixer.h>
int main()
{
int success = Mix_Init(0);
Mix_Quit();
return success;
}
EOS
system ENV.cc, "-I#{Formula["sdl2"].opt_include}/SDL2",
"test.c", "-L#{lib}", "-lSDL2_mixer", "-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libbsd.rb
|
class Libbsd < Formula
desc "Utility functions from BSD systems"
homepage "https://libbsd.freedesktop.org/"
url "https://libbsd.freedesktop.org/releases/libbsd-0.11.3.tar.xz"
sha256 "ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1"
license "BSD-3-Clause"
livecheck do
url "https://libbsd.freedesktop.org/releases/"
regex(/href=.*?libbsd[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "2de7abc50f241aae786f0ff63a941586a3f0e2ec80e7a128aed59c41e88dca6f" # linuxbrew-core
end
depends_on "libmd"
depends_on :linux
def install
system "./configure",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "strtonum", shell_output("nm #{lib/"libbsd.so"}")
end
end
|
0x07CB/linuxbrew-core
|
Formula/age.rb
|
class Age < Formula
desc "Simple, modern, secure file encryption"
homepage "https://filippo.io/age"
url "https://github.com/FiloSottile/age/archive/v1.0.0.tar.gz"
sha256 "8d27684f62f9dc74014035e31619e2e07f8b56257b1075560456cbf05ddbcfce"
license "BSD-3-Clause"
head "https://github.com/FiloSottile/age.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "845a84de1a024a350ceacdfcf11745df8100df2377b18efa3ad354528127c72c"
sha256 cellar: :any_skip_relocation, big_sur: "f0e0fc5e332fe33bd31d031ffe0a9b58cdd4f4d6f8091c6746e80adaf68ffd58"
sha256 cellar: :any_skip_relocation, catalina: "309d3c08abe1e8559c8cb53cbf178c52d4286a50c85ad8e1a5b6b400f0fdd296"
sha256 cellar: :any_skip_relocation, mojave: "ae8a1716f79382d7367d87c28d5b9c77a13d2c85c0680b955378eecd0c446783"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d605619aada179ae390b4f61c17a2bde36429ae70e28a03e4056c2be0139e4d6" # linuxbrew-core
end
depends_on "go" => :build
def install
bin.mkpath
system "go", "build", *std_go_args(ldflags: "-X main.Version=v#{version}"), "-o", bin, "filippo.io/age/cmd/..."
man1.install "doc/age.1"
man1.install "doc/age-keygen.1"
end
test do
system bin/"age-keygen", "-o", "key.txt"
pipe_output("#{bin}/age -e -i key.txt -o test.age", "test")
assert_equal "test", shell_output("#{bin}/age -d -i key.txt test.age")
end
end
|
0x07CB/linuxbrew-core
|
Formula/cdrtools.rb
|
<reponame>0x07CB/linuxbrew-core<gh_stars>100-1000
class Cdrtools < Formula
desc "CD/DVD/Blu-ray premastering and recording software"
homepage "https://cdrtools.sourceforge.io/private/cdrecord.html"
url "https://downloads.sourceforge.net/project/cdrtools/alpha/cdrtools-3.02a09.tar.gz"
mirror "https://fossies.org/linux/misc/cdrtools-3.02a09.tar.gz"
sha256 "c7e4f732fb299e9b5d836629dadf5512aa5e6a5624ff438ceb1d056f4dcb07c2"
livecheck do
# For 3.0.2a we are temporarily using the "alpha" due to a long wait for release.
# This can go back to "url :stable" later
url "https://downloads.sourceforge.net/project/cdrtools/alpha"
regex(%r{url=.*?/cdrtools[._-]v?(\d+(?:\.\d+)+(a\d\d)?)\.t}i)
end
bottle do
sha256 arm64_big_sur: "06bd97603df2dba522d6cb18b50815b3cb4f6b619b3244e6d870009831129a37"
sha256 big_sur: "dd2f2609309ef54a2b9289ef79032222714f01c86ecb280d8d79ebc520488ae6"
sha256 catalina: "411c2dc1a6931d3c7c299d7c9d73129efbf45a39a421518158a3852de554fcaf"
sha256 mojave: "4669f544745a05b8ef4ffd9bc1ea446ef7cda4c98f32b26279c81af803f1ab7e"
sha256 x86_64_linux: "9f705017f1a6c2e647f37d87f4a9472a83e327505ebed822169e8821e713c958" # linuxbrew-core
end
depends_on "smake" => :build
conflicts_with "dvdrtools",
because: "both dvdrtools and cdrtools install binaries by the same name"
def install
# Speed-up the build by skipping the compilation of the profiled libraries.
# This could be done by dropping each occurrence of *_p.mk from the definition
# of MK_FILES in every lib*/Makefile. But it is much easier to just remove all
# lib*/*_p.mk files. The latter method produces warnings but works fine.
rm_f Dir["lib*/*_p.mk"]
# CFLAGS is required to work around autoconf breakages as of 3.02a
system "smake", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}",
"CFLAGS=-Wno-implicit-function-declaration",
"install"
# cdrtools tries to install some generic smake headers, libraries and
# manpages, which conflict with the copies installed by smake itself
(include/"schily").rmtree
%w[libschily.a libdeflt.a libfind.a].each do |file|
(lib/file).unlink
end
man5.rmtree
end
test do
system "#{bin}/cdrecord", "-version"
system "#{bin}/cdda2wav", "-version"
date = shell_output("date")
mkdir "subdir" do
(testpath/"subdir/testfile.txt").write(date)
system "#{bin}/mkisofs", "-r", "-o", "../test.iso", "."
end
assert_predicate testpath/"test.iso", :exist?
system "#{bin}/isoinfo", "-R", "-i", "test.iso", "-X"
assert_predicate testpath/"testfile.txt", :exist?
assert_equal date, File.read("testfile.txt")
end
end
|
0x07CB/linuxbrew-core
|
Formula/gimme-aws-creds.rb
|
<reponame>0x07CB/linuxbrew-core
class GimmeAwsCreds < Formula
include Language::Python::Virtualenv
desc "CLI to retrieve AWS credentials from Okta"
homepage "https://github.com/Nike-Inc/gimme-aws-creds"
url "https://files.pythonhosted.org/packages/d9/c1/3b744022fe388e95d9f7011c26a1f5d2a844c1a49e385403350f3e9d0815/gimme%20aws%20creds-2.4.3.tar.gz"
sha256 "4efd68f3e4f74672b4dc69595307a2abe34600f9d91ce18f202b069407fd0b69"
license "Apache-2.0"
bottle do
sha256 cellar: :any, arm64_big_sur: "e906f63ae3668981e1fec3afca1a4b2d8b875fb4cc4dcad6f0135c5ce84b16fb"
sha256 cellar: :any, big_sur: "400eb67cf04cff7d0c4eac4a4dc1f8d6e0853d8c03390e455d4af6e3dd5b8bd7"
sha256 cellar: :any, catalina: "c53ee6d613ddd45e3305607706d4b0e9c9d370415aef166c6570f57ad24b1990"
sha256 cellar: :any, mojave: "f8c5d2d4a68df930855edbc57edb5ea16cdf48db02e587b49fc878e67170f2f9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7db3951a9c7ed426f15984cf884340645cb200b600121fbd77d4b85de58036dc" # linuxbrew-core
end
depends_on "python@3.9"
depends_on "rust"
uses_from_macos "libffi"
on_macos do
resource "pyobjc-core" do
url "https://files.pythonhosted.org/packages/31/f2/880cc03678a2de93f7b60ab94b35323b7b1be213d775113b2a1b8e975201/pyobjc-core-7.1.tar.gz"
sha256 "a0616d5d816b4471f8f782c3a9a8923d2cc85014d88ad4f7fec694be9e6ea349"
end
resource "pyobjc-framework-Cocoa" do
url "https://files.pythonhosted.org/packages/e3/0a/44d42b3e54c26d8aa24361528802a6b830d0c97a7ddc6bedcd70ad02023f/pyobjc-framework-Cocoa-7.1.tar.gz"
sha256 "67966152b3d38a0225176fceca2e9f56d849c8e7445548da09a00cb13155ec3e"
end
resource "pyobjc-framework-LocalAuthentication" do
url "https://files.pythonhosted.org/packages/16/5e/a8d850157f828756f116ca1ccb767ded91d31a50e88bbd84a55344c4a78c/pyobjc-framework-LocalAuthentication-7.1.tar.gz"
sha256 "032d9f74cd79341a1d456df9212b0964f0af8ca6adff0a2f8941fdc241571975"
end
end
on_linux do
depends_on "pkg-config" => :build
end
resource "beautifulsoup4" do
url "https://files.pythonhosted.org/packages/6b/c3/d31704ae558dcca862e4ee8e8388f357af6c9d9acb0cad4ba0fbbd350d9a/beautifulsoup4-4.9.3.tar.gz"
sha256 "84729e322ad1d5b4d25f805bfa05b902dd96450f43842c4e99067d5e1369eb25"
end
resource "boto3" do
url "https://files.pythonhosted.org/packages/e4/c3/ea17ed52138ba29aa6cdddec791fcf8865d54c26c74444a60929247069e5/boto3-1.17.24.tar.gz"
sha256 "bf4a321da7dbe0c5a20380ff9f6a8a4e2e135e72a40348890122a197368b4421"
end
resource "botocore" do
url "https://files.pythonhosted.org/packages/5a/19/d40be5a0a2484744deedc796fbf61996a55e248ed4f89916c6900350a456/botocore-1.20.24.tar.gz"
sha256 "9398bcd9491442aa559a7c111b96004bb06af612e53baa7165b0a646bb43534d"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/06/a9/cd1fd8ee13f73a4d4f491ee219deeeae20afefa914dfb4c130cfc9dc397a/certifi-2020.12.5.tar.gz"
sha256 "1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"
end
resource "cffi" do
url "https://files.pythonhosted.org/packages/a8/20/025f59f929bbcaa579704f443a438135918484fffaacfaddba776b374563/cffi-1.14.5.tar.gz"
sha256 "fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c"
end
resource "chardet" do
url "https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz"
sha256 "0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"
end
resource "configparser" do
url "https://files.pythonhosted.org/packages/b1/83/fa54eee6643ffb30ab5a5bebdb523c697363658e46b85729e3d587a3765e/configparser-3.8.1.tar.gz"
sha256 "bc37850f0cc42a1725a796ef7d92690651bf1af37d744cc63161dac62cabee17"
end
resource "cryptography" do
url "https://files.pythonhosted.org/packages/fa/2d/2154d8cb773064570f48ec0b60258a4522490fcb115a6c7c9423482ca993/cryptography-3.4.6.tar.gz"
sha256 "2d32223e5b0ee02943f32b19245b61a62db83a882f0e76cc564e1cec60d48f87"
end
resource "ctap-keyring-device" do
url "https://files.pythonhosted.org/packages/c4/c5/5c4ce510d457679c8886229ddbdc2a84969d63e50fe9fb09d6975d8e500e/ctap-keyring-device-1.0.6.tar.gz"
sha256 "a44264bb3d30c4ab763e4a3098b136602f873d86b666210d2bb1405b5e0473f6"
end
resource "fido2" do
url "https://files.pythonhosted.org/packages/80/c3/5077ee98edd23ee00b9f5f889fd65e8dd8dbe7717d663d3b5137e31f07e6/fido2-0.9.1.tar.gz"
sha256 "8680ee25238e2307596eb3900a0f8c0d9cc91189146ed8039544f1a3a69dfe6e"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/ea/b7/e0e3c1c467636186c39925827be42f16fee389dc404ac29e930e9136be70/idna-2.10.tar.gz"
sha256 "b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"
end
resource "importlib-metadata" do
url "https://files.pythonhosted.org/packages/48/18/08eaa583eb21602e86e32d534fa7f40159774566037e60a69822b10ef3ad/importlib_metadata-3.7.2.tar.gz"
sha256 "18d5ff601069f98d5d605b6a4b50c18a34811d655c55548adc833e687289acde"
end
resource "jmespath" do
url "https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz"
sha256 "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
end
resource "keyring" do
url "https://files.pythonhosted.org/packages/e8/3e/4daf55c21dc38dfa39a5780fb1c9a15dbbe8d680a715b0c81c29be51662c/keyring-23.0.0.tar.gz"
sha256 "237ff44888ba9b3918a7dcb55c8f1db909c95b6f071bfb46c6918f33f453a68a"
end
resource "okta" do
url "https://files.pythonhosted.org/packages/e8/2a/1c1bae7ed0b429cfe04caaff4ec06383669b651b315328b15f87ab67d347/okta-0.0.4.tar.gz"
sha256 "53e792c68d3684ff4140b4cb1c02af3821090368f8110fde54c0bdb638449332"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/be/ed/5bbc91f03fa4c839c4c7360375da77f9659af5f7086b7a7bdda65771c8e0/python-dateutil-2.8.1.tar.gz"
sha256 "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/6b/47/c14abc08432ab22dc18b9892252efaf005ab44066de871e72a38d6af464b/requests-2.25.1.tar.gz"
sha256 "27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"
end
resource "s3transfer" do
url "https://files.pythonhosted.org/packages/08/e1/3ee2096ebaeeb8c186d20ed16c8faf4a503913e5c9a0e14cd6b8ffc405a3/s3transfer-0.3.4.tar.gz"
sha256 "7fdddb4f22275cf1d32129e21f056337fd2a80b6ccef1664528145b72c49e6d2"
end
resource "six" do
url "https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz"
sha256 "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"
end
resource "soupsieve" do
url "https://files.pythonhosted.org/packages/54/b9/1584ee0cd971ea935447c87bbc9d195d981feec446dd0af799d9d95c9d86/soupsieve-2.2.tar.gz"
sha256 "407fa1e8eb3458d1b5614df51d9651a1180ea5fedf07feb46e45d7e25e6d6cdd"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/d7/8d/7ee68c6b48e1ec8d41198f694ecdc15f7596356f2ff8e6b1420300cf5db3/urllib3-1.26.3.tar.gz"
sha256 "de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73"
end
resource "zipp" do
url "https://files.pythonhosted.org/packages/38/f9/4fa6df2753ded1bcc1ce2fdd8046f78bd240ff7647f5c9bcf547c0df77e3/zipp-3.4.1.tar.gz"
sha256 "3607921face881ba3e026887d8150cca609d517579abe052ac81fc5aeffdbd76"
end
def install
virtualenv_install_with_resources
end
test do
# Workaround gimme-aws-creds bug which runs action-configure twice when config file is missing.
config_file = Pathname(".okta_aws_login_config")
touch(config_file)
assert_match "Okta Configuration Profile Name",
pipe_output("#{bin}/gimme-aws-creds --profile TESTPROFILE --action-configure 2>&1",
"https://something.oktapreview.com\n\n\n\n\n\n\n\n\n\n\n")
assert_match "", config_file.read
assert_match version.to_s, shell_output("#{bin}/gimme-aws-creds --version")
end
end
|
0x07CB/linuxbrew-core
|
Formula/p7zip.rb
|
<gh_stars>100-1000
class P7zip < Formula
desc "7-Zip (high compression file archiver) implementation"
homepage "https://github.com/jinfeihan57/p7zip"
url "https://github.com/jinfeihan57/p7zip/archive/v17.04.tar.gz"
sha256 "ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef"
license all_of: ["LGPL-2.1-or-later", "GPL-2.0-or-later"]
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d1e2497a5256b9211572534456bb7271c9d04d10fc2e12599b95e0ddf4f1991b"
sha256 cellar: :any_skip_relocation, big_sur: "c4d62f05f0cba984aa6b5712debc4f7d3b2c3bece0c503633a588cb209c911c2"
sha256 cellar: :any_skip_relocation, catalina: "bea86999db7dee5f0cb78d3a72d875d822ec73ebb2a6e7d46cf27ae66243c645"
sha256 cellar: :any_skip_relocation, mojave: "1484f0f3a0a4812dccb5f388c6671a7e524b001872b0df6d7cabc160c2f03989"
sha256 cellar: :any_skip_relocation, x86_64_linux: "107f64aa150dd06d246a04e5415eeac8c36988a04f6dfedbae78b669cbec46fd" # linuxbrew-core
end
# Remove non-free RAR sources
patch :DATA
def install
if OS.mac?
mv "makefile.macosx_llvm_64bits", "makefile.machine"
else
mv "makefile.linux_any_cpu", "makefile.machine"
end
system "make", "all3",
"CC=#{ENV.cc} $(ALLFLAGS)",
"CXX=#{ENV.cxx} $(ALLFLAGS)"
system "make", "DEST_HOME=#{prefix}",
"DEST_MAN=#{man}",
"install"
end
test do
(testpath/"foo.txt").write("hello world!\n")
system bin/"7z", "a", "-t7z", "foo.7z", "foo.txt"
system bin/"7z", "e", "foo.7z", "-oout"
assert_equal "hello world!\n", File.read(testpath/"out/foo.txt")
end
end
__END__
diff -u -r a/makefile b/makefile
--- a/makefile 2021-02-21 14:27:14.000000000 +0800
+++ b/makefile 2021-02-21 14:27:31.000000000 +0800
@@ -31,7 +31,6 @@
$(MAKE) -C CPP/7zip/UI/Client7z depend
$(MAKE) -C CPP/7zip/UI/Console depend
$(MAKE) -C CPP/7zip/Bundles/Format7zFree depend
- $(MAKE) -C CPP/7zip/Compress/Rar depend
$(MAKE) -C CPP/7zip/UI/GUI depend
$(MAKE) -C CPP/7zip/UI/FileManager depend
@@ -42,7 +41,6 @@
common7z:common
$(MKDIR) bin/Codecs
$(MAKE) -C CPP/7zip/Bundles/Format7zFree all
- $(MAKE) -C CPP/7zip/Compress/Rar all
lzham:common
$(MKDIR) bin/Codecs
@@ -67,7 +65,6 @@
$(MAKE) -C CPP/7zip/UI/FileManager clean
$(MAKE) -C CPP/7zip/UI/GUI clean
$(MAKE) -C CPP/7zip/Bundles/Format7zFree clean
- $(MAKE) -C CPP/7zip/Compress/Rar clean
$(MAKE) -C CPP/7zip/Compress/Lzham clean
$(MAKE) -C CPP/7zip/Bundles/LzmaCon clean2
$(MAKE) -C CPP/7zip/Bundles/AloneGCOV clean
|
0x07CB/linuxbrew-core
|
Formula/davix.rb
|
class Davix < Formula
desc "Library and tools for advanced file I/O with HTTP-based protocols"
homepage "https://github.com/cern-fts/davix"
url "https://github.com/cern-fts/davix/releases/download/R_0_8_0/davix-0.8.0.tar.gz"
sha256 "2f108da0408a83fb5b9f0c68150d360ba733e4b3a0fe298d45b0d32d28ab7124"
license "LGPL-2.1-or-later"
head "https://github.com/cern-fts/davix.git"
bottle do
sha256 cellar: :any, arm64_big_sur: "c48fc0895374ecf6c509f59fe07306b717fc34b2e5c4ce0773740ce7a5bf392f"
sha256 cellar: :any, big_sur: "4181ed1f39699aace812fdff70a09344abc920c6f4aad9fb61bfb97f3fecbd17"
sha256 cellar: :any, catalina: "f5c6cbfd4ed205e39a5401cc890ac0a5c0768e36e9e7a515519278144b0ec95a"
sha256 cellar: :any, mojave: "847ba0b1e3227c85215c5eb54a10da5fc9aa231b98059e3e01080f02b5bc9f55"
sha256 cellar: :any_skip_relocation, x86_64_linux: "69a563f0abae1b4d919f9996370d0aa5d5366cf36f6a5324a0c97f2e8caeaf22" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "openssl@1.1"
uses_from_macos "libxml2"
on_linux do
depends_on "util-linux"
end
def install
system "cmake", ".", *std_cmake_args, "-DCMAKE_INSTALL_RPATH=#{rpath}"
system "make", "install"
end
test do
system "#{bin}/davix-get", "https://brew.sh"
end
end
|
0x07CB/linuxbrew-core
|
Formula/diceware.rb
|
<filename>Formula/diceware.rb
class Diceware < Formula
include Language::Python::Virtualenv
desc "Passphrases to remember"
homepage "https://github.com/ulif/diceware"
url "https://files.pythonhosted.org/packages/d7/af/85373be6b11706fa1392e52d7fcd47df47f661e238251c931d469e62c5bf/diceware-0.9.6.tar.gz"
sha256 "7ef924ca05ece8eaa5e2746246ab94600b831f1428c70d231790fee5b5078b4e"
license "GPL-3.0"
revision OS.mac? ? 4 : 6
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2132a0edadb2a5374057d739624a028b10e3dbb11a3db965ef58c4bd24c02d30"
sha256 cellar: :any_skip_relocation, big_sur: "7d3214626147512e9733a5a3e5acafcacf5b2b3321dadf72b932d8c42272f8da"
sha256 cellar: :any_skip_relocation, catalina: "7d3214626147512e9733a5a3e5acafcacf5b2b3321dadf72b932d8c42272f8da"
sha256 cellar: :any_skip_relocation, mojave: "7d3214626147512e9733a5a3e5acafcacf5b2b3321dadf72b932d8c42272f8da"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4f1d5aa25eb59c32daf1c4469db8a3932fe4fa9c62cee4137d749c4c453e3c01" # linuxbrew-core
end
depends_on "python@3.10"
def install
virtualenv_install_with_resources
end
test do
assert_match(/(\w+)(-(\w+)){5}/, shell_output("#{bin}/diceware -d-"))
end
end
|
0x07CB/linuxbrew-core
|
Formula/airspyhf.rb
|
class Airspyhf < Formula
desc "Driver and tools for a software-defined radio"
homepage "https://airspy.com/"
url "https://github.com/airspy/airspyhf/archive/1.6.8.tar.gz"
sha256 "cd1e5ae89e09b813b096ae4a328e352c9432a582e03fd7da86760ba60efa77ab"
license "BSD-3-Clause"
head "https://github.com/airspy/airspyhf.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "687651c9d95e06436df3a43a0dca6e3d39747bbf2d92892edf44bddd964c5345"
sha256 cellar: :any, big_sur: "e41261aeca3a632c9c2cb265e321fe2ff88820901ea1d3ea01e42e2a1ba0413a"
sha256 cellar: :any, catalina: "d8b783edf8b206ba8228c96bde21a0dfb42771bc5c46e3493f3dd995a0dfe4d1"
sha256 cellar: :any, mojave: "bf9f1a8213e873c37f1ebae5b6d986774abcf882c272932badffbf3e23cacddb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e9d30b5b22a4dc96558528d46a73cdb6102b49601f9fe04abfc3f9c812606600" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "libusb"
def install
args = std_cmake_args
libusb = Formula["libusb"]
args << "-DLIBUSB_INCLUDE_DIR=#{libusb.opt_include}/libusb-#{libusb.version.major_minor}"
args << "-DLIBUSB_LIBRARIES=#{libusb.opt_lib/shared_library("libusb-#{libusb.version.major_minor}")}"
mkdir "build" do
system "cmake", "..", *args
system "make", "install"
end
end
test do
(testpath/"test.c").write <<~EOS
#include <libairspyhf/airspyhf.h>
int main()
{
uint64_t serials[256];
int n = airspyhf_list_devices(serials, 256);
if (n == 0)
{
return 0;
}
return 1;
}
EOS
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lairspyhf", "-lm", "-o", "test"
system "./test"
assert_match version.to_s, shell_output("#{bin}/airspyhf_lib_version").chomp
end
end
|
0x07CB/linuxbrew-core
|
Formula/as-tree.rb
|
<reponame>0x07CB/linuxbrew-core
class AsTree < Formula
desc "Print a list of paths as a tree of paths 🌳"
homepage "https://github.com/jez/as-tree"
url "https://github.com/jez/as-tree/archive/0.12.0.tar.gz"
sha256 "2af03a2b200041ac5c7a20aa1cea0dcc21fb83ac9fe9a1cd63cb02adab299456"
license "BlueOak-1.0.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "88d57e70554e56a2405b3369e6ae2d1e507b5dc331d2c5b1bbf82726fe13b87a"
sha256 cellar: :any_skip_relocation, big_sur: "7397711b05fca437e6cc9489ef118a2c5b997a16190ecfdd7df773b749f5903a"
sha256 cellar: :any_skip_relocation, catalina: "2a83bda57ef793c3c3316df0e365175d0207b7bfd9083aeb82120516713bfb77"
sha256 cellar: :any_skip_relocation, mojave: "f2d560a3a379e279de99857983c7857f5da4ed16f42ce890a727853cf71ec224"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8f18db34d58f6cffbd5cb6d402825a25fd08e59841810f12277b77d38559ef0c" # linuxbrew-core
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_equal ".\n└── file\n", pipe_output("#{bin}/as-tree", "file")
end
end
|
0x07CB/linuxbrew-core
|
Formula/immortal.rb
|
class Immortal < Formula
desc "OS agnostic (*nix) cross-platform supervisor"
homepage "https://immortal.run/"
url "https://github.com/immortal/immortal/archive/0.24.3.tar.gz"
sha256 "e31d5afb9028fb5047b5a2cc5f96c844f6480d600643a12075550f497e65f5cb"
license "BSD-3-Clause"
head "https://github.com/immortal/immortal.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "38ec22b15e305094470a996cd4a9b4362f225da6d573618403c58bb949c39ee5"
sha256 cellar: :any_skip_relocation, big_sur: "96761cea1b43a1550e499f854dd6969f886a18345dddc24615ca75e10a4bf1e2"
sha256 cellar: :any_skip_relocation, catalina: "4b1f289dbe2b0998f091ebf9fbf6df2894f0eb3d447df2b5840915a53cdb3c09"
sha256 cellar: :any_skip_relocation, mojave: "c35c0718289bac0d3557ac5d17af6895765557d2c5a7124f389653163b40bb36"
sha256 cellar: :any_skip_relocation, high_sierra: "702cb544d23450cf258ef7b9287e99925e8cf715e1708513694f9068233a5cba"
sha256 cellar: :any_skip_relocation, x86_64_linux: "989ed6f49f91539e8c4c36c557b9d4c57595d722f37729f93df7470b5b48fe4b" # linuxbrew-core
end
depends_on "go" => :build
def install
ldflags = "-s -w -X main.version=#{version}"
system "go", "build", "-ldflags", ldflags, "-o", "#{bin}/immortal", "cmd/immortal/main.go"
system "go", "build", "-ldflags", ldflags, "-o", "#{bin}/immortalctl", "cmd/immortalctl/main.go"
system "go", "build", "-ldflags", ldflags, "-o", "#{bin}/immortaldir", "cmd/immortaldir/main.go"
man8.install Dir["man/*.8"]
prefix.install_metafiles
end
test do
system bin/"immortal", "-v"
system bin/"immortalctl", "-v"
system bin/"immortaldir", "-v"
end
end
|
0x07CB/linuxbrew-core
|
Formula/httpx.rb
|
class Httpx < Formula
desc "Fast and multi-purpose HTTP toolkit"
homepage "https://github.com/projectdiscovery/httpx"
url "https://github.com/projectdiscovery/httpx/archive/v1.1.3.tar.gz"
sha256 "900832e2389ac2f591fc8c589a4e7c3dd955773f4446d81bb7395393f7c340e3"
license "MIT"
head "https://github.com/projectdiscovery/httpx.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0db77b4476e31fa83186ba12f194b7a8b41282c06bd8a89f35dd86bb7045deeb"
sha256 cellar: :any_skip_relocation, big_sur: "255750ec7fd6c3d64eca16663b2a20bd43b72b0d9513dd58f19bf58874fe6b57"
sha256 cellar: :any_skip_relocation, catalina: "0dcf11eb93bd23ce1daf15cfd80e8ade74fd89a575418feab775e9a6016d2fae"
sha256 cellar: :any_skip_relocation, mojave: "ac955c24989c8a36f5e8bc6c6713fa2cd9484c646934d97e2eef99f57afa088a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8918d5e1258b1c75d4625c4a33195633e47248212bf6ecc2f8e12c83de09ef1d" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "./cmd/httpx"
end
test do
output = JSON.parse(pipe_output("#{bin}/httpx -silent -status-code -title -json", "example.org"))
assert_equal 200, output["status-code"]
assert_equal "Example Domain", output["title"]
end
end
|
0x07CB/linuxbrew-core
|
Formula/gtksourceviewmm3.rb
|
class Gtksourceviewmm3 < Formula
desc "C++ bindings for gtksourceview3"
homepage "https://gitlab.gnome.org/GNOME/gtksourceviewmm"
url "https://download.gnome.org/sources/gtksourceviewmm/3.18/gtksourceviewmm-3.18.0.tar.xz"
sha256 "51081ae3d37975dae33d3f6a40621d85cb68f4b36ae3835eec1513482aacfb39"
license "LGPL-2.1-or-later"
revision 10
livecheck do
url :stable
regex(/gtksourceviewmm[._-]v?(3\.([0-8]\d*?)?[02468](?:\.\d+)*?)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "787713d0f6802ea858aa728be88507a6d1b3adc6e3e648c34af059651393e83a"
sha256 cellar: :any, big_sur: "e1cc731cb3f1d99a040da7719e8d91f325d7c00a46e19a10ffca8d1ec87991e8"
sha256 cellar: :any, catalina: "2909f29ff9dce4266ba101d992bb8831487cd2084f467faad39198ce6923b729"
sha256 cellar: :any, mojave: "548c9dfe0eb1fbbe8bf9234a3d631bc232514855457372633f37bf240e427a5d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3c3468e7d01162a85e9d2c28386c0e6001dd02148668944638fadb8530d89c14" # linuxbrew-core
end
depends_on "pkg-config" => [:build, :test]
depends_on "gtkmm3"
depends_on "gtksourceview3"
def install
ENV.cxx11
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test.cpp").write <<~EOS
#include <gtksourceviewmm.h>
int main(int argc, char *argv[]) {
Gsv::init();
return 0;
}
EOS
ENV.libxml2
command = "#{Formula["pkg-config"].opt_bin}/pkg-config --cflags --libs gtksourceviewmm-3.0"
flags = shell_output(command).strip.split
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/slowhttptest.rb
|
<reponame>0x07CB/linuxbrew-core
class Slowhttptest < Formula
desc "Simulates application layer denial of service attacks"
homepage "https://github.com/shekyan/slowhttptest"
url "https://github.com/shekyan/slowhttptest/archive/v1.8.2.tar.gz"
sha256 "faa83dc45e55c28a88d3cca53d2904d4059fe46d86eca9fde7ee9061f37c0d80"
license "Apache-2.0"
revision 1
head "https://github.com/shekyan/slowhttptest.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_big_sur: "cc98e77420edf6c9304650871991d7df7f89dd99381a63f021bdef192d9b1e37"
sha256 cellar: :any, big_sur: "8414f5f6736cdaac257f0c96ecf0a72526c80595b7e966d26a0c99aaba25a8dc"
sha256 cellar: :any, catalina: "7cd865ac1b118d8ef7bdf0b540f56140ff4254e7a38d2b22d520c9bd1158df5d"
sha256 cellar: :any, mojave: "f4da64ee55ba56ffaff0d383954d0e13577326dbca30b431d5d89775dcfb396e"
sha256 cellar: :any, high_sierra: "3ffeaec203cd16a00aeb0bf239dfe5b32087e35a74dd5c6917bd3e7a2a09848f"
sha256 cellar: :any, x86_64_linux: "95fc74baad6a2ec27edcdfed0bcc2ad12c4a9be0f439bd458ecff2476c2a18ad" # linuxbrew-core
end
# Remove these in next version
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "openssl@1.1"
def install
inreplace "configure.ac", "1.8.1", "1.8.2"
system "autoconf" # Remove in next version
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/slowhttptest", "-u", "https://google.com",
"-p", "1", "-r", "1", "-l", "1", "-i", "1"
assert_match version.to_s, shell_output("#{bin}/slowhttptest -h", 1)
end
end
|
0x07CB/linuxbrew-core
|
Formula/b2-tools.rb
|
class B2Tools < Formula
include Language::Python::Virtualenv
desc "B2 Cloud Storage Command-Line Tools"
homepage "https://github.com/Backblaze/B2_Command_Line_Tool"
url "https://files.pythonhosted.org/packages/47/c5/e05b32109452201938a9154d726e0df896962b755f33b29cbdc511ef5f85/b2-3.0.3.tar.gz"
sha256 "6acae18a700d1a54ec4816ed193a0ec5344619209ffb57385569e81377b3a080"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "29ebb7627d56b1e368f39f1996136a344a1390e03ee7f259a809374ca75e823e"
sha256 cellar: :any_skip_relocation, big_sur: "c8a0512ecac3fb5ba59f29d7cfa1b73dbb099353b505a708fa9ac824888f1f4f"
sha256 cellar: :any_skip_relocation, catalina: "2cb408b13597fd2df011e69518020539363733031b6195ea44fdbfa4530d5927"
sha256 cellar: :any_skip_relocation, mojave: "ff77471b683a7ba34d6e1e044cf4a50bdc0e882a872fa74e52ba03ac51820ca4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "033bd12af5aab1eab469f30599f64f8c8f0592a63687d105c711e44007b53735" # linuxbrew-core
end
depends_on "python@3.9"
depends_on "six"
conflicts_with "boost-build", because: "both install `b2` binaries"
resource "arrow" do
url "https://files.pythonhosted.org/packages/ec/74/1cf2d9912921cebdba3fa954949206c8aa159c9cc803b88140fb227f8a0e/arrow-0.17.0.tar.gz"
sha256 "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4"
end
resource "b2sdk" do
url "https://files.pythonhosted.org/packages/bb/5c/6622416dd20552f2bfd0f3776c87281074f19e32f807dcd2bceb72d8cd4b/b2sdk-1.12.0.tar.gz"
sha256 "3ec2264ae2b421563d130a4b2a53f96454ba03b8f68893ad520fc651c413251d"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/6d/78/f8db8d57f520a54f0b8a438319c342c61c22759d8f9a1cd2e2180b5e5ea9/certifi-2021.5.30.tar.gz"
sha256 "2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/eb/7f/a6c278746ddbd7094b019b08d1b2187101b1f596f35f81dc27f57d8fcf7c/charset-normalizer-2.0.6.tar.gz"
sha256 "5ec46d183433dcbd0ab716f2d7f29d8dee50505b3fdb40c6b985c7c4f5a3591f"
end
resource "docutils" do
url "https://files.pythonhosted.org/packages/2f/e0/3d435b34abd2d62e8206171892f174b180cd37b09d57b924ca5c2ef2219d/docutils-0.16.tar.gz"
sha256 "c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc"
end
resource "funcsigs" do
url "https://files.pythonhosted.org/packages/94/4a/db842e7a0545de1cdb0439bb80e6e42dfe82aaeaadd4072f2263a4fbed23/funcsigs-1.0.2.tar.gz"
sha256 "a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "logfury" do
url "https://files.pythonhosted.org/packages/e2/a0/66a7b78e1800af85e54701490cf8764cc6de6c0725d18b10a6fb13ce4d2d/logfury-0.1.2.tar.gz"
sha256 "42da58fbbd4e6fdb9e5b6b9098e94c249ba9cebfae125643329c8636768edcd3"
end
resource "phx-class-registry" do
url "https://files.pythonhosted.org/packages/ea/48/b1acdd934f89377fd047401f02c301b938f4962f5af30b8ad7224487c412/phx-class-registry-3.0.5.tar.gz"
sha256 "f11462ac410a8cda38c2b6a83b51a2390c7d9528baef591cb5b551b11aba2a92"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
end
resource "rst2ansi" do
url "https://files.pythonhosted.org/packages/3c/19/b29bc04524e7d1dbde13272fbb67e45a8eb24bb6d112cf10c46162b350d7/rst2ansi-0.1.5.tar.gz"
sha256 "1b17fb9a628d40f57933ad1a3aa952346444be069469508e73e95060da33fe6f"
end
resource "tqdm" do
url "https://files.pythonhosted.org/packages/e3/c1/b3e42d5b659ca598508e2a9ef315d5eef0a970f874ef9d3b38d4578765bd/tqdm-4.62.3.tar.gz"
sha256 "d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/80/be/3ee43b6c5757cabea19e75b8f46eaf05a2f5144107d7db48c7cf3a864f73/urllib3-1.26.7.tar.gz"
sha256 "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
end
def install
virtualenv_install_with_resources
bash_completion.install "contrib/bash_completion/b2" => "b2-tools-completion.bash"
pkgshare.install (buildpath/"contrib").children
end
test do
ENV["LC_ALL"] = "en_US.UTF-8"
cmd = "#{bin}/b2 authorize_account BOGUSACCTID BOGUSAPPKEY 2>&1"
assert_match "unable to authorize account", shell_output(cmd, 1)
end
end
|
0x07CB/linuxbrew-core
|
Formula/lha.rb
|
class Lha < Formula
desc "Utility for creating and opening lzh archives"
homepage "https://lha.osdn.jp/"
# Canonical: https://osdn.net/dl/lha/lha-1.14i-ac20050924p1.tar.gz
url "https://dotsrc.dl.osdn.net/osdn/lha/22231/lha-1.14i-ac20050924p1.tar.gz"
version "1.14i-ac20050924p1"
sha256 "b5261e9f98538816aa9e64791f23cb83f1632ecda61f02e54b6749e9ca5e9ee4"
license "MIT"
# OSDN releases pages use asynchronous requests to fetch the archive
# information for each release, rather than including this information in the
# page source. As such, we identify versions from the release names instead.
# The portion of the regex that captures the version is looser than usual
# because the version format is unusual and may change in the future.
livecheck do
url "https://osdn.net/projects/lha/releases/"
regex(%r{href=.*?/projects/lha/releases/[^>]+?>\s*?v?(\d+(?:[.-][\da-z]+)+)}im)
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d328d1b1740353a2e04c6f79dc863f3fa2caca9380e76b3e48b4b72f5e1ad32b"
sha256 cellar: :any_skip_relocation, big_sur: "bd78eb55cbce8091fd07d82ec486bfd67fc8079b2fe6385c8374b2e7c5171528"
sha256 cellar: :any_skip_relocation, catalina: "429d3165a0f986e815f09ea3f6b2d93e1bd0feef01b6df6159a983e8118244a4"
sha256 cellar: :any_skip_relocation, mojave: "12b5c79de56f71138c64d517ffc0091bc313f4cc0f174e10276b248b06e2fa0f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "208546ee6f604a3ee6f83ab6e66387c71b349d33aeaada51dcdf81c4c9d28543" # linuxbrew-core
end
head do
url "https://github.com/jca02266/lha.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
conflicts_with "lhasa", because: "both install a `lha` binary"
def install
# Work around configure/build issues with Xcode 12
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
system "autoreconf", "-is" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
(testpath/"foo").write "test"
system "#{bin}/lha", "c", "foo.lzh", "foo"
assert_equal "::::::::\nfoo\n::::::::\ntest",
shell_output("#{bin}/lha p foo.lzh")
end
end
|
0x07CB/linuxbrew-core
|
Formula/binwalk.rb
|
<gh_stars>100-1000
class Binwalk < Formula
include Language::Python::Virtualenv
desc "Searches a binary image for embedded files and executable code"
homepage "https://github.com/ReFirmLabs/binwalk"
url "https://github.com/ReFirmLabs/binwalk/archive/v2.3.3.tar.gz"
sha256 "7e32b94dc77632b51d18732b5456e2a3ef85e4521d7d4a54410e36f93859501f"
license "MIT"
head "https://github.com/ReFirmLabs/binwalk.git", branch: "master"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any, arm64_big_sur: "1e034085ca39b0365e95df6280778c66ef0944e1755bb8b7ad9aa4852a694279"
sha256 cellar: :any, big_sur: "5863bab81579b7948fe90f4106ab0b71617088b2c2ebeaf5f41d06322f37a0e5"
sha256 cellar: :any, catalina: "a5841b3b76b9ceffe00cbeaa1b09fd47bf36bb7047167bd93cbd4feb9112276d"
sha256 cellar: :any, mojave: "a8aa94d921b8ded782cbbbc96458d388d53eaf40d7d7be530a24af4477f01e4d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "43fe160b117a083bde1f79150dad7e43f7bc49ff24a8c950215e10ce87ac6f6c" # linuxbrew-core
end
depends_on "pkg-config" => :build
depends_on "swig" => :build
depends_on "freetype"
depends_on "libpng"
depends_on "numpy"
depends_on "p7zip"
depends_on "pillow"
depends_on "python@3.9"
depends_on "six"
depends_on "ssdeep"
depends_on "xz"
resource "capstone" do
url "https://files.pythonhosted.org/packages/f2/ae/21dbb3ccc30d5cc9e8cdd8febfbf5d16d93b8c10e595280d2aa4631a0d1f/capstone-4.0.2.tar.gz"
sha256 "2842913092c9b69fd903744bc1b87488e1451625460baac173056e1808ec1c66"
end
resource "Cycler" do
url "https://files.pythonhosted.org/packages/c2/4b/137dea450d6e1e3d474e1d873cd1d4f7d3beed7e0dc973b06e8e10d32488/cycler-0.10.0.tar.gz"
sha256 "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8"
end
resource "gnupg" do
url "https://files.pythonhosted.org/packages/96/6c/21f99b450d2f0821ff35343b9a7843b71e98de35192454606435c72991a8/gnupg-2.3.1.tar.gz"
sha256 "8db5a05c369dbc231dab4c98515ce828f2dffdc14f1534441a6c59b71c6d2031"
end
resource "kiwisolver" do
url "https://files.pythonhosted.org/packages/8e/87/259fde8cf07d06677f0a749cb157d079ebd00d40fe52faaab1a882a66159/kiwisolver-1.3.2.tar.gz"
sha256 "fc4453705b81d03568d5b808ad8f09c77c47534f6ac2e72e733f9ca4714aa75c"
end
resource "matplotlib" do
url "https://files.pythonhosted.org/packages/21/37/197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617/matplotlib-3.4.3.tar.gz"
sha256 "fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318"
end
resource "psutil" do
url "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz"
sha256 "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
end
resource "pycryptodome" do
url "https://files.pythonhosted.org/packages/88/7f/740b99ffb8173ba9d20eb890cc05187677df90219649645aca7e44eb8ff4/pycryptodome-3.10.1.tar.gz"
sha256 "3e2e3a06580c5f190df843cdb90ea28d61099cf4924334d5297a995de68e4673"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
def install
virtualenv_install_with_resources
end
test do
touch "binwalk.test"
system "#{bin}/binwalk", "binwalk.test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/binkd.rb
|
class Binkd < Formula
desc "TCP/IP FTN Mailer"
homepage "https://2f.ru/binkd/"
url "https://happy.kiev.ua/pub/fidosoft/mailer/binkd/binkd-1.0.4.tar.gz"
sha256 "917e45c379bbd1a140d1fe43179a591f1b2ec4004b236d6e0c4680be8f1a0dc0"
license "GPL-2.0-or-later"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4cd8c44619d3c04b646a1ea8ad7db21feb95e950656c78d5dc1a983d6472b469"
sha256 cellar: :any_skip_relocation, big_sur: "3b309f2c4a6ee43441a32c0396a570454737bb85c5467f3e27a8c666140bda59"
sha256 cellar: :any_skip_relocation, catalina: "263219b174c193cd86454770d838013daa797994d8d21cdca45493a59d8a5a79"
sha256 cellar: :any_skip_relocation, mojave: "1582b44b77979d7258c51baec8bb54f367fc21f8cc03838c9c1b1351ea9f77e7"
sha256 cellar: :any_skip_relocation, high_sierra: "e890bed8ae5c89dfabd589e2c9654b2c8da6811bd24fbfd99aa4fc520a535e26"
sha256 cellar: :any_skip_relocation, sierra: "d685be9cb23ecb98dc34c2ea185c47ec39e54db1a8ca88782d11cbd96c78862a"
sha256 cellar: :any_skip_relocation, el_capitan: "d69c67a3cb68789a0a96196b5d2d92e44e6dd9bab3eb870ec9727987ae538c35"
sha256 cellar: :any_skip_relocation, yosemite: "e56862a339a1de58072d3ffb23981bff13a1eb69322c5e12e47949c171d5ceff"
end
uses_from_macos "zlib"
def install
cp Dir["mkfls/unix/*"].select { |f| File.file? f }, "."
inreplace "binkd.conf", "/var/", "#{var}/"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
system "#{sbin}/binkd", "-v"
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.