repo_name
stringlengths 6
97
| path
stringlengths 3
341
| text
stringlengths 8
1.02M
|
|---|---|---|
0x07CB/linuxbrew-core
|
Formula/detach.rb
|
class Detach < Formula
desc "Execute given command in detached process"
homepage "http://inglorion.net/software/detach/"
url "http://inglorion.net/download/detach-0.2.3.tar.bz2"
sha256 "b2070e708d4fe3a84197e2a68f25e477dba3c2d8b1f9ce568f70fc8b8e8a30f0"
license "MIT"
livecheck do
url :homepage
regex(/href=.*?detach[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "934338f4dbae7773162dfa2a6b83d3c72a0740747bd4494509a9d5ee20bf37b5"
sha256 cellar: :any_skip_relocation, big_sur: "9db6ee661710f178b17fc1096596ee74b07b257e233da7fb45cb9280cbeb24a1"
sha256 cellar: :any_skip_relocation, catalina: "dbd06a1dcb4592035dff0b4df0cc3259c2dbb444acdb1553ab2a2d4edf3fff57"
sha256 cellar: :any_skip_relocation, mojave: "4aa3f65488ee7fb05d156d92f5f76a29d2cebe2034b226665e219978e228f1db"
sha256 cellar: :any_skip_relocation, high_sierra: "3367f32cb05a37e05e9ab18e4e1f2664137f7d03073fc2d9ec4aba0d62a6f431"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8c8d040524edff3ad1d757eb94e4784296d88a6e6f8ae76c66da7fd87987b0ee" # linuxbrew-core
end
def install
system "make", "install", "PREFIX=#{prefix}"
bin.install "detach"
man1.install "detach.1"
end
test do
system "#{bin}/detach", "-p", "#{testpath}/pid", "sh", "-c", "sleep 10"
pid = (testpath/"pid").read.to_i
ppid = shell_output("ps -p #{pid} -o ppid=").to_i
assert_equal 1, ppid
Process.kill "TERM", pid
end
end
|
0x07CB/linuxbrew-core
|
Formula/regipy.rb
|
class Regipy < Formula
include Language::Python::Virtualenv
desc "Offline registry hive parsing tool"
homepage "https://github.com/mkorman90/regipy"
url "https://files.pythonhosted.org/packages/f1/d9/ebae459c0784f409b133b6206fd29e7c66c0b9e82d0469c5760d65db7fcd/regipy-2.2.0.tar.gz"
sha256 "d6eec6d646fdfc290296668dae1a68811b1365e3a1fca64e0b7e3290de099e8f"
license "MIT"
head "https://github.com/mkorman90/regipy.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d23cba8777868085dd95e650e77a2b8b7717f6d075f291f63d1b33fae311fb08"
sha256 cellar: :any_skip_relocation, big_sur: "ceab82a175e88eac4affd79bcf50ec9b4ef5f4ac92471c262b86fba419d469a1"
sha256 cellar: :any_skip_relocation, catalina: "7226b7e1bcc61f1b1867cf294758353e9bd5f1faf50d093562381412183f3b9d"
sha256 cellar: :any_skip_relocation, mojave: "3844df02655ca71a3dd6ab4a911bfd7318c950434077e9c5791cf2601049393b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c037935ccd0a8f6fbb614b574397de82acb4c8ddd6a669d891ce52cbba905995" # linuxbrew-core
end
depends_on "python-tabulate"
depends_on "python@3.9"
resource "attrs" do
url "https://files.pythonhosted.org/packages/ed/d6/3ebca4ca65157c12bd08a63e20ac0bdc21ac7f3694040711f9fd073c0ffb/attrs-21.2.0.tar.gz"
sha256 "ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"
end
resource "click" do
url "https://files.pythonhosted.org/packages/21/83/308a74ca1104fe1e3197d31693a7a2db67c2d4e668f20f43a2fca491f9f7/click-8.0.1.tar.gz"
sha256 "8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"
end
resource "construct" do
url "https://files.pythonhosted.org/packages/39/2b/c68eaf8294f01ea534f39b8b4ec1d7308b5195e08570c276b104bccd24ff/construct-2.10.67.tar.gz"
sha256 "730235fedf4f2fee5cfadda1d14b83ef1bf23790fb1cc579073e10f70a050883"
end
resource "inflection" do
url "https://files.pythonhosted.org/packages/e1/7e/691d061b7329bc8d54edbf0ec22fbfb2afe61facb681f9aaa9bff7a27d04/inflection-0.5.1.tar.gz"
sha256 "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417"
end
resource "pytz" do
url "https://files.pythonhosted.org/packages/b0/61/eddc6eb2c682ea6fd97a7e1018a6294be80dba08fa28e7a3570148b4612d/pytz-2021.1.tar.gz"
sha256 "83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da"
end
resource "test_hive" do
url "https://raw.githubusercontent.com/mkorman90/regipy/71acd6a65bdee11ff776dbd44870adad4632404c/regipy_tests/data/SYSTEM.xz"
sha256 "b1582ab413f089e746da0528c2394f077d6f53dd4e68b877ffb2667bd027b0b0"
end
def install
venv = virtualenv_create(libexec, "python3.9")
res = resources.map(&:name).to_set
res -= %w[test_hive]
res.each do |r|
venv.pip_install resource(r)
end
venv.pip_install_and_link buildpath
end
test do
resource("test_hive").stage do
system bin/"registry-plugins-run", "-p", "computer_name", "-o", "out.json", "SYSTEM"
h = JSON.parse(File.read("out.json"))
assert_equal h["computer_name"][0]["name"], "WKS-WIN732BITA"
assert_equal h["computer_name"][1]["name"], "WIN-V5T3CSP8U4H"
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/terracognita.rb
|
class Terracognita < Formula
desc "Reads from existing Cloud Providers and generates Terraform code"
homepage "https://github.com/cycloidio/terracognita"
url "https://github.com/cycloidio/terracognita/archive/v0.7.4.tar.gz"
sha256 "7027103c899d29b86dd1dc72e1e2d6d685bec6311673f7fbd31c8127ccd62c82"
license "MIT"
head "https://github.com/cycloidio/terracognita.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d86a19285ec82eb5c63d5f8a1506d5208495ea1824beb87cea1ed24b300fdb68"
sha256 cellar: :any_skip_relocation, big_sur: "2b54d5285bc814e82ddd4a436fad0f0a136f643777a3954ef2ad2c03a5afce03"
sha256 cellar: :any_skip_relocation, catalina: "cbb46e5d8cda59aa40d57db85f05c6e8b86cceb13ce5999887bad3f541029776"
sha256 cellar: :any_skip_relocation, mojave: "0acf733131cc484c14a9276aa8b7c0611f3e7faec0a2d70ebef8149a53f214f8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6222d3967d26904d5894855669f39662322f6ead05759ada13776c906f7ed21e" # linuxbrew-core
end
depends_on "go" => :build
def install
ldflags = "-X github.com/cycloidio/terracognita/cmd.Version=v#{version}"
system "go", "build", *std_go_args, "-ldflags", ldflags
end
test do
assert_match "v#{version}", shell_output("#{bin}/terracognita version")
assert_match "Error: one of --module, --hcl or --tfstate are required",
shell_output("#{bin}/terracognita aws 2>&1", 1)
assert_match "aws_instance", shell_output("#{bin}/terracognita aws resources")
end
end
|
0x07CB/linuxbrew-core
|
Formula/yash.rb
|
<gh_stars>100-1000
class Yash < Formula
desc "Yet another shell: a POSIX-compliant command-line shell"
homepage "https://yash.osdn.jp/"
# Canonical: https://osdn.net/dl/yash/yash-*
url "https://dotsrc.dl.osdn.net/osdn/yash/76153/yash-2.52.tar.xz"
sha256 "55137beffd83848805b8cef90c0c6af540744afcc103e1b0f7bdf3ef1991b5c9"
license "GPL-2.0-or-later"
livecheck do
url "https://osdn.net/projects/yash/releases/rss"
regex(%r{(\d+(?:\.\d+)+)</title>}i)
end
bottle do
sha256 arm64_big_sur: "d929857c2f1cfd3f343005126fbe77e36bf03913f9425fcad54f5cbc5791d7d2"
sha256 big_sur: "f2f03214717748a4b41acbf588b4bee409dff6c9b20f3e260b250d9a431b589d"
sha256 catalina: "b7340fc1cdd7eff266bd06cf15cee55e6ef6fb99dcd140213e03fdd98ae44819"
sha256 mojave: "7558ff13a140aad05b09bc15622e822489f9d86b2c75bcae68ad6899e3111136"
sha256 x86_64_linux: "48947c3a32a0d69ace5b0d40d2e037da21f2825aa1d5fab780b0e46ab01d4083" # linuxbrew-core
end
head do
url "https://github.com/magicant/yash.git", branch: "trunk"
depends_on "asciidoc" => :build
end
depends_on "gettext"
def install
system "sh", "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/yash", "-c", "echo hello world"
end
end
|
0x07CB/linuxbrew-core
|
Formula/piknik.rb
|
<reponame>0x07CB/linuxbrew-core
class Piknik < Formula
desc "Copy/paste anything over the network"
homepage "https://github.com/jedisct1/piknik"
url "https://github.com/jedisct1/piknik/archive/0.10.1.tar.gz"
sha256 "9172acb424d864ba3563bbdb0cd2307815129027eec1a6ca04aee17da7f936c2"
license "BSD-2-Clause"
head "https://github.com/jedisct1/piknik.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b503df3a16dfdf25219a598da5ae3c17676ee2367c0db0837403a6f728e4fcb4"
sha256 cellar: :any_skip_relocation, big_sur: "48b98419184b858ff308f4ed96f0ff001f757524c38705337a25adfb960a85ea"
sha256 cellar: :any_skip_relocation, catalina: "d454877b9f650eaa1fcd22ccad12c62a69d2ab21b48a16481d4be17067236233"
sha256 cellar: :any_skip_relocation, mojave: "8afe990d9ff9828b6148928d27c9535fd31b7f8082db341cf962dfbf1e895b96"
sha256 cellar: :any_skip_relocation, x86_64_linux: "85d3137bbbefdb903c7e15c7aceb3b48b081e553523907980d450c7640804513" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-s -w"
(prefix/"etc/profile.d").install "zsh.aliases" => "piknik.sh"
end
def caveats
<<~EOS
In order to get convenient shell aliases, put something like this in #{shell_profile}:
. #{etc}/profile.d/piknik.sh
EOS
end
service do
run [opt_bin/"piknik", "-server"]
end
test do
conffile = testpath/"testconfig.toml"
genkeys = shell_output("#{bin}/piknik -genkeys")
lines = genkeys.lines.grep(/\s+=\s+/).map { |x| x.gsub(/\s+/, " ").gsub(/#.*/, "") }.uniq
conffile.write lines.join("\n")
pid = fork do
exec "#{bin}/piknik", "-server", "-config", conffile
end
begin
sleep 1
IO.popen([{}, "#{bin}/piknik", "-config", conffile, "-copy"], "w+") do |p|
p.write "test"
end
IO.popen([{}, "#{bin}/piknik", "-config", conffile, "-move"], "r") do |p|
clipboard = p.read
assert_equal clipboard, "test"
end
ensure
Process.kill("TERM", pid)
Process.wait(pid)
conffile.unlink
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/adr-tools.rb
|
class AdrTools < Formula
desc "CLI tool for working with Architecture Decision Records"
homepage "https://github.com/npryce/adr-tools"
url "https://github.com/npryce/adr-tools/archive/3.0.0.tar.gz"
sha256 "9490f31a457c253c4113313ed6352efcbf8f924970a309a08488833b9c325d7c"
license "CC-BY-4.0"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "cd9f8e39616798db8ae97d74123fc7f4179f84b8954c232da4b2ecbb6516c8a1" # linuxbrew-core
end
def install
config = buildpath/"src/adr-config"
# Unlink and re-write to matches homebrew's installation conventions
config.unlink
config.write <<~EOS
#!/bin/bash
echo 'adr_bin_dir=\"#{bin}\"'
echo 'adr_template_dir=\"#{prefix}\"'
EOS
prefix.install Dir["src/*.md"]
bin.install Dir["src/*"]
bash_completion.install "autocomplete/adr" => "adr-tools"
end
test do
file = "0001-record-architecture-decisions.md"
assert_match file, shell_output("#{bin}/adr-init")
assert_match file, shell_output("#{bin}/adr-list")
end
end
|
0x07CB/linuxbrew-core
|
Formula/putmail-queue.rb
|
<filename>Formula/putmail-queue.rb
class PutmailQueue < Formula
desc "Queue package for putmail"
homepage "https://putmail.sourceforge.io"
url "https://downloads.sourceforge.net/project/putmail/putmail-queue/0.2/putmail-queue-0.2.tar.bz2"
sha256 "09349ad26345783e061bfe4ad7586fbbbc5d1cc48e45faa9ba9f667104f9447c"
livecheck do
url :stable
regex(%r{url=.*?/putmail-queue[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
depends_on "putmail"
def install
bin.install "putmail_dequeue.py", "putmail_enqueue.py"
man1.install Dir["man/man1/*.1"]
end
end
|
0x07CB/linuxbrew-core
|
Formula/drone-cli.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/drone-cli.rb
class DroneCli < Formula
desc "Command-line client for the Drone continuous integration server"
homepage "https://drone.io"
url "https://github.com/drone/drone-cli.git",
tag: "v1.4.0",
revision: "43e52be34cbf216fece99d8754b5ef96527566be"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2506e576a09c124cfe6f6a5eb6906c49b04ce0090b3e05db980df3adb6d06c1c"
sha256 cellar: :any_skip_relocation, big_sur: "7a76db340f0fe6269331b081004d40d152dddf8027514cbbbc6c075909bc0669"
sha256 cellar: :any_skip_relocation, catalina: "7e5bfff2d039507cf02fd17ba86b3abd254b531eae177ff40ef4bb998e7e9473"
sha256 cellar: :any_skip_relocation, mojave: "e0545bddd3c764979c708a80e6904c7f1ac5d0e8634da25f70f623098c6c0104"
sha256 cellar: :any_skip_relocation, x86_64_linux: "62a92781c865e68278cf222ebaa114a777634ddd29fb8dde0b8a599a891bdb5b" # linuxbrew-core
end
depends_on "go" => :build
def install
ENV["CGO_ENABLED"] = "0"
system "go", "build", "-ldflags", "-s -w -X main.version=#{version}", "-trimpath", "-o",
bin/"drone", "drone/main.go"
prefix.install_metafiles
end
test do
assert_match version.to_s, shell_output("#{bin}/drone --version")
assert_match "manage logs", shell_output("#{bin}/drone log 2>&1")
end
end
|
0x07CB/linuxbrew-core
|
Formula/minica.rb
|
class Minica < Formula
desc "Small, simple certificate authority"
homepage "https://github.com/jsha/minica"
url "https://github.com/jsha/minica/archive/v1.0.2.tar.gz"
sha256 "c5b7e6c890ad472eb39f7e44d777da1b623930fd099b414213ced14bb599c6ec"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "5e6f68245edcd602ca5fe8ab2b98c5aef62e826bc1e5f6660c710d886c308bc8"
sha256 cellar: :any_skip_relocation, big_sur: "a0ae49ee8f0a7dd9804c19e899efad38c95632c572cf440f247fbf8c902072c2"
sha256 cellar: :any_skip_relocation, catalina: "6ed3047835593e51bddc2f1150ca3db84f736c4714442140ed693e23561053ee"
sha256 cellar: :any_skip_relocation, mojave: "3665f724fc7ca7da303894232bceda5f53b3aa75d6fe010f77635f75062212d7"
sha256 cellar: :any_skip_relocation, high_sierra: "898ae6355e98099a2692f397b58c497dbed656a7859ed8bfb9e045fc4af56a0f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1317f1563467da37b9041d490b49eed7b509a01433560fcd3c82101619287d47" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", "-o", bin/"minica"
end
test do
system "#{bin}/minica", "--domains", "foo.com"
assert_predicate testpath/"minica.pem", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/netperf.rb
|
<gh_stars>100-1000
class Netperf < Formula
desc "Benchmarks performance of many different types of networking"
homepage "https://hewlettpackard.github.io/netperf/"
url "https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz"
sha256 "4569bafa4cca3d548eb96a486755af40bd9ceb6ab7c6abd81cc6aa4875007c4e"
head "https://github.com/HewlettPackard/netperf.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fb2e8ee85592d6dff9445af33d752ea5e73abb92fe690a7844e556059ba9e9f9"
sha256 cellar: :any_skip_relocation, big_sur: "de1b7e8643383ecc20cdd23742d2d7518dcb8bf49b77c98f32abed7dbca70f73"
sha256 cellar: :any_skip_relocation, catalina: "da28e83fa25e8284ee5acc7fa327d886bb53ab20035cd07703909b7556ab25e1"
sha256 cellar: :any_skip_relocation, mojave: "cdd840b5e300383245d703973fcd238d58b4bd89d2ae3ba6769db297b2ddb1f9"
sha256 cellar: :any_skip_relocation, high_sierra: "cf086e0d276a572aba8318f7080cedc94b36a7b612cdbb4bcc3ceefef0080c53"
sha256 cellar: :any_skip_relocation, sierra: "4d3f648081c84ad697d608b56bcfce3237de7c34c4e4a53d9851628f9d50cd5d"
sha256 cellar: :any_skip_relocation, el_capitan: "c6e96625b1f83a7f83d3c9b53b8584ab65d73cfd59bc38672588ba82d37ecc1d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a1d056b27016b8262bf9960a1d466f536222dba7369e954d1be8fae1a53de83c" # linuxbrew-core
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/netperf -h | cat"
end
end
|
0x07CB/linuxbrew-core
|
Formula/twoping.rb
|
<filename>Formula/twoping.rb
class Twoping < Formula
desc "Ping utility to determine directional packet loss"
homepage "https://www.finnie.org/software/2ping/"
url "https://www.finnie.org/software/2ping/2ping-4.5.1.tar.gz"
sha256 "b56beb1b7da1ab23faa6d28462bcab9785021011b3df004d5d3c8a97ed7d70d8"
license "MPL-2.0"
revision 1
head "https://github.com/rfinnie/2ping.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "e1847c704c33620ee0aa48c1c9d9dd7cbe5adad99acbbe440daecc8ad8b1444d" # linuxbrew-core
end
depends_on "python@3.10"
def install
pyver = Language::Python.major_minor_version "python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{pyver}/site-packages"
system "python3", *Language::Python.setup_install_args(libexec)
man1.install "doc/2ping.1"
man1.install_symlink "2ping.1" => "2ping6.1"
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", PYTHONPATH: ENV["PYTHONPATH"])
bash_completion.install "2ping.bash_completion" => "2ping"
end
plist_options startup: true
service do
run [opt_bin/"2ping", "--listen", "--quiet"]
keep_alive true
log_path "/dev/null"
error_log_path "/dev/null"
end
test do
assert_match "OK 2PING", shell_output(
"#{bin}/2ping --count=10 --interval=0.2 --port=-1 --interface-address=127.0.0.1 "\
"--listen --nagios=1000,5%,1000,5% 127.0.0.1",
)
end
end
|
0x07CB/linuxbrew-core
|
Formula/ekg2.rb
|
class Ekg2 < Formula
desc "Multiplatform, multiprotocol, plugin-based instant messenger"
homepage "https://github.com/ekg2/ekg2"
url "https://src.fedoraproject.org/lookaside/extras/ekg2/ekg2-0.3.1.tar.gz/68fc05b432c34622df6561eaabef5a40/ekg2-0.3.1.tar.gz"
mirror "https://web.archive.org/web/20161227025528/pl.ekg2.org/ekg2-0.3.1.tar.gz"
sha256 "6ad360f8ca788d4f5baff226200f56922031ceda1ce0814e650fa4d877099c63"
license "GPL-2.0"
revision 4
livecheck do
url :homepage
regex(/^ekg2[._-]v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 arm64_big_sur: "e1ca8c485b595b3d8a0edcd59699c99d280a14d3aa7bfd7646c6d966f903101f"
sha256 big_sur: "2f095607ab5e5bdbf0ca515983aeff44e4a2480d97fb460d19c63babd875bd05"
sha256 catalina: "e17ea1385008892e80e0d5e0d44e510f6ac30e5d86423b55c61465eccd348d36"
sha256 mojave: "78778e95338d2a0a61f7d4773716d927534d24e4d5867a04038401427b07c855"
sha256 high_sierra: "f946e56a032b9526280745e6e57f8bc42a18d12fa9ced783f5515eb600bcdf0b"
sha256 sierra: "35f01a57bbceb1a79abfa8b035e3135d0c821bbca22a63b273e32159e517813f"
sha256 x86_64_linux: "b59e23e03c20b4c014961d5dbcc43c9a057a966b1d883dbddfea71ae37dc4f59" # linuxbrew-core
end
depends_on "pkg-config" => :build
depends_on "openssl@1.1"
depends_on "readline"
# Fix the build on OS X 10.9+
# bugs.ekg2.org/issues/152 [LOST LINK]
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/ekg2/0.3.1.patch"
sha256 "6efbb25e57581c56fe52cf7b70dbb9c91c9217525b402f0647db820df9a14daa"
end
# Upstream commit, fix build against OpenSSL 1.1
patch do
url "https://github.com/ekg2/ekg2/commit/f05815.patch?full_index=1"
sha256 "207639edc5e6576c8a67301c63f0b28814d9885f0d4fca5d9d9fc465f4427cd7"
end
def install
readline = Formula["readline"].opt_prefix
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--enable-unicode
--with-readline=#{readline}
--without-gtk
--without-libgadu
--without-perl
--without-python
]
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/ekg2", "--help"
end
end
|
0x07CB/linuxbrew-core
|
Formula/cryptominisat.rb
|
<reponame>0x07CB/linuxbrew-core<filename>Formula/cryptominisat.rb
class Cryptominisat < Formula
desc "Advanced SAT solver"
homepage "https://www.msoos.org/cryptominisat5/"
url "https://github.com/msoos/cryptominisat/archive/5.8.0.tar.gz"
sha256 "50153025c8503ef32f32fff847ee24871bb0fc1f0b13e17fe01aa762923f6d94"
# Everything that's needed to run/build/install/link the system is MIT licensed. This allows
# easy distribution and running of the system everywhere.
license "MIT"
revision 1
livecheck do
url "https://github.com/msoos/cryptominisat.git"
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
rebuild 1
sha256 arm64_big_sur: "8b9940bdf5011a8f060de82576726b7138a60975f56fcd7113b692e026444021"
sha256 big_sur: "ca952863f4a030cff0f60b3dc1b598c9a070460b5372577e63c8df577008e5eb"
sha256 catalina: "9314367f35d7d82790d4840b04d744fba37196f068fa38b899c7ac4c7e8f987b"
sha256 mojave: "2ad7c47169eae4780e42ddec65f1f6144fc59ee5585dd8d26ff5d270d25d9cc3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b6484b29e1019b87a16ea79207b7d2dd69933eae1a7c405f58f04a1f570e5eca" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "boost"
depends_on "python@3.9"
def install
# fix audit failure with `lib/libcryptominisat5.5.7.dylib`
inreplace "src/GitSHA1.cpp.in", "@CMAKE_CXX_COMPILER@", ENV.cxx
mkdir "build" do
system "cmake", "..", *std_cmake_args, "-DNOM4RI=ON", "-DCMAKE_INSTALL_RPATH=#{rpath}"
system "make", "install"
end
end
test do
(testpath/"simple.cnf").write <<~EOS
p cnf 3 4
1 0
-2 0
-3 0
-1 2 3 0
EOS
result = shell_output("#{bin}/cryptominisat5 simple.cnf", 20)
assert_match "s UNSATISFIABLE", result
(testpath/"test.py").write <<~EOS
import pycryptosat
solver = pycryptosat.Solver()
solver.add_clause([1])
solver.add_clause([-2])
solver.add_clause([-1, 2, 3])
print(solver.solve()[1])
EOS
assert_equal "(None, True, False, True)\n", shell_output("#{Formula["python@3.9"].opt_bin}/python3 test.py")
end
end
|
0x07CB/linuxbrew-core
|
Formula/slimerjs.rb
|
class Slimerjs < Formula
desc "Scriptable browser for Web developers"
homepage "https://slimerjs.org/"
url "https://github.com/laurentj/slimerjs/archive/1.0.0.tar.gz"
sha256 "6fd07fa6953e4e497516dd0a7bc5eb2f21c68f9e60bdab080ac2c86e8ab8dfb2"
license "MPL-2.0"
head "https://github.com/laurentj/slimerjs.git", branch: "master"
def install
ENV["TZ"] = "UTC"
cd "src" do
system "zip", "-o", "-X", "-r", "omni.ja", "chrome/", "components/",
"modules/", "defaults/", "chrome.manifest", "-x@package_exclude.lst"
libexec.install %w[application.ini omni.ja slimerjs slimerjs.py]
end
bin.install_symlink libexec/"slimerjs"
end
def caveats
<<~EOS
The configuration file was installed in:
#{libexec}/application.ini
EOS
end
test do
ENV["SLIMERJSLAUNCHER"] = "/nonexistent"
assert_match "Set it with the path to Firefox", shell_output("#{bin}/slimerjs test.js", 1)
end
end
|
0x07CB/linuxbrew-core
|
Formula/gdm.rb
|
<gh_stars>100-1000
require "language/go"
class Gdm < Formula
desc "Go Dependency Manager (gdm)"
homepage "https://github.com/sparrc/gdm"
url "https://github.com/sparrc/gdm/archive/1.4.tar.gz"
sha256 "2ac8800319d922fe2816e57f30e23ddd9a11ce2e93294c533318b9f081debde4"
license "Unlicense"
head "https://github.com/sparrc/gdm.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "684b0b0f11a168b38500f0e9c4e8419bf39979501014f5e4a5177be2ac5352f1"
sha256 cellar: :any_skip_relocation, big_sur: "fc0e6626aec33649015a5808dd6c2b2d5b73051ff71231c6b482bba9e599efc1"
sha256 cellar: :any_skip_relocation, catalina: "a9801987792b8b32d8e1a30d668e43a36c798f2901149dbd49f4f8f0f79b45b7"
sha256 cellar: :any_skip_relocation, mojave: "655848c2fdb17aea2fd7f3f80a537d115b6e31232927c7cda7fac3b22f5d47a5"
sha256 cellar: :any_skip_relocation, high_sierra: "f9d1d9d11a51359be57311d0e896dc797637905d0b8e68340a3e5d6ad2dc962d"
sha256 cellar: :any_skip_relocation, sierra: "1271ce8ff02868997451491819027d10c362a9d6b72d10c9cbdafeb80ebbe747"
sha256 cellar: :any_skip_relocation, el_capitan: "b3f081076a078f90f6a534ff30ff268c89baec38bd02ff11c9e02804755c8c33"
sha256 cellar: :any_skip_relocation, yosemite: "03f2d8cbcee0c4e41a00ec222f56b7d3204290b075afafe28afe6ced3458ebd8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "728da93a2b68dfc522a68e1292bf1cf06e14887bea9491db726c6dacfd00fbe5" # linuxbrew-core
end
depends_on "go"
go_resource "golang.org/x/tools" do
url "https://go.googlesource.com/tools.git",
revision: "6f233b96dfbc53e33b302e31b88814cf74697ff6"
end
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "auto"
mkdir_p buildpath/"src/github.com/sparrc"
ln_sf buildpath, buildpath/"src/github.com/sparrc/gdm"
Language::Go.stage_deps resources, buildpath/"src"
cd "src/github.com/sparrc/gdm" do
system "go", "build", "-o", bin/"gdm",
"-ldflags", "-X main.Version=#{version}"
end
end
test do
ENV["GOPATH"] = testpath.realpath
ENV["GO111MODULE"] = "auto"
assert_match version.to_s, shell_output("#{bin}/gdm version")
assert_match testpath.realpath.to_s, shell_output("#{bin}/gdm save")
system bin/"gdm", "restore"
end
end
|
0x07CB/linuxbrew-core
|
Formula/fluid-synth@2.1.rb
|
<reponame>0x07CB/linuxbrew-core
class FluidSynthAT21 < Formula
desc "Real-time software synthesizer based on the SoundFont 2 specs"
homepage "https://www.fluidsynth.org"
url "https://github.com/FluidSynth/fluidsynth/archive/v2.1.9.tar.gz"
sha256 "365642cc64bafe0491149ad643ef7327877f99412d5abb93f1fa54e252028484"
license "LGPL-2.1-or-later"
bottle do
sha256 cellar: :any, arm64_big_sur: "d25c897f88f0f35bce794a51ee17db1056177a3b23a9f35c2c88542d6565bd67"
sha256 cellar: :any, big_sur: "3d2d82d9ff0d7ae9df77e14ee1ca9e160ba2cbc0d7cc6b96b1ec2de872472362"
sha256 cellar: :any, catalina: "f96a93cc69dbc29048d04a00f6034b1ef3df1f088b9a893ac0744b5d11ba6189"
sha256 cellar: :any, mojave: "553ad2667f43d1e0a45d7393fb1452de3459832603d792caab7b7d784bc95857"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cf2e0157b5b899751b02262cf8b73f60acea3e5506e4b0a2bca5178c6fed274b" # linuxbrew-core
end
keg_only :versioned_formula
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "libsndfile"
depends_on "portaudio"
resource "example_midi" do
url "https://upload.wikimedia.org/wikipedia/commons/6/61/Drum_sample.mid"
sha256 "a1259360c48adc81f2c5b822f221044595632bd1a76302db1f9d983c44f45a30"
end
def install
args = std_cmake_args + %w[
-Denable-framework=OFF
-Denable-portaudio=ON
-DLIB_SUFFIX=
-Denable-dbus=OFF
-Denable-sdl2=OFF
]
mkdir "build" do
system "cmake", "..", *args
system "make", "install"
end
pkgshare.install "sf2"
end
test do
# Synthesize wav file from example midi
resource("example_midi").stage testpath
wavout = testpath/"Drum_sample.wav"
system bin/"fluidsynth", "-F", wavout, pkgshare/"sf2/VintageDreamsWaves-v2.sf2", testpath/"Drum_sample.mid"
assert_predicate wavout, :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/awscli@1.rb
|
<gh_stars>100-1000
class AwscliAT1 < Formula
include Language::Python::Virtualenv
desc "Official Amazon AWS command-line interface"
homepage "https://aws.amazon.com/cli/"
# awscli should only be updated every 10 releases on multiples of 10
url "https://files.pythonhosted.org/packages/b0/c9/4c38e4889fc12e778b8c507d75c0139c25c2b64df1a239473a1989326a79/awscli-1.20.60.tar.gz"
sha256 "327416401b8616269d85fa3ddfe84ad2d6ef3e8a9bcd990c84be9cdf8085516f"
license "Apache-2.0"
livecheck do
url "https://github.com/aws/aws-cli.git"
regex(/^v?(1(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "654ecf3ae7eb09082098e34510cbc0092b79bd7fc793e1b6c149c22d1e601de5"
sha256 cellar: :any, big_sur: "81500eae842c770794486752906e327c1d0bcc28296a8288bb9623c8fc273144"
sha256 cellar: :any, catalina: "ea3691cbf0a95268c3628fe0c145748808206ddf0f060440a243ae04c4ca4a04"
sha256 cellar: :any, mojave: "48e9c9958bf975dcaa8c019d3bd3aca13ed418f493b498134e091ca3eaf414f0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b598caeee95ac925a5b33e79410b6bd73a8048e7a8620a7b8dd365367d325e5f" # linuxbrew-core
end
keg_only :versioned_formula
depends_on "libyaml" # for faster PyYAML
# Some AWS APIs require TLS1.2, which system Python doesn't have before High Sierra
depends_on "python@3.9"
depends_on "six"
uses_from_macos "groff"
resource "botocore" do
url "https://files.pythonhosted.org/packages/4d/9c/b228328186227fc51bd8d1e5251d92111616062e8384c60cd853fb43ddbe/botocore-1.21.60.tar.gz"
sha256 "3e746ca75fb7539ba3f001169264fa54dfaded2477ffc8bd979ce1e1df200620"
end
resource "colorama" do
url "https://files.pythonhosted.org/packages/82/75/f2a4c0c94c85e2693c229142eb448840fba0f9230111faa889d1f541d12d/colorama-0.4.3.tar.gz"
sha256 "e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1"
end
resource "docutils" do
url "https://files.pythonhosted.org/packages/93/22/953e071b589b0b1fee420ab06a0d15e5aa0c7470eb9966d60393ce58ad61/docutils-0.15.2.tar.gz"
sha256 "a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99"
end
resource "jmespath" do
url "https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz"
sha256 "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
end
resource "pyasn1" do
url "https://files.pythonhosted.org/packages/a4/db/fffec68299e6d7bad3d504147f9094830b704527a7fc098b721d38cc7fa7/pyasn1-0.4.8.tar.gz"
sha256 "aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba"
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 "rsa" do
url "https://files.pythonhosted.org/packages/db/b5/475c45a58650b0580421746504b680cd2db4e81bc941e94ca53785250269/rsa-4.7.2.tar.gz"
sha256 "9d689e6ca1b3038bc82bf8d23e944b6b6037bc02301a574935b2dd946e0353b9"
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
pkgshare.install "awscli/examples"
rm Dir["#{bin}/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh}"]
bash_completion.install "bin/aws_bash_completer"
zsh_completion.install "bin/aws_zsh_completer.sh"
(zsh_completion/"_aws").write <<~EOS
#compdef aws
_aws () {
local e
e=$(dirname ${funcsourcetrace[1]%:*})/aws_zsh_completer.sh
if [[ -f $e ]]; then source $e; fi
}
EOS
end
def caveats
<<~EOS
The "examples" directory has been installed to:
#{HOMEBREW_PREFIX}/share/awscli/examples
EOS
end
test do
assert_match "topics", shell_output("#{bin}/aws help")
end
end
|
0x07CB/linuxbrew-core
|
Formula/bonnie++.rb
|
<filename>Formula/bonnie++.rb
class Bonniexx < Formula
desc "Benchmark suite for file systems and hard drives"
homepage "https://www.coker.com.au/bonnie++/"
url "https://www.coker.com.au/bonnie++/bonnie++-2.00a.tgz"
sha256 "a8d33bbd81bc7eb559ce5bf6e584b9b53faea39ccfb4ae92e58f27257e468f0e"
license "GPL-2.0-only"
livecheck do
url "https://doc.coker.com.au/projects/bonnie/"
regex(/href=.*?bonnie\+\+[._-]v?(\d+(?:\.\d+)+[a-z]?)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "902ceb61db37a6795eee8d7941a44633faa38bcd9c2a4b952bf837bab0ee6d59"
sha256 cellar: :any_skip_relocation, big_sur: "75e1876579c6638c1e4c0509af5c76950ae379b034e6a051d091593cb08c1ddd"
sha256 cellar: :any_skip_relocation, catalina: "83df0761686086ae64a3c08433613908d9c39d85daa7f81011b5bd70d2d5eb3d"
sha256 cellar: :any_skip_relocation, mojave: "c503806d5f1ad449a6943275fa93a3930fbbd7cd63b31ee873590d0219ded5b9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1fa961ef4884e5ed8aba3f1ffbadcf9fb1bb6b9d0a87647ad2a2492f99c10067" # linuxbrew-core
end
# Remove the #ifdef _LARGEFILE64_SOURCE macros which not only prohibits the
# intended functionality of splitting into 2 GB files for such filesystems but
# also incorrectly tests for it in the first place. The ideal fix would be to
# replace the AC_TRY_RUN() in configure.in if the fail code actually worked.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/913b5a25087d2c64d3b6459635d5d64012b83042/bonnie%2B%2B/remove-large-file-support-macros.diff"
sha256 "368a7ea0cf202a169467efb81cb6649c1b6306999ccd54b85641fd4b458a46b7"
end
def install
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
system "#{sbin}/bonnie++", "-s", "0"
end
end
|
0x07CB/linuxbrew-core
|
Formula/gti.rb
|
class Gti < Formula
desc "ASCII-art displaying typo-corrector for commands"
homepage "https://r-wos.org/hacks/gti"
url "https://github.com/rwos/gti/archive/v1.7.0.tar.gz"
sha256 "cea8baf25ac5e6272f9031bd5e36a17a4b55038830b108f4f24e7f55690198f7"
head "https://github.com/rwos/gti.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "cab217e77e6cc4491d0b2e16390ac55d5c6e32d2f1ceced56ff7848a8bdd2453"
sha256 cellar: :any_skip_relocation, big_sur: "2466fec7628acfe3d24bb93cd31313d353a808f373e3c666b7b9c52326f45a0d"
sha256 cellar: :any_skip_relocation, catalina: "dc2f7bf9b442294a044b782321689783cd3fd93a465a9604db606b2b420e4443"
sha256 cellar: :any_skip_relocation, mojave: "2e1f996a67020a9bd842b41d0ac7d6e5ef0791fbc7fd57ffe3e9b7aacc1ee6de"
sha256 cellar: :any_skip_relocation, high_sierra: "9d46e56c0f79ba9d81e40bc1edc7b4ff1a9c9eeb4dbcb087827dec5b84c4f82b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "08890282aae29a1ca51af8526a6487763fd94e5a98269d5a348f0c295af677b0" # linuxbrew-core
end
def install
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install "gti"
man6.install "gti.6"
end
test do
system "#{bin}/gti", "init"
end
end
|
0x07CB/linuxbrew-core
|
Formula/yh.rb
|
<reponame>0x07CB/linuxbrew-core
class Yh < Formula
desc "YAML syntax highlighter to bring colours where only jq could"
homepage "https://github.com/andreazorzetto/yh"
url "https://github.com/andreazorzetto/yh/archive/v0.4.0.tar.gz"
sha256 "78ef799c500c00164ea05aacafc5c34dccc565e364285f05636c920c2c356d73"
license "Apache-2.0"
head "https://github.com/andreazorzetto/yh.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "1c7d591013f9ba22f605f81f1f058c3377f4125ef1d0f990651e9cdd12805cdc"
sha256 cellar: :any_skip_relocation, big_sur: "e8165967a843d90d96ed71a41b303b7b434cf855e1e456d428c694aeceeee737"
sha256 cellar: :any_skip_relocation, catalina: "1a2425d399a63df18758dfabf9d50da2559fb489c32bfb4462d7437f64fc0817"
sha256 cellar: :any_skip_relocation, mojave: "69f1ab9c740906f04924c780cb512ea26fa0c51bdf66be85c71c4cbaa9dc6ca1"
sha256 cellar: :any_skip_relocation, high_sierra: "184eb9a41954f7a3d11f3065dfab42085a724c617ec635681e05784eeebe6329"
sha256 cellar: :any_skip_relocation, x86_64_linux: "bb931efbbdf0b82803769d855550c979a6a7406813c5da5035de3fe0f3e42489" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args
end
test do
assert_equal "\e[91mfoo\e[0m: \e[33mbar\e[0m\n", pipe_output("#{bin}/yh", "foo: bar")
end
end
|
0x07CB/linuxbrew-core
|
Formula/pegtl.rb
|
class Pegtl < Formula
desc "Parsing Expression Grammar Template Library"
homepage "https://github.com/taocpp/PEGTL"
url "https://github.com/taocpp/PEGTL/archive/3.2.1.tar.gz"
sha256 "af33818352bc0b73c66aa9bc037735ce43d471533f1078ee828ba7e09962847d"
license "MIT"
depends_on "cmake" => :build
if MacOS.version <= :mojave
depends_on "gcc"
fails_with :clang do
cause "'path' is unavailable in c++ < 17: introduced in macOS 10.15"
end
end
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args,
"-DPEGTL_BUILD_TESTS=OFF",
"-DPEGTL_BUILD_EXAMPLES=OFF",
"-DCMAKE_CXX_STANDARD=17"
system "make", "install"
end
rm "src/example/pegtl/CMakeLists.txt"
(pkgshare/"examples").install (buildpath/"src/example/pegtl").children
end
test do
system ENV.cxx, pkgshare/"examples/hello_world.cpp", "-std=c++17", "-o", "helloworld"
assert_equal "Good bye, homebrew!\n", shell_output("./helloworld 'Hello, homebrew!'")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libpciaccess.rb
|
<gh_stars>100-1000
class Libpciaccess < Formula
desc "Generic PCI access library"
homepage "https://www.x.org/"
url "https://www.x.org/pub/individual/lib/libpciaccess-0.16.tar.bz2"
sha256 "214c9d0d884fdd7375ec8da8dcb91a8d3169f263294c9a90c575bf1938b9f489"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "0ad20571544fac268f42c3d5f4c0b3d35e3ad0024f29dabe18ddd24030a39567" # linuxbrew-core
end
depends_on "pkg-config" => :build
depends_on "util-macros" => :build
depends_on :linux
def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
]
system "./configure", *args
system "make"
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#include "pciaccess.h"
int main(int argc, char* argv[]) {
int pci_system_init(void);
const struct pci_id_match *match;
struct pci_device_iterator *iter;
struct pci_device *dev;
return 0;
}
EOS
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lpciaccess"
end
end
|
0x07CB/linuxbrew-core
|
Formula/wgetpaste.rb
|
class Wgetpaste < Formula
desc "Automate pasting to a number of pastebin services"
homepage "https://wgetpaste.zlin.dk/"
url "https://wgetpaste.zlin.dk/wgetpaste-2.30.tar.bz2"
sha256 "e3ec35f1ff49f2204864e3b4d784f6c032cdddb62cadf69263900c67a4896592"
license "MIT"
livecheck do
url :homepage
regex(/href=.*?wgetpaste[._-]v?(\d+(?:\.\d+)+)\.(?:t|bz)/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "0bb121b26283be882277c31c354ce3e70220622b20811f1ee34beb7066557d67" # linuxbrew-core
end
depends_on "wget"
def install
bin.install "wgetpaste"
zsh_completion.install "_wgetpaste"
end
test do
system bin/"wgetpaste", "-S"
end
end
|
0x07CB/linuxbrew-core
|
Formula/spring-roo.rb
|
class SpringRoo < Formula
desc "Rapid application development tool for Java developers"
homepage "https://projects.spring.io/spring-roo/"
url "https://s3.amazonaws.com/spring-roo-repository.springsource.org/release/ROO/spring-roo-2.0.0.RELEASE.zip"
version "2.0.0"
sha256 "37819adf23b221a4544a7b1e6853b67f695fb915f5a1d433760e04fb4b5d7263"
livecheck do
url :homepage
regex(/href=.*?spring-roo[._-]v?(\d+(?:\.\d+)+)\.RELEASE\.zip/i)
end
def install
rm Dir["bin/*.bat"]
libexec.install Dir["*"]
mv "#{libexec}/bin/roo.sh", "#{libexec}/bin/roo"
bin.write_exec_script Dir["#{libexec}/bin/*"]
end
end
|
0x07CB/linuxbrew-core
|
Formula/aws-sso-util.rb
|
class AwsSsoUtil < Formula
include Language::Python::Virtualenv
desc "Smooth out the rough edges of AWS SSO (temporarily, until AWS makes it better)"
homepage "https://github.com/benkehoe/aws-sso-util"
url "https://files.pythonhosted.org/packages/5a/ff/28de3b5c4189d244b5bb68c0591875df0a3a47b5b860de2bb9a100f3a60b/aws-sso-util-4.25.0.tar.gz"
sha256 "b84fb0b6bb66ee1a5797665cfeceb5d83bf9f3d6a8d8de42687dd65fc06cee8c"
license "Apache-2.0"
head "https://github.com/benkehoe/aws-sso-util.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9bb26fdfdd269567657dff7fbcdf9285cc41e333015d6039996b1ec645628fb6"
sha256 cellar: :any_skip_relocation, big_sur: "577c77af9b28f3017fc29552a1e279235d68afd727ef4747c414a1b1ec77fc66"
sha256 cellar: :any_skip_relocation, catalina: "ce68c609434752b07673db09a891903c62f5b4f87bde3227f6db882f1c5a10bc"
sha256 cellar: :any_skip_relocation, mojave: "4c55fb1fa40d8979de0a17c5fd2c23b7b2b5532a9e03a2081dca5bf7825a250d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5d1561d8ab4184801466dfd1ca0582753b240ab2bec08d87ad920409ceb979c3" # linuxbrew-core
end
depends_on "rust" => :build
depends_on "python@3.9"
depends_on "six"
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 "aws-error-utils" do
url "https://files.pythonhosted.org/packages/d6/a5/4b1213a8789314adb4a6d465fd77aec32f12bb2fedaa197525cbd4aedd32/aws-error-utils-1.2.0.tar.gz"
sha256 "164f2a5bdd69c4cecc647d6e080c21243472c44c4d3caba15908f69d7fcfe16b"
end
resource "aws-sso-lib" do
url "https://files.pythonhosted.org/packages/24/23/c178f2fae27d62307918e5825558c7513f24b2373ba7bc7c79e967f87c9c/aws-sso-lib-1.8.0.tar.gz"
sha256 "ae12ee0cf4329593be55ba985591b337bf7c74f58f2b33d165483dc166fafbf4"
end
resource "boto3" do
url "https://files.pythonhosted.org/packages/8e/ee/231804560862872dc4528e61ec848c6f120d7fd1be0b5b5a5ea76daddd25/boto3-1.18.45.tar.gz"
sha256 "68ee81a7ef40380a5ab973e242bbf8739d56a49f8691508c48760fb5066933e3"
end
resource "botocore" do
url "https://files.pythonhosted.org/packages/8d/0e/d39832a9718deb107c44217403633a410ed14157f56b52583b058fcac281/botocore-1.21.45.tar.gz"
sha256 "b3a77dcc7d54a3725aa0a9b44e4a79142a013584cd0568750a9ee9ab6970538f"
end
resource "click" do
url "https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-7.1.2.tar.gz"
sha256 "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"
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 "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 "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/4f/5a/597ef5911cb8919efe4d86206aa8b2658616d676a7088f0825ca08bd7cb8/urllib3-1.26.6.tar.gz"
sha256 "f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"
end
def install
virtualenv_install_with_resources
end
test do
cmd = "#{bin}/aws-sso-util configure profile invalid"\
" --sso-start-url https://example.com/start --sso-region eu-west-1" \
" --account-id 000000000000 --role-name InvalidRole" \
" --region eu-west-1 --non-interactive"
assert_empty shell_output "AWS_CONFIG_FILE=#{testpath}/config #{cmd}"
assert_predicate testpath/"config", :exist?
expected = <<~EOS
[profile invalid]
sso_start_url = https://example.com/start
sso_region = eu-west-1
sso_account_id = 000000000000
sso_role_name = InvalidRole
region = eu-west-1
credential_process = aws-sso-util credential-process --profile invalid
EOS
assert_equal expected, (testpath/"config").read
end
end
|
0x07CB/linuxbrew-core
|
Formula/periscope.rb
|
class Periscope < Formula
desc "Organize and de-duplicate your files without losing data"
homepage "https://github.com/anishathalye/periscope"
url "https://github.com/anishathalye/periscope.git",
tag: "v0.3.1",
revision: "e434390fbc41345083b8cfe3d65c743b3299de06"
license "GPL-3.0-only"
head "https://github.com/anishathalye/periscope.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "a316061e8574f8306a0db428030a80b1d881fa01f44d3fb5e11fbf262eb005dd"
sha256 cellar: :any_skip_relocation, big_sur: "ce293d18056b44958098f6950986676ba6747df28fda897ef6f7f9e83c19b724"
sha256 cellar: :any_skip_relocation, catalina: "b27894c43a915698a3667d5c77ee120e097195bb42f039ad12fc8aabb684f168"
sha256 cellar: :any_skip_relocation, mojave: "175b7fa2671aa807ae3574326c65efec9e2ec7599ce4645ffcbb4ee4b3b14056"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b2998259acfde7a53687bf3f46df9c7258cefe94ee1a7a6e5bfca3ed187f969c" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", "-ldflags",
"-s -w -X main.version=#{version} -X main.commit=#{Utils.git_head}",
"-trimpath", "./cmd/psc"
bin.install "psc"
# install bash completion
output = Utils.safe_popen_read("#{bin}/psc", "completion", "bash")
(bash_completion/"psc").write output
# install zsh completion
output = Utils.safe_popen_read("#{bin}/psc", "completion", "zsh")
(zsh_completion/"_psc").write output
end
test do
assert_match version.to_s, shell_output("#{bin}/psc version")
# setup
scandir = testpath/"scandir"
scandir.mkdir
(scandir/"a").write("dupe")
(scandir/"b").write("dupe")
(scandir/"c").write("unique")
# scan + summary is correct
shell_output "#{bin}/psc scan #{scandir} 2>/dev/null"
summary = shell_output("#{bin}/psc summary").strip.split("\n").map { |l| l.strip.split }
assert_equal [["tracked", "3"], ["unique", "2"], ["duplicate", "1"], ["overhead", "4", "B"]], summary
# rm allows deleting dupes but not uniques
shell_output "#{bin}/psc rm #{scandir/"a"}"
refute_predicate (scandir/"a"), :exist?
# now b is unique
shell_output "#{bin}/psc rm #{scandir/"b"} 2>/dev/null", 1
assert_predicate (scandir/"b"), :exist?
shell_output "#{bin}/psc rm #{scandir/"c"} 2>/dev/null", 1
assert_predicate (scandir/"c"), :exist?
# cleanup
shell_output("#{bin}/psc finish")
end
end
|
0x07CB/linuxbrew-core
|
Formula/xh.rb
|
<filename>Formula/xh.rb
class Xh < Formula
desc "Friendly and fast tool for sending HTTP requests"
homepage "https://github.com/ducaale/xh"
url "https://github.com/ducaale/xh/archive/refs/tags/v0.13.0.tar.gz"
sha256 "d3e46b6db5a131237d5f980ccaae6f04c5ba7b06922d97c7f98f36f03cf581fe"
license "MIT"
head "https://github.com/ducaale/xh.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "26292428e0b0ba0727e38b9693782e0c1a7f795ffb43c58d1eada081ef0aea44"
sha256 cellar: :any_skip_relocation, big_sur: "daf8cdcc24b0ac8a3b25abb4f42871c7af52dd2690bdaf94576433fa78e998cf"
sha256 cellar: :any_skip_relocation, catalina: "ea2de87328ac70becf698b04ea9ea8c8d4f04434cae2c42444dedcd02858e90a"
sha256 cellar: :any_skip_relocation, mojave: "a3824630363bb66568441a1197133ae8b98534bf033fbbbf6851aa0176fb5e41"
sha256 cellar: :any_skip_relocation, x86_64_linux: "616f7cbec8789cfe5b175faee47702a0d4765f33c5cbc8be1ead573858f6fc80" # linuxbrew-core
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
bin.install_symlink bin/"xh" => "xhs"
man1.install "doc/xh.1"
bash_completion.install "completions/xh.bash"
fish_completion.install "completions/xh.fish"
zsh_completion.install "completions/_xh"
end
test do
hash = JSON.parse(shell_output("#{bin}/xh -I -f POST https://httpbin.org/post foo=bar"))
assert_equal hash["form"]["foo"], "bar"
end
end
|
0x07CB/linuxbrew-core
|
Formula/tcpkali.rb
|
<filename>Formula/tcpkali.rb
class Tcpkali < Formula
desc "High performance TCP and WebSocket load generator and sink"
homepage "https://github.com/machinezone/tcpkali"
url "https://github.com/machinezone/tcpkali/releases/download/v1.1.1/tcpkali-1.1.1.tar.gz"
sha256 "a9a15a1703fc4960360a414ee282d821a7b42d4bbba89f9e72a796164ff69598"
license "BSD-2-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7e7b45ed05cf7d7ad1dde75394b670e192c217cdfe98012e8da514cf6717d64a"
sha256 cellar: :any_skip_relocation, big_sur: "6496fe2ab336a75fecc905017ea8886c67dff3e13139b37474e6f500eb98e0fa"
sha256 cellar: :any_skip_relocation, catalina: "01bd403a6b94827f4670877d1e36ee4c439f708d84d364584e5b1538837e72d0"
sha256 cellar: :any_skip_relocation, mojave: "3e9bbcb12b289d1dff3c2355664208ee0a65cea032ebe1dc0d6d1346f67c1a2f"
sha256 cellar: :any_skip_relocation, high_sierra: "b82b2ea3a3d17d3fd464a5e887c9cce14dce8a82bbcb350df5f7bd321893bfdb"
sha256 cellar: :any_skip_relocation, sierra: "f73513ed96b6436085e0941865f0cc4fd2ce1009a1d8770c740e8e97d5173cf1"
sha256 cellar: :any_skip_relocation, el_capitan: "2d0075b2fca885fb694660a3914362030be255c8e3dfed407bb8ca96c996bbf7"
sha256 cellar: :any_skip_relocation, yosemite: "71573c4926d086721c028e73d9812475fe3a58bd8313a43ef9c6a54918334760"
end
uses_from_macos "bison" => :build
uses_from_macos "ncurses"
def install
system "./configure", *std_configure_args
system "make", "install"
end
test do
system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
end
end
|
0x07CB/linuxbrew-core
|
Formula/nethack.rb
|
<gh_stars>100-1000
# Nethack the way God intended it to be played: from a terminal.
class Nethack < Formula
desc "Single-player roguelike video game"
homepage "https://www.nethack.org/"
url "https://www.nethack.org/download/3.6.6/nethack-366-src.tgz"
version "3.6.6"
sha256 "cfde0c3ab6dd7c22ae82e1e5a59ab80152304eb23fb06e3129439271e5643ed2"
license "NGPL"
head "https://github.com/NetHack/NetHack.git", branch: "NetHack-3.7"
# The /download/ page loads the following page in an iframe and this contains
# links to version directories which contain the archive files.
livecheck do
url "https://www.nethack.org/common/dnldindex.html"
regex(%r{href=.*?/v?(\d+(?:\.\d+)+)/?["' >]}i)
end
bottle do
sha256 arm64_big_sur: "9d9c5a416f9d3c7770a7d6243d504f05d9fbff7bba1340b39f58ba1b61438cd5"
sha256 big_sur: "d4db0fc0aa73dd80ef2e32a521db2f67d597606217713dd5644adec265a7cab5"
sha256 catalina: "69418bfcba43b656118140a7e50992772567c4c2ab4827ce0af343892a149945"
sha256 mojave: "4d186d190dcab9cc719a3868aa73a6c311407f8c1510e1d3bfd185a8070177bc"
sha256 high_sierra: "6b6b5eb3571c69d31ac0c88f42acae3cea5f42ec513bafd03960db8c9f994177"
sha256 x86_64_linux: "7b62ff8bc77a49942b76eb1e5bee8ebcc290a748d80079e492ef5008ffc94ae0" # linuxbrew-core
end
uses_from_macos "bison" => :build
uses_from_macos "flex" => :build
uses_from_macos "ncurses"
def install
ENV.deparallelize
# Fixes https://github.com/NetHack/NetHack/issues/274
ENV.O0
cd "sys/unix" do
hintfile = if MacOS.version >= :mojave
"macosx10.14"
else
"macosx10.10"
end
# Enable wizard mode for all users
inreplace "sysconf", /^WIZARDS=.*/, "WIZARDS=*"
# Enable curses interface
# Setting VAR_PLAYGROUND preserves saves across upgrades
inreplace "hints/#{hintfile}" do |s|
s.change_make_var! "HACKDIR", libexec
s.change_make_var! "CHOWN", "true"
s.change_make_var! "CHGRP", "true"
s.gsub! "#WANT_WIN_CURSES=1",
"WANT_WIN_CURSES=1\nCFLAGS+=-DVAR_PLAYGROUND='\"#{HOMEBREW_PREFIX}/share/nethack\"'"
end
system "sh", "setup.sh", "hints/#{hintfile}"
end
system "make", "install"
bin.install_symlink libexec/"nethack"
man6.install "doc/nethack.6"
end
def post_install
# These need to exist (even if empty) otherwise nethack won't start
savedir = HOMEBREW_PREFIX/"share/nethack"
mkdir_p savedir
cd savedir do
%w[xlogfile logfile perm record].each do |f|
touch f
end
mkdir_p "save"
touch "save/.keepme" # preserve on `brew cleanup`
end
# Set group-writeable for multiuser installs
chmod "g+w", savedir
chmod "g+w", savedir/"save"
end
test do
system "#{bin}/nethack", "-s"
assert_match (HOMEBREW_PREFIX/"share/nethack").to_s,
shell_output("#{bin}/nethack --showpaths")
end
end
|
0x07CB/linuxbrew-core
|
Formula/base64.rb
|
class Base64 < Formula
desc "Encode and decode base64 files"
homepage "https://www.fourmilab.ch/webtools/base64/"
url "https://www.fourmilab.ch/webtools/base64/base64-1.5.tar.gz"
sha256 "2416578ba7a7197bddd1ee578a6d8872707c831d2419bdc2c1b4317a7e3c8a2a"
livecheck do
url :homepage
regex(/href=.*?base64[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ddaa699165e82146b4f3b476d05cff364a9530d1c389d43573b8f59a2a2e7d5a"
sha256 cellar: :any_skip_relocation, big_sur: "4c9e32d24df53a042aec56518070159c224216e16346f7f567a4261521609efd"
sha256 cellar: :any_skip_relocation, catalina: "f883e1602433f3a921fd1892747d76cf4548f75ac2e572be9eb0cfe0ced7290c"
sha256 cellar: :any_skip_relocation, mojave: "790e40a7ee037b0b99cc63d2085b121893ba80dfb43465c380568e7bacf3f83a"
sha256 cellar: :any_skip_relocation, high_sierra: "c3a8113c031b07426e6eda7da7604db9308999f456eeca5f3f2d5c8d85ba3a0d"
sha256 cellar: :any_skip_relocation, sierra: "3cd13d14c225413a5bc3b24f8f5dab48c2a942b64bf9162ad3a8ea8320a74bd1"
sha256 cellar: :any_skip_relocation, el_capitan: "0ab522634adf5c9eefb08c11d51d2b6e0477d8ea607afdb8eefe204de764f180"
sha256 cellar: :any_skip_relocation, yosemite: "5681332029a2ed1fe1272b2ef9877a6348501897822c6a8955b26bb904426b1a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9a9ce00338cde1af65b9283cc9893621c645bf32307eae5f3cf6e5f3e88efdce" # linuxbrew-core
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking"
system "make"
bin.install "base64"
man1.install "base64.1"
end
test do
path = testpath/"a.txt"
path.write "hello"
assert_equal "aGVsbG8=", shell_output("#{bin}/base64 #{path}").strip
end
end
|
0x07CB/linuxbrew-core
|
Formula/libatomic_ops.rb
|
class LibatomicOps < Formula
desc "Implementations for atomic memory update operations"
homepage "https://github.com/ivmai/libatomic_ops/"
url "https://github.com/ivmai/libatomic_ops/releases/download/v7.6.12/libatomic_ops-7.6.12.tar.gz"
sha256 "f0ab566e25fce08b560e1feab6a3db01db4a38e5bc687804334ef3920c549f3e"
license "GPL-2.0"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "51e94ad755b4f85d03f3ac3d67a089f7fa0588340682838fce8b3ca5de193e81"
sha256 cellar: :any_skip_relocation, big_sur: "017fae77e5ec0d547f9e8fb08cf907af0fbfabd6eeda54d4353a446e37371971"
sha256 cellar: :any_skip_relocation, catalina: "c9e0de613f4d3dbd8f0aa005c5ed038d8054ed87f8d9e27d10d182113227c923"
sha256 cellar: :any_skip_relocation, mojave: "40c602dbee95c6e67b3c0b63f32a3e4ed81e6281941a1cf484fc8a95394f8f1a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e88da0d1511648aae7d26e80745f9a85884ba0a347733ebdbe6cc043eb6708cc" # linuxbrew-core
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
system "make", "check"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/cppi.rb
|
class Cppi < Formula
desc "Indent C preprocessor directives to reflect their nesting"
homepage "https://www.gnu.org/software/cppi/"
url "https://ftp.gnu.org/gnu/cppi/cppi-1.18.tar.xz"
mirror "https://ftpmirror.gnu.org/cppi/cppi-1.18.tar.xz"
sha256 "12a505b98863f6c5cf1f749f9080be3b42b3eac5a35b59630e67bea7241364ca"
license "GPL-3.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "00d594375b23e688f18b3abe9f6b892c23a83c5ecc4e8d27ce8a414c3f2070d6"
sha256 cellar: :any_skip_relocation, big_sur: "831418bd1a4c710184c6efb0b4a0476077f876cceedb9245dcf994ac7322e91b"
sha256 cellar: :any_skip_relocation, catalina: "24e10e144f6a86bb893f886cb631b9f57a3c3073fc19a0829e512c87db465ef0"
sha256 cellar: :any_skip_relocation, mojave: "9091ecb45e38512cdeb73d92078d1ee9c7bd8e5bce9d1698da9a53e2ae3f8b3c"
sha256 cellar: :any_skip_relocation, high_sierra: "bc8253f982b219088603021d510a6e7ee6d692ff5f693da19b32d0431bc9c9b4"
sha256 cellar: :any_skip_relocation, sierra: "d4c044247ba8a12f1462089bfa22602547894f0a9081fce21c4800e192a526ae"
sha256 cellar: :any_skip_relocation, el_capitan: "970e44d2a7a340fe29577f92c4b6dfcbac17f3aef35e6085197b668c4cd9013f"
sha256 cellar: :any_skip_relocation, yosemite: "f8198f4b6e76d9310d66d20cb0a5b2b6adc70bee83f0bbeaca8b45b6529ccc60"
sha256 x86_64_linux: "f951986f9dd220696a1979e5730b975fed3d5701c21302cfb354c5146eb63c9a" # linuxbrew-core
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make", "check"
system "make", "install"
end
test do
test = <<~EOS
#ifdef TEST
#include <homebrew.h>
#endif
EOS
assert_equal <<~EOS, pipe_output("#{bin}/cppi", test, 0)
#ifdef TEST
# include <homebrew.h>
#endif
EOS
end
end
|
0x07CB/linuxbrew-core
|
Formula/flamegraph.rb
|
class Flamegraph < Formula
desc "Stack trace visualizer"
homepage "https://github.com/brendangregg/FlameGraph"
url "https://github.com/brendangregg/FlameGraph/archive/v1.0.tar.gz"
sha256 "c5ba824228a4f7781336477015cb3b2d8178ffd86bccd5f51864ed52a5ad6675"
license "CDDL-1.0"
revision 1
head "https://github.com/brendangregg/FlameGraph.git"
uses_from_macos "perl"
def install
bin.install "flamegraph.pl", "difffolded.pl"
bin.install "stackcollapse-aix.pl", "stackcollapse-elfutils.pl", "stackcollapse-gdb.pl", "stackcollapse-go.pl",
"stackcollapse-instruments.pl", "stackcollapse-jstack.pl", "stackcollapse-ljp.awk",
"stackcollapse-perf-sched.awk", "stackcollapse-perf.pl", "stackcollapse-pmc.pl",
"stackcollapse-recursive.pl", "stackcollapse-sample.awk", "stackcollapse-stap.pl",
"stackcollapse-vsprof.pl", "stackcollapse-vtune.pl", "stackcollapse.pl"
bin.install "files.pl", "pkgsplit-perf.pl", "range-perf.pl"
if build.head?
bin.install "stackcollapse-bpftrace.pl", "stackcollapse-java-exceptions.pl", "stackcollapse-xdebug.php"
end
end
test do
(testpath/"perf-mirageos-stacks-01.txt").write <<~EOS
mir-console 23166 [000] 1333.768765: cpu-clock:
44bee3 camlLwt__return_1285 (/mnt/mirage/mirage-skeleton/console.unix2/_build/main.native)
4093d0 camlMain__fun_1418 (/mnt/mirage/mirage-skeleton/console.unix2/_build/main.native)
swapper 0 [001] 1333.768770: cpu-clock:
ffffffff810013aa xen_hypercall_sched_op ([kernel.kallsyms])
ffffffff8101caaf default_idle ([kernel.kallsyms])
ffffffff8101d376 arch_cpu_idle ([kernel.kallsyms])
ffffffff810bef35 cpu_startup_entry ([kernel.kallsyms])
ffffffff810101b8 cpu_bringup_and_idle ([kernel.kallsyms])
swapper 0 [002] 1333.768806: cpu-clock:
ffffffff810013aa xen_hypercall_sched_op ([kernel.kallsyms])
ffffffff8101caaf default_idle ([kernel.kallsyms])
ffffffff8101d376 arch_cpu_idle ([kernel.kallsyms])
ffffffff810bef35 cpu_startup_entry ([kernel.kallsyms])
ffffffff810101b8 cpu_bringup_and_idle ([kernel.kallsyms])
swapper 0 [003] 1333.768847: cpu-clock:
ffffffff810013aa xen_hypercall_sched_op ([kernel.kallsyms])
ffffffff8101caaf default_idle ([kernel.kallsyms])
ffffffff8101d376 arch_cpu_idle ([kernel.kallsyms])
ffffffff810bef35 cpu_startup_entry ([kernel.kallsyms])
ffffffff810101b8 cpu_bringup_and_idle ([kernel.kallsyms])
mir-console 23166 [000] 1333.778865: cpu-clock:
44b1d0 camlLwt__repr_rec_1132 (/mnt/mirage/mirage-skeleton/console.unix2/_build/main.native)
7f57a760d920 [unknown] ([unknown])
EOS
(testpath/"perf-mirageos-stacks-01-collapsed-all.txt").write <<~EOS
mir-console;camlMain__fun_1418;camlLwt__return_1285 1
swapper;cpu_bringup_and_idle;cpu_startup_entry;arch_cpu_idle;default_idle;xen_hypercall_sched_op 3
EOS
output = shell_output "#{bin}/stackcollapse-perf.pl #{testpath}/perf-mirageos-stacks-01.txt"
assert_match File.read("#{testpath}/perf-mirageos-stacks-01-collapsed-all.txt"), output
system "#{bin}/flamegraph.pl", "#{testpath}/perf-mirageos-stacks-01-collapsed-all.txt"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libcmph.rb
|
<filename>Formula/libcmph.rb
class Libcmph < Formula
desc "C minimal perfect hashing library"
homepage "https://cmph.sourceforge.io"
url "https://downloads.sourceforge.net/project/cmph/v2.0.2/cmph-2.0.2.tar.gz"
sha256 "365f1e8056400d460f1ee7bfafdbf37d5ee6c78e8f4723bf4b3c081c89733f1e"
bottle do
sha256 cellar: :any, arm64_big_sur: "30d22ddad3521ec07248910864e8caae7f8d959597663a9d21d2447c56e6639c"
sha256 cellar: :any, big_sur: "f1cc2211ac56a2702405246535a55613855c3879885ca73aa65d76890c2aa0e5"
sha256 cellar: :any, catalina: "c38019c153c728a28acbfe340cc86764285ec24edbdba5234b0593f83d355c22"
sha256 cellar: :any, mojave: "d02c761bd6b52424528bfdcd56b8d469d7cdd2e55f625c719229edb7f011889c"
sha256 cellar: :any, high_sierra: "abffeaf075db6387e636d43eb8fda9b76f02091bdb5533368306f899a46406c1"
sha256 cellar: :any, x86_64_linux: "<KEY>" # linuxbrew-core
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/pgloader.rb
|
class Pgloader < Formula
desc "Data loading tool for PostgreSQL"
homepage "https://github.com/dimitri/pgloader"
url "https://github.com/dimitri/pgloader/releases/download/v3.6.2/pgloader-bundle-3.6.2.tgz"
sha256 "e35b8c2d3f28f3c497f7e0508281772705940b7ae789fa91f77c86c0afe116cb"
license "PostgreSQL"
revision 2
head "https://github.com/dimitri/pgloader.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "d7f926192e26b7e8a0e5d269370590d23a1d1c28e2323b6c2001e71088b2b8cd"
sha256 cellar: :any_skip_relocation, catalina: "89145353b5e7cd483e99f88f9db350f678ee7281ebf06d2e02263d8ffa5a626c"
sha256 cellar: :any_skip_relocation, mojave: "d380bc8ea035e70afaaa5c913cf0ee4e4aedce19d7b29a6545297b59e512d0a8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c85704507e68fb2a7021f5629d011e96f38534aa81bbe71c9c73de45993a7aa5" # linuxbrew-core
end
depends_on "buildapp" => :build
depends_on "freetds"
depends_on "openssl@1.1"
depends_on "postgresql"
depends_on "sbcl"
# From https://github.com/dimitri/pgloader/issues/1218
# Fixes: "Compilation failed: Constant NIL conflicts with its asserted type FUNCTION."
patch :DATA
def install
system "make"
bin.install "bin/pgloader"
end
end
__END__
--- a/local-projects/cl-csv/parser.lisp
+++ b/local-projects/cl-csv/parser.lisp
@@ -31,12 +31,12 @@ See: csv-reader "))
(ignore-errors (format s "~S" (string (buffer o))))))
(defclass read-dispatch-table-entry ()
- ((delimiter :type (vector (or boolean character))
+ ((delimiter :type (or (vector (or boolean character)) null)
:accessor delimiter :initarg :delimiter :initform nil)
(didx :type fixnum :initform -1 :accessor didx :initarg :didx)
(dlen :type fixnum :initform 0 :accessor dlen :initarg :dlen)
(dlen-1 :type fixnum :initform -1 :accessor dlen-1 :initarg :dlen-1)
- (dispatch :type function :initform nil :accessor dispatch :initarg :dispatch)
+ (dispatch :type (or function null) :initform nil :accessor dispatch :initarg :dispatch)
)
(:documentation "When a certain delimiter is matched it will call a certain function
T matches anything
|
0x07CB/linuxbrew-core
|
Formula/xcb-util.rb
|
class XcbUtil < Formula
desc "Additional extensions to the XCB library"
homepage "https://xcb.freedesktop.org"
url "https://xcb.freedesktop.org/dist/xcb-util-0.4.0.tar.bz2"
sha256 "46e49469cb3b594af1d33176cd7565def2be3fa8be4371d62271fabb5eae50e9"
license "MIT"
bottle do
sha256 cellar: :any, arm64_big_sur: "8d86304598d174005688503ce824bd1630482c357aa7de536eafd57d22041054"
sha256 cellar: :any, big_sur: "ca7b806f016b95c52654a351d966ee86e46dcc36339a44921fccc311c1d607a8"
sha256 cellar: :any, catalina: "c161b6f0372d40ace1238507365c18a52581b798262c856099cd86eabc38c625"
sha256 cellar: :any, mojave: "0979f730b01775f3dcb33c093132ec25a49912b99e679e774bae0e995fc3f73c"
sha256 cellar: :any, high_sierra: "16578b76b505e33f0ccb428a947e475520d78f4dd7a56504ff9e0af9870793cc"
sha256 cellar: :any, x86_64_linux: "9e84cd3328e3f856fb039c9635de379863d43fce6a5e33a24a356f63cf5e28fd" # linuxbrew-core
end
depends_on "pkg-config" => [:build, :test]
depends_on "libxcb"
def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
]
system "./configure", *args
system "make"
system "make", "install"
end
test do
assert_match "-I#{include}", shell_output("pkg-config --cflags xcb-util").chomp
end
end
|
0x07CB/linuxbrew-core
|
Formula/ipmitool.rb
|
class Ipmitool < Formula
desc "Utility for IPMI control with kernel driver or LAN interface"
homepage "https://github.com/ipmitool/ipmitool"
url "https://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.18/ipmitool-1.8.18.tar.bz2"
mirror "https://deb.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.18.orig.tar.bz2"
sha256 "0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01"
license "BSD-3-Clause"
revision 3
bottle do
sha256 cellar: :any, arm64_big_sur: "3223279b0188313a5d87ede24617f6bda5921acc1ce135c30c7c43823f14913f"
sha256 cellar: :any, big_sur: "6dd8c02b3e556949c98d40980dd9c1b456d1fa078d9d7792f36977e7d239a4ac"
sha256 cellar: :any, catalina: "926d5c49a0a1b9411e45c54e412403003266c27127059edb50b40e07adaf2260"
sha256 cellar: :any, mojave: "3bf8d00d62c2e1dc781493d448062ad365ac8e7c73010ee37ba2040a48513c10"
sha256 cellar: :any, high_sierra: "04462f0b4129d34cbf7e8e5c72591360e89dd6d6cef20008567015d57ab611c4"
sha256 cellar: :any, sierra: "f08f0e5717ff8ccf031ca738eb4995b39db5d37b802800b6e0b6c154f6fed830"
sha256 cellar: :any, x86_64_linux: "b8262f186dbb9cab277c76f441aee44b6a488ca522b2768beb75f195ff28a73d" # linuxbrew-core
end
depends_on "openssl@1.1"
# https://sourceforge.net/p/ipmitool/bugs/433/#89ea and
# https://sourceforge.net/p/ipmitool/bugs/436/ (prematurely closed):
# Fix segfault when prompting for password
# Re-reported 12 July 2017 https://sourceforge.net/p/ipmitool/mailman/message/35942072/
patch do
url "https://gist.githubusercontent.com/adaugherity/87f1466b3c93d5aed205a636169d1c58/raw/29880afac214c1821e34479dad50dca58a0951ef/ipmitool-getpass-segfault.patch"
sha256 "fc1cff11aa4af974a3be191857baeaf5753d853024923b55c720eac56f424038"
end
# Patch for compatibility with OpenSSL 1.1.1
# https://reviews.freebsd.org/D17527
patch :p0 do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/10f4f68f/ipmitool/openssl-1.1.diff"
sha256 "8ad4e19d7c39d1bf95a0219d03f4d8490727ac79cb297a36639443ef030bb76a"
end
def install
# Fix ipmi_cfgp.c:33:10: fatal error: 'malloc.h' file not found
# Upstream issue from 8 Nov 2016 https://sourceforge.net/p/ipmitool/bugs/474/
inreplace "lib/ipmi_cfgp.c", "#include <malloc.h>", ""
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man}
--disable-intf-usb
]
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
# Test version print out
system bin/"ipmitool", "-V"
end
end
|
0x07CB/linuxbrew-core
|
Formula/md4c.rb
|
<reponame>0x07CB/linuxbrew-core
class Md4c < Formula
desc "C Markdown parser. Fast. SAX-like interface"
homepage "https://github.com/mity/md4c"
url "https://github.com/mity/md4c/archive/release-0.4.8.tar.gz"
sha256 "4a457df853425b6bb6e3457aa1d1a13bccec587a04c38c622b1013a0da41439f"
license "MIT"
bottle do
sha256 cellar: :any, arm64_big_sur: "1873e516760235dba2670bb63a612b99b51714baf657b99c2c411da40c3162ec"
sha256 cellar: :any, big_sur: "8b4ae9a5232e84db3d0ab6793a8dd5bd56071fb32832fd94d16fa8162ec08a16"
sha256 cellar: :any, catalina: "8368b905e33301b5019e8520f7d010e3a57f74855ebd5cbbbf87aa1d8ded50a7"
sha256 cellar: :any, mojave: "ad888318dd048fc87594ff6a67321b9f9711bafb835f121f46f8f3e31de1931a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a2e307ae299a316da5b4ad62e760c23fc1cda16de841fb658686b8c9e19b28f4" # linuxbrew-core
end
depends_on "cmake" => :build
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DCMAKE_INSTALL_RPATH=#{rpath}"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
# test md2html
(testpath/"test_md.md").write <<~EOS
# Title
some text
EOS
system bin/"md2html", "./test_md.md"
# test libmd4c
(testpath/"test_program.c").write <<~EOS
#include <stddef.h>
#include <md4c.h>
MD_CHAR* text = "# Title\\nsome text";
int test_block(MD_BLOCKTYPE type, void* detail, void* data) { return 0; }
int test_span(MD_SPANTYPE type, void* detail, void* data) { return 0; }
int test_text(MD_TEXTTYPE type, const MD_CHAR* text, MD_SIZE size, void* userdata) { return 0; }
int main() {
MD_PARSER parser = {
.enter_block = test_block,
.leave_block = test_block,
.enter_span = test_span,
.leave_span = test_span,
.text = test_text
};
int result = md_parse(text, sizeof(text), &parser, NULL);
return result;
}
EOS
system ENV.cc, "test_program.c", "-L#{lib}", "-lmd4c", "-o", "test_program"
system "./test_program"
end
end
|
0x07CB/linuxbrew-core
|
Formula/lc0.rb
|
<filename>Formula/lc0.rb<gh_stars>100-1000
class Lc0 < Formula
desc "Open source neural network based chess engine"
homepage "https://lczero.org/"
url "https://github.com/LeelaChessZero/lc0.git",
tag: "v0.28.0",
revision: "3982cc0e74b576476c875da6fa0ff81164287425"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "36aa6aad76aee88ce231dc5a0aac948f097055351813351876acd08dfc450a03"
sha256 cellar: :any_skip_relocation, big_sur: "994f3b0045579eccda6c5eb1241a4484c202bb9c8528184ba2e4eee770a7e2c5"
sha256 cellar: :any_skip_relocation, catalina: "e37cf24d564b5649d873692e5162a90e7e1840e2346326be86ef0ba25c8b7737"
sha256 cellar: :any_skip_relocation, mojave: "650ff1cdf5e4aad508572322e89010722c92bf30b89ed07f95cdec6dd1fd0140"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4d89547675b9eb3c62073100047d9f9d91e51f9d3063655cf38e7f836dd28063" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "python@3.9" => :build # required to compile .pb files
depends_on "eigen"
uses_from_macos "zlib"
on_linux do
depends_on "gcc" # for C++17
depends_on "openblas"
end
fails_with gcc: "5"
resource "network" do
url "https://training.lczero.org/get_network?sha=00af53b081e80147172e6f281c01daf5ca19ada173321438914c730370aa4267", using: :nounzip
sha256 "12df03a12919e6392f3efbe6f461fc0ff5451b4105f755503da151adc7ab6d67"
end
def install
args = ["-Dgtest=false"]
if OS.linux?
args << "-Dopenblas_include=#{Formula["openblas"].opt_include}"
args << "-Dopenblas_libdirs=#{Formula["openblas"].opt_lib}"
end
system "meson", *std_meson_args, *args, "build/release"
cd "build/release" do
system "ninja", "-v"
libexec.install "lc0"
end
bin.write_exec_script libexec/"lc0"
resource("network").stage { libexec.install Dir["*"].first => "42850.pb.gz" }
end
test do
assert_match "Creating backend [blas]",
shell_output("lc0 benchmark --backend=blas --nodes=1 --num-positions=1 2>&1")
assert_match "Creating backend [eigen]",
shell_output("lc0 benchmark --backend=eigen --nodes=1 --num-positions=1 2>&1")
end
end
|
0x07CB/linuxbrew-core
|
Formula/pdsh.rb
|
class Pdsh < Formula
desc "Efficient rsh-like utility, for using hosts in parallel"
homepage "https://github.com/chaos/pdsh"
url "https://github.com/chaos/pdsh/releases/download/pdsh-2.34/pdsh-2.34.tar.gz"
sha256 "b47b3e4662736ef44b6fe86e3d380f95e591863e69163aa0592e9f9f618521e9"
license "GPL-2.0"
head "https://github.com/chaos/pdsh.git", branch: "master"
bottle do
sha256 arm64_big_sur: "08092fc19817b2eb4fbbb1ffe7849246f7a8c0cfc1b3493d631f41b77ab68de6"
sha256 big_sur: "c9865e6ec25dd5d76c412919c161377a73e0e72f53b97c433488377ea6c69ece"
sha256 catalina: "db103afd01523d00761df3c077b309ffeaa7e816a538ab9b739fac7b58a8171b"
sha256 mojave: "d5ce164360edacbda30b059e8964fc6e4c886adc5f63218a37667756419ef51a"
sha256 high_sierra: "4063ea4d575eef74e2af6993a74658df6c48e42b81df8a77a49aee745c7527a0"
end
depends_on "readline"
def install
args = %W[
--prefix=#{prefix}
--mandir=#{man}
--with-nodeupdown
--with-readline
--with-ssh
--with-dshgroups
--with-netgroup
--with-slurm
--without-rsh
--without-xcpu
]
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/pdsh", "-V"
end
end
|
0x07CB/linuxbrew-core
|
Formula/cgdb.rb
|
<filename>Formula/cgdb.rb
class Cgdb < Formula
desc "Curses-based interface to the GNU Debugger"
homepage "https://cgdb.github.io/"
url "https://cgdb.me/files/cgdb-0.7.1.tar.gz"
sha256 "bb723be58ec68cb59a598b8e24a31d10ef31e0e9c277a4de07b2f457fe7de198"
license "GPL-2.0-or-later"
livecheck do
url "https://cgdb.me/files/"
regex(/href=.*?cgdb[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "c5eb8b69bec6303b69525db54266cf5f8125eb5b6d97d7f5c2bf41cdab082748"
sha256 big_sur: "dd7a9696d58a5d22b71f0fe2f749f89e6b0d660f0378829de3959a694a0bb007"
sha256 catalina: "50abc3a292d69a3a121f3ed7d54d72f4528eb1285faa7f842bb96588a463dc88"
sha256 mojave: "8f361fcad59ddf4825f4d42b516a099ba75bfffc0b885d42aeb875dbd1b2a1d4"
sha256 high_sierra: "9ab4c0a880cb71903094929b04eada3c279a48ddb00b651a8a93d55cd523d380"
sha256 sierra: "db6c63b20e2185ecaaf3ddef92d1ff052f0b0322c727f3f0429ef0d38ac9d269"
sha256 x86_64_linux: "32af136630de23cbfe59ed7d9593aa8e133a5c680d44042ab9f7901bf31acc6f" # linuxbrew-core
end
head do
url "https://github.com/cgdb/cgdb.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
depends_on "help2man" => :build
depends_on "readline"
uses_from_macos "flex" => :build
uses_from_macos "texinfo" => :build
def install
system "sh", "autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}"
system "make", "install"
end
test do
system "#{bin}/cgdb", "--version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/gcalcli.rb
|
class Gcalcli < Formula
include Language::Python::Virtualenv
desc "Easily access your Google Calendar(s) from a command-line"
homepage "https://github.com/insanum/gcalcli"
url "https://files.pythonhosted.org/packages/e8/d9/9d1f03b9b47c3082bf664a2f789a3aded0674dca9e0b894540d754b937cc/gcalcli-4.3.0.tar.gz"
sha256 "d00081460276027196e8fb957880b29ba4f22ea43136f9e232a9408016abc110"
license "MIT"
revision 1
head "https://github.com/insanum/gcalcli.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d2af2f27ffd790abe6ccf04eee3da3c108d262dde8b21f98021c23e31caae13f"
sha256 cellar: :any_skip_relocation, big_sur: "a336b96d3024378005c666f33f3d9090d2f8050b91ab72422895789e75de2b54"
sha256 cellar: :any_skip_relocation, catalina: "bda1c0fdefccdb4595c7b09b37c948714cb2f28496d502130ec03cfd4d434f1d"
sha256 cellar: :any_skip_relocation, mojave: "10b1036a3250e6738b79f24159ca959cdf74191bb7dfaec2d6945afd16f272d3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c8269db0c1e42f29fd652b6fde62ff6023f5114362c9f05a581cf647e46c2d40" # linuxbrew-core
end
depends_on "python@3.10"
resource "cachetools" do
url "https://files.pythonhosted.org/packages/fc/c8/0b52cf3132b4b85c9e83faa3e4d375575afeb3a1710c40b2b2cd2a3e5635/cachetools-4.1.1.tar.gz"
sha256 "bbaa39c3dede00175df2dc2b03d0cf18dd2d32a7de7beb68072d13043c9edb20"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/40/a7/ded59fa294b85ca206082306bba75469a38ea1c7d44ea7e1d64f5443d67a/certifi-2020.6.20.tar.gz"
sha256 "5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3"
end
resource "chardet" do
url "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz"
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
end
resource "google-api-core" do
url "https://files.pythonhosted.org/packages/e9/0b/3053f546d5150c9130c892034ba7eeff09b79e499ec122220dcb8ed6f64f/google-api-core-1.22.4.tar.gz"
sha256 "4a9d7ac2527a9e298eebb580a5e24e7e41d6afd97010848dd0f306cae198ec1a"
end
resource "google-api-python-client" do
url "https://files.pythonhosted.org/packages/36/76/5e27bab1fb7e449fe3564019f36c96dd0fc0240132e9a8744835ec6c3567/google-api-python-client-1.12.3.tar.gz"
sha256 "844ef76bda585ea0ea2d5e7f8f9a0eb10d6e2eba66c4fea0210ec7843941cb1a"
end
resource "google-auth" do
url "https://files.pythonhosted.org/packages/dc/fa/a22e99cf47b2d8fd5e7e17a2a6500a6b1feb3187c1e41bf411e4c54097ef/google-auth-1.22.1.tar.gz"
sha256 "9c0f71789438d703f77b94aad4ea545afaec9a65f10e6cc1bc8b89ce242244bb"
end
resource "google-auth-httplib2" do
url "https://files.pythonhosted.org/packages/6c/5e/97a5e7573457020351a275c74c559dbe2ebe1c606119f991541c98ffa651/google-auth-httplib2-0.0.4.tar.gz"
sha256 "8d092cc60fb16517b12057ec0bba9185a96e3b7169d86ae12eae98e645b7bc39"
end
resource "googleapis-common-protos" do
url "https://files.pythonhosted.org/packages/95/3f/a1282d82def57e0c28bab597d25785774a4e64433aac9cc136e65c500da8/googleapis-common-protos-1.52.0.tar.gz"
sha256 "560716c807117394da12cecb0a54da5a451b5cf9866f1d37e9a5e2329a665351"
end
resource "httplib2" do
url "https://files.pythonhosted.org/packages/98/3f/0769a851fbb0ecc458260055da67d550d3015ebe6b8b861c79ad00147bb9/httplib2-0.18.1.tar.gz"
sha256 "8af66c1c52c7ffe1aa5dc4bcd7c769885254b0756e6e69f953c7f0ab49a70ba3"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/ea/b7/e0e3c1c467636186c39925827be42f16fee389dc404ac29e930e9136be70/idna-2.10.tar.gz"
sha256 "b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"
end
resource "oauth2client" do
url "https://files.pythonhosted.org/packages/a6/7b/17244b1083e8e604bf154cf9b716aecd6388acd656dd01893d0d244c94d9/oauth2client-4.1.3.tar.gz"
sha256 "d486741e451287f69568a4d26d70d9acd73a2bbfa275746c535b4209891cccc6"
end
resource "parsedatetime" do
url "https://files.pythonhosted.org/packages/a8/20/cb587f6672dbe585d101f590c3871d16e7aec5a576a1694997a3777312ac/parsedatetime-2.6.tar.gz"
sha256 "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455"
end
resource "protobuf" do
url "https://files.pythonhosted.org/packages/25/ef/8f36bc7e4c3dcad241a9e7a51520d30712a7abc034343bed841ff4ea3289/protobuf-3.13.0.tar.gz"
sha256 "6a82e0c8bb2bf58f606040cc5814e07715b2094caeba281e2e7d0b0e2e397db5"
end
resource "pyasn1" do
url "https://files.pythonhosted.org/packages/a4/db/fffec68299e6d7bad3d504147f9094830b704527a7fc098b721d38cc7fa7/pyasn1-0.4.8.tar.gz"
sha256 "aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba"
end
resource "pyasn1-modules" do
url "https://files.pythonhosted.org/packages/88/87/72eb9ccf8a58021c542de2588a867dbefc7556e14b2866d1e40e9e2b587e/pyasn1-modules-0.2.8.tar.gz"
sha256 "905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e"
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 "pytz" do
url "https://files.pythonhosted.org/packages/f4/f6/94fee50f4d54f58637d4b9987a1b862aeb6cd969e73623e02c5c00755577/pytz-2020.1.tar.gz"
sha256 "c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/da/67/672b422d9daf07365259958912ba533a0ecab839d4084c487a5fe9a5405f/requests-2.24.0.tar.gz"
sha256 "b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b"
end
resource "rsa" do
url "https://files.pythonhosted.org/packages/a2/d5/04b8a9719149583fec76efdff2e7a81c6e3cc34909ee818d3fbf115edc2e/rsa-4.6.tar.gz"
sha256 "109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa"
end
resource "six" do
url "https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz"
sha256 "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"
end
resource "uritemplate" do
url "https://files.pythonhosted.org/packages/42/da/fa9aca2d866f932f17703b3b5edb7b17114bb261122b6e535ef0d9f618f8/uritemplate-3.0.1.tar.gz"
sha256 "5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/81/f4/87467aeb3afc4a6056e1fe86626d259ab97e1213b1dfec14c7cb5f538bf0/urllib3-1.25.10.tar.gz"
sha256 "91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a"
end
def install
virtualenv_install_with_resources
end
test do
output = pipe_output("#{bin}/gcalcli --client-id=foo --client-secret=bar --noauth_local_webserver list", "foo")
assert_match "Go to the following link in your browser:", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/scws.rb
|
<reponame>0x07CB/linuxbrew-core
class Scws < Formula
desc "Simple Chinese Word Segmentation"
homepage "https://github.com/hightman/scws"
url "http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2"
sha256 "60d50ac3dc42cff3c0b16cb1cfee47d8cb8c8baa142a58bc62854477b81f1af5"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "ac7b0ac31fb12e9c1e4611e00dc70e5a5a4eedec4cc3d700826937eb4f67f5a6"
sha256 cellar: :any, big_sur: "6d87c6c7431b97511b7ce3ec42493bff7685c6ee2682d9733428a71826a8b300"
sha256 cellar: :any, catalina: "4dedb954c6d17b1cc42d41a978e41a897110e042bbd6099f82bdbd0ff86b7aad"
sha256 cellar: :any, mojave: "feb648d3c6c98b2e693086371dae419f88b56b6d58e5ede76ffa882a6f9be4b6"
sha256 cellar: :any, high_sierra: "94977ce56fa0c3c9d2fb21fe52067b49be65247b41d723893ac8c91f0e2dbbf3"
sha256 cellar: :any, sierra: "81e6665fd65aae5e35c3e0b3f9f80bdaaf8ac787dfe6fe9e8454a8cb5cbcba02"
sha256 cellar: :any, x86_64_linux: "169ec9115017e6dcacba1db25247360d54a4396ca8e7198c7c6a065c3d13da1e" # linuxbrew-core
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
output = shell_output("#{bin}/scws -c utf8 -i δΊΊδΉε")
assert_match "δΊΊ δΉ ε", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/six.rb
|
class Six < Formula
desc "Python 2 and 3 compatibility utilities"
homepage "https://github.com/benjaminp/six"
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
license "MIT"
revision 2
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, x86_64_linux: "560f73cafaea617d44f93beffdac91ac3b93095b1b64ff3877c5c4903f1cb001" # linuxbrew-core
end
depends_on "python@3.10" => [:build, :test]
depends_on "python@3.8" => [:build, :test]
depends_on "python@3.9" => [:build, :test]
def pythons
deps.map(&:to_formula).sort_by(&:version)
end
def install
pythons.each do |python|
system python.opt_bin/"python3", *Language::Python.setup_install_args(prefix)
end
end
def caveats
python_versions = pythons.map { |p| p.version.major_minor }
.map(&:to_s)
.join(", ")
<<~EOS
This formula provides the `six` module for Python #{python_versions}.
If you need `six` for a different version of Python, use pip.
EOS
end
test do
pythons.each do |python|
system python.opt_bin/"python3", "-c", <<~EOS
import six
assert not six.PY2
assert six.PY3
EOS
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/cpulimit.rb
|
class Cpulimit < Formula
desc "CPU usage limiter"
homepage "https://github.com/opsengine/cpulimit"
url "https://github.com/opsengine/cpulimit/archive/v0.2.tar.gz"
sha256 "64312f9ac569ddcadb615593cd002c94b76e93a0d4625d3ce1abb49e08e2c2da"
license "GPL-2.0"
head "https://github.com/opsengine/cpulimit.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f09919436a14d7b1598720ca832435b2500aebe0839f5055a253f52c59642a5d"
sha256 cellar: :any_skip_relocation, big_sur: "f3f394e17febb7af49a1cb35c46e33856263dc58016d959aad2d2a250aae1d7d"
sha256 cellar: :any_skip_relocation, catalina: "7330907348c0a181c75b069dba7ee628e8c524c9bb9510487dbfd43730173db5"
sha256 cellar: :any_skip_relocation, mojave: "b9c7f99cbc62eb7c02b19c63a9b7e3f9186175707ff853a7107447fd7b2ee249"
sha256 cellar: :any_skip_relocation, high_sierra: "077ab8835a3b44ce77e3b8bf867633115b1d056046b232e49aeac96ac30e731c"
sha256 cellar: :any_skip_relocation, sierra: "fa5bc8d713837693c6bbd6139bec5e48b8a1d46ef669b2e042715dd1318b1655"
sha256 cellar: :any_skip_relocation, el_capitan: "9d7320465152a12ba75ce924beada5a3ce365b14becaa75e08ee8334c2cb2f6a"
sha256 cellar: :any_skip_relocation, yosemite: "7ff9d929c5a1178b250b756cefcbecc4b202c72f03073e9eb43f4a47420930a8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "14d6bb8b03bf1a09123c93a7f5dc02a81b90c84d5bd7d7f8c13bd0ceb8449e24" # linuxbrew-core
end
def install
system "make"
bin.install "src/cpulimit"
end
test do
system "#{bin}/cpulimit", "--limit=10", "ls"
end
end
|
0x07CB/linuxbrew-core
|
Formula/snap-telemetry.rb
|
<filename>Formula/snap-telemetry.rb<gh_stars>100-1000
class SnapTelemetry < Formula
desc "Snap is an opensource telemetry framework"
homepage "https://snap-telemetry.io/"
url "https://github.com/intelsdi-x/snap/archive/2.0.0.tar.gz"
sha256 "35f6ddcffcff27677309abb6eb4065b9fe029a266c3f7ff77103bf822ff315ab"
license "Apache-2.0"
head "https://github.com/intelsdi-x/snap.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "094be117be921cca221b7e0021e7e7d48d496e83599ed52fbd81c64b3b389d5b"
sha256 cellar: :any_skip_relocation, big_sur: "4e8cca8dbc731cb1bf7b92a8f410f287678ab270450cd0f58ce6f10eb7e3e1d5"
sha256 cellar: :any_skip_relocation, catalina: "6f52483af1ce2785dc7e9bf0fdc202430c61b804ef3a67e2487d669bf27edcb1"
sha256 cellar: :any_skip_relocation, mojave: "1cd9b411854596b3afe7afa22ed9041d31e21a860739246a5eeb47e03a6844e8"
sha256 cellar: :any_skip_relocation, high_sierra: "066cf3014caa27b6c3327f983cbe632cb85476c0731ec3fda40e85205c1a5f71"
sha256 cellar: :any_skip_relocation, sierra: "1ff53b8b2f1827e2a607d81dd3db246eb1388dfd1aa7110dcf59a8e4ba606d17"
sha256 cellar: :any_skip_relocation, el_capitan: "50ce1be7d6e83f309d8fd62bf2b36cb03c29b726d575abfbeef895b3f628fb46"
sha256 cellar: :any_skip_relocation, x86_64_linux: "88fc6b67ef8f1a47044ed06ea2744d51193e7fd26fdee82df38c8782ba99ef68" # linuxbrew-core
end
# https://github.com/intelsdi-x/snap/commit/e3a6c8e39994b3980df0c7b069d5ede810622952
deprecate! date: "2018-12-20", because: :deprecated_upstream
depends_on "glide" => :build
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["CGO_ENABLED"] = "0"
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
ENV["GO111MODULE"] = "auto"
snapteld = buildpath/"src/github.com/intelsdi-x/snap"
snapteld.install buildpath.children
cd snapteld do
system "glide", "install"
system "go", "build", "-o", "snapteld", "-ldflags", "-w -X main.gitversion=#{version}"
sbin.install "snapteld"
prefix.install_metafiles
end
snaptel = buildpath/"src/github.com/intelsdi-x/snap/cmd/snaptel"
cd snaptel do
system "go", "build", "-o", "snaptel", "-ldflags", "-w -X main.gitversion=#{version}"
bin.install "snaptel"
end
end
test do
assert_match version.to_s, shell_output("#{sbin}/snapteld --version")
assert_match version.to_s, shell_output("#{bin}/snaptel --version")
begin
snapteld_pid = fork do
exec "#{sbin}/snapteld -t 0 -l 1 -o #{testpath}"
end
sleep 5
assert_match("No plugins", shell_output("#{bin}/snaptel plugin list"))
assert_match("No task", shell_output("#{bin}/snaptel task list"))
assert_predicate testpath/"snapteld.log", :exist?
ensure
Process.kill("TERM", snapteld_pid)
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/bamtools.rb
|
class Bamtools < Formula
desc "C++ API and command-line toolkit for BAM data"
homepage "https://github.com/pezmaster31/bamtools"
url "https://github.com/pezmaster31/bamtools/archive/v2.5.2.tar.gz"
sha256 "4d8b84bd07b673d0ed41031348f10ca98dd6fa6a4460f9b9668d6f1d4084dfc8"
license "MIT"
head "https://github.com/pezmaster31/bamtools.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "cad31e2a176762fdaa4aa0b311509b30a339395b6da469f005c667b75ce99296"
sha256 cellar: :any_skip_relocation, big_sur: "5c213c66de8e7ed7a13b07b41b6ed3b71509a28121cf942c3b76cd735efa6c3d"
sha256 cellar: :any_skip_relocation, catalina: "e978a4b284e0905486557a2a3ccc224303900d38970e4c0a9b6ee6886c9fd743"
sha256 cellar: :any_skip_relocation, mojave: "4459a3ddde44539d67dec67bd40f3f7f38f98fbaa883db7b786aad410bd9cff4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "<KEY>" # linuxbrew-core
end
depends_on "cmake" => :build
uses_from_macos "zlib"
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
test do
(testpath/"test.cpp").write <<~EOS
#include "api/BamWriter.h"
using namespace BamTools;
int main() {
BamWriter writer;
writer.Close();
}
EOS
system ENV.cxx, "test.cpp", "-I#{include}/bamtools", "-L#{lib}",
"-lbamtools", "-lz", "-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/pcal.rb
|
<reponame>0x07CB/linuxbrew-core<gh_stars>100-1000
class Pcal < Formula
desc "Generate Postscript calendars without X"
homepage "https://pcal.sourceforge.io/"
url "https://downloads.sourceforge.net/project/pcal/pcal/pcal-4.11.0/pcal-4.11.0.tgz"
sha256 "8406190e7912082719262b71b63ee31a98face49aa52297db96cc0c970f8d207"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fdd9d437f60310691c6df93af1ee0bd2cc08e8bae5ee3fa1d73d76b76b4c88e4"
sha256 cellar: :any_skip_relocation, big_sur: "53c8157fa626298655248853dc283fe15947f47c725de2ea0c934773f0470063"
sha256 cellar: :any_skip_relocation, catalina: "9d7f46d2cbf308cd81bcce8fb98e48d295917562a46e509e739cad51d90dcf2c"
sha256 cellar: :any_skip_relocation, mojave: "0d4a63fb432c80894e629b89cf5500ffb1a03928b68b0e8c334c96adda01ce2b"
sha256 cellar: :any_skip_relocation, high_sierra: "25a667f9b166482637d890497e6fc9465ff8e28a4315a25ba5413fef9c68d79c"
sha256 cellar: :any_skip_relocation, sierra: "134df5abc458995e6092041db145e9bca45e2ff71eeeec9de410d497afbe7177"
sha256 cellar: :any_skip_relocation, el_capitan: "271667aef1031a0007e042fb3f933708aa33398d6bf9982a7353e6023d0d955c"
sha256 cellar: :any_skip_relocation, yosemite: "f88d2fc2ede97fd94333dea90617d02405b008ef359edb694926f4e476c6ae53"
end
uses_from_macos "groff" => :build
uses_from_macos "ncompress" => :build
def install
ENV.deparallelize
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
system "make", "install", "BINDIR=#{bin}", "MANDIR=#{man1}",
"CATDIR=#{man}/cat1"
end
test do
system "#{bin}/pcal"
end
end
|
0x07CB/linuxbrew-core
|
Formula/msgpack-tools.rb
|
class MsgpackTools < Formula
desc "Command-line tools for converting between MessagePack and JSON"
homepage "https://github.com/ludocode/msgpack-tools"
url "https://github.com/ludocode/msgpack-tools/releases/download/v0.6/msgpack-tools-0.6.tar.gz"
sha256 "98c8b789dced626b5b48261b047e2124d256e5b5d4fbbabdafe533c0bd712834"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "775db49a7259ddf909dd2a05a529e7e308cc2ac376ad116c1668bb659bd34a1c"
sha256 cellar: :any_skip_relocation, big_sur: "570a72e93de0677f94a586cb49e04ac1fe68655e451860d45a250702fc6e0383"
sha256 cellar: :any_skip_relocation, catalina: "901f0f7dadb40b70b20de05a699e5cd9ca37095f3ce9bb277aff3e4421219290"
sha256 cellar: :any_skip_relocation, mojave: "30f69cfbcfe93c148fec339d86775357cc804f50c58c42594708f7ae9abad226"
sha256 cellar: :any_skip_relocation, high_sierra: "9c12c496640b2913caa23147bdacffed803115e68607c56975bdab106b4b83b0"
sha256 cellar: :any_skip_relocation, sierra: "c576acc7e6078360a79bf7270336e0f3dc9012161e860681cbfe7f2de1313857"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ad7365beeb052efa6efe766cfcf0c64fb0bb0a49c454d477f9b713e35da23320" # linuxbrew-core
end
depends_on "cmake" => :build
conflicts_with "remarshal", because: "both install 'json2msgpack' binary"
def install
system "cmake", ".", *std_cmake_args
system "make", "install", "PREFIX=#{prefix}/"
end
test do
json_data = '{"hello":"world"}'
assert_equal json_data,
pipe_output("#{bin}/json2msgpack | #{bin}/msgpack2json", json_data, 0)
end
end
|
0x07CB/linuxbrew-core
|
Formula/jupyterlab.rb
|
class Jupyterlab < Formula
include Language::Python::Virtualenv
desc "Interactive environments for writing and running code"
homepage "https://jupyter.org/"
url "https://files.pythonhosted.org/packages/21/41/9fa76ba01f776c267ead5ea7224cb179e38e02d37690b4f9e0a1475a807e/jupyterlab-3.1.14.tar.gz"
sha256 "13174cb6076dd5da6f1b85725ccfcc9518d8f98e86b8b644fc89b1dfaeda63a9"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "0abd979a17d0cc585c29af4af791784b6da20bb7b5c6b07a51f0645f5d1d56d4"
sha256 cellar: :any, big_sur: "956891642a710eb82573069cc116ded9a496540c828e3c666b1dd082a05dbd6b"
sha256 cellar: :any, catalina: "13f4fc45af9bc41d98430b2fe7d1815fe32abcfc329c4785854e88f1e84eee82"
sha256 cellar: :any, mojave: "c88e5f22e4fcfb159f3028fdafb6d777d3d7bb23f54ca17ba3d9624884673078"
end
depends_on "node"
depends_on "pandoc"
depends_on "python@3.9"
depends_on "six"
depends_on "zeromq"
uses_from_macos "expect" => :test
resource "anyio" do
url "https://files.pythonhosted.org/packages/bf/3f/4d9972a2190759ac2a576c8fa8b64102a11932ccfb10ed928a116e283f5c/anyio-3.3.2.tar.gz"
sha256 "0b993a2ef6c1dc456815c2b5ca2819f382f20af98087cc2090a4afed3a501436"
end
resource "appnope" do
url "https://files.pythonhosted.org/packages/e9/bc/2d2c567fe5ac1924f35df879dbf529dd7e7cabd94745dc9d89024a934e76/appnope-0.1.2.tar.gz"
sha256 "dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a"
end
resource "argon2-cffi" do
url "https://files.pythonhosted.org/packages/7b/39/a26aaef5c3f0c6cfd67c80599b5b40a794fdab46f4ee3be925d71e2f9596/argon2-cffi-21.1.0.tar.gz"
sha256 "f710b61103d1a1f692ca3ecbd1373e28aa5e545ac625ba067ff2feca1b2bb870"
end
resource "attrs" do
url "https://files.pythonhosted.org/packages/ed/d6/3ebca4ca65157c12bd08a63e20ac0bdc21ac7f3694040711f9fd073c0ffb/attrs-21.2.0.tar.gz"
sha256 "ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"
end
resource "Babel" do
url "https://files.pythonhosted.org/packages/17/e6/ec9aa6ac3d00c383a5731cc97ed7c619d3996232c977bb8326bcbb6c687e/Babel-2.9.1.tar.gz"
sha256 "bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0"
end
resource "backcall" do
url "https://files.pythonhosted.org/packages/a2/40/764a663805d84deee23043e1426a9175567db89c8b3287b5c2ad9f71aa93/backcall-0.2.0.tar.gz"
sha256 "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"
end
resource "bleach" do
url "https://files.pythonhosted.org/packages/6a/a3/217842324374fd3fb33db0eb4c2909ccf3ecc5a94f458088ac68581f8314/bleach-4.1.0.tar.gz"
sha256 "0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da"
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 "charset-normalizer" do
url "https://files.pythonhosted.org/packages/eb/7f/a6c278746ddbd7094b019b08d1b2187101b1f596f35f81dc27f57d8fcf7c/charset-normalizer-2.0.6.tar.gz"
sha256 "5ec46d183433dcbd0ab716f2d7f29d8dee50505b3fdb40c6b985c7c4f5a3591f"
end
resource "debugpy" do
url "https://files.pythonhosted.org/packages/30/46/ed7311c871dff926770deb8c7370a26d58d9340e1130012a2bc570d31f72/debugpy-1.4.3.zip"
sha256 "4d53fe5aecf03ba466aa7fa7474c2b2fe28b2a6c0d36688d1e29382bfe88dd5f"
end
resource "decorator" do
url "https://files.pythonhosted.org/packages/92/3c/34f8448b61809968052882b830f7d8d9a8e1c07048f70deb039ae599f73c/decorator-5.1.0.tar.gz"
sha256 "e59913af105b9860aa2c8d3272d9de5a56a4e608db9a2f167a8480b323d529a7"
end
resource "defusedxml" do
url "https://files.pythonhosted.org/packages/0f/d5/c66da9b79e5bdb124974bfe172b4daf3c984ebd9c2a06e2b8a4dc7331c72/defusedxml-0.7.1.tar.gz"
sha256 "1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"
end
resource "entrypoints" do
url "https://files.pythonhosted.org/packages/b4/ef/063484f1f9ba3081e920ec9972c96664e2edb9fdc3d8669b0e3b8fc0ad7c/entrypoints-0.3.tar.gz"
sha256 "c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "ipykernel" do
url "https://files.pythonhosted.org/packages/4f/fe/2e411e2f2fba2318957e34694867e9d9b63811cd1aecff25984f31e35de0/ipykernel-6.4.1.tar.gz"
sha256 "df3355e5eec23126bc89767a676c5f0abfc7f4c3497d118c592b83b316e8c0cd"
end
resource "ipython" do
url "https://files.pythonhosted.org/packages/e2/c8/7046d0409a90e31263d5bbaa708347d522ac584a1140c01a951d9deb1792/ipython-7.28.0.tar.gz"
sha256 "2097be5c814d1b974aea57673176a924c4c8c9583890e7a5f082f547b9975b11"
end
resource "ipython_genutils" do
url "https://files.pythonhosted.org/packages/e8/69/fbeffffc05236398ebfcfb512b6d2511c622871dca1746361006da310399/ipython_genutils-0.2.0.tar.gz"
sha256 "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"
end
resource "jedi" do
url "https://files.pythonhosted.org/packages/ac/11/5c542bf206efbae974294a61febc61e09d74cb5d90d8488793909db92537/jedi-0.18.0.tar.gz"
sha256 "92550a404bad8afed881a137ec9a461fed49eca661414be45059329614ed0707"
end
resource "Jinja2" do
url "https://files.pythonhosted.org/packages/39/11/8076571afd97303dfeb6e466f27187ca4970918d4b36d5326725514d3ed3/Jinja2-3.0.1.tar.gz"
sha256 "703f484b47a6af502e743c9122595cc812b0271f661722403114f71a79d0f5a4"
end
resource "json5" do
url "https://files.pythonhosted.org/packages/20/8c/66cde351ffff609a0bd7176e42f698781128bbcb3f28e00a6a857aa7af34/json5-0.9.6.tar.gz"
sha256 "9175ad1bc248e22bb8d95a8e8d765958bf0008fef2fe8abab5bc04e0f1ac8302"
end
resource "jsonschema" do
url "https://files.pythonhosted.org/packages/9c/99/9789c7fd0bb8876a7d624d903195ce11e5618b421bdb1bf7c975d17a9bc3/jsonschema-4.0.0.tar.gz"
sha256 "bc51325b929171791c42ebc1c70b9713eb134d3bb8ebd5474c8b659b15be6d86"
end
resource "jupyter-client" do
url "https://files.pythonhosted.org/packages/d1/fa/e5e8b9c7cd3d2338431d92762d238383be8d5a80ca7834671ccd78e42b8a/jupyter_client-7.0.5.tar.gz"
sha256 "382aca66dcaf96d7eaaa6c546d57cdf8b3b1cf5bc1f2704c58a1d8d244f1163d"
end
resource "jupyter-core" do
url "https://files.pythonhosted.org/packages/bb/dc/bb0e8b5093582699271df99cad202390e5cfcdb6bc5e772ca2fa8f61ade6/jupyter_core-4.8.1.tar.gz"
sha256 "ef210dcb4fca04de07f2ead4adf408776aca94d17151d6f750ad6ded0b91ea16"
end
resource "jupyter-server" do
url "https://files.pythonhosted.org/packages/ed/0e/613b6e407dc3cdf82d14824915057bb176fa968e20d7e35c2e95f96d5842/jupyter_server-1.11.0.tar.gz"
sha256 "8ab4f484a4a2698f757cff0769d27b5d991e0232a666d54f4d6ada4e6a61330b"
end
resource "jupyterlab-pygments" do
url "https://files.pythonhosted.org/packages/d1/79/3677d138eeacbba7cf6d0e51e6b8c094448329f7b8a523a5d2599bc898e7/jupyterlab_pygments-0.1.2.tar.gz"
sha256 "cfcda0873626150932f438eccf0f8bf22bfa92345b814890ab360d666b254146"
end
resource "jupyterlab-server" do
url "https://files.pythonhosted.org/packages/79/41/552120becdd267b505f6aafc522c0d90bb051d780cd1b1e7429286b01418/jupyterlab_server-2.8.2.tar.gz"
sha256 "26d813c8162c83d466df7d155865987dabe70aa452f9187dfb79fd88afc8fa0b"
end
resource "MarkupSafe" do
url "https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz"
sha256 "594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"
end
resource "matplotlib-inline" do
url "https://files.pythonhosted.org/packages/0f/98/838f4c57f7b2679eec038ad0abefd1acaeec35e635d4d7af215acd7d1bd2/matplotlib-inline-0.1.3.tar.gz"
sha256 "a04bfba22e0d1395479f866853ec1ee28eea1485c1d69a6faf00dc3e24ff34ee"
end
resource "mistune" do
url "https://files.pythonhosted.org/packages/2d/a4/509f6e7783ddd35482feda27bc7f72e65b5e7dc910eca4ab2164daf9c577/mistune-0.8.4.tar.gz"
sha256 "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e"
end
resource "nbclassic" do
url "https://files.pythonhosted.org/packages/97/89/1389edffd9dc896fc709207b308973a1dc37a6580e356951ea14249e938f/nbclassic-0.3.2.tar.gz"
sha256 "863462bf6a6e0e5e502dcc479ce2ea1edf60437c969f1850d0c0823dba0c39b7"
end
resource "nbclient" do
url "https://files.pythonhosted.org/packages/fc/be/c61d973ff6a53bfd961e81bfccf38d0bb7612546c247afeb27985430c593/nbclient-0.5.4.tar.gz"
sha256 "6c8ad36a28edad4562580847f9f1636fe5316a51a323ed85a24a4ad37d4aefce"
end
resource "nbconvert" do
url "https://files.pythonhosted.org/packages/44/d0/10e2ac291002ae48491f674eb31cf8fc3b247a742d5426a51ff794ba32ca/nbconvert-6.2.0.tar.gz"
sha256 "16ceecd0afaa8fd26c245fa32e2c52066c02f13aa73387fffafd84750baea863"
end
resource "nbformat" do
url "https://files.pythonhosted.org/packages/e5/bd/847367dcc514b198936a3de8bfaeda1935e67ce369bf0b3e7f3ed4616ae8/nbformat-5.1.3.tar.gz"
sha256 "b516788ad70771c6250977c1374fcca6edebe6126fd2adb5a69aa5c2356fd1c8"
end
resource "nest-asyncio" do
url "https://files.pythonhosted.org/packages/ad/82/2fdf6a92eed4ddf5e9d9a735d019af1ef3a56f084d9549972b2527a43a48/nest_asyncio-1.5.1.tar.gz"
sha256 "afc5a1c515210a23c461932765691ad39e8eba6551c055ac8d5546e69250d0aa"
end
resource "notebook" do
url "https://files.pythonhosted.org/packages/6c/f9/3d3756a76beb56e5b4e3a892383024fb5c157688efb8241af69786a20d8e/notebook-6.4.4.tar.gz"
sha256 "26b0095c568e307a310fd78818ad8ebade4f00462dada4c0e34cbad632b9085d"
end
resource "packaging" do
url "https://files.pythonhosted.org/packages/df/86/aef78bab3afd461faecf9955a6501c4999933a48394e90f03cd512aad844/packaging-21.0.tar.gz"
sha256 "7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"
end
resource "pandocfilters" do
url "https://files.pythonhosted.org/packages/62/42/c32476b110a2d25277be875b82b5669f2cdda7897c165bd22b78f366b3cb/pandocfilters-1.5.0.tar.gz"
sha256 "0b679503337d233b4339a817bfc8c50064e2eff681314376a47cb582305a7a38"
end
resource "parso" do
url "https://files.pythonhosted.org/packages/5e/61/d119e2683138a934550e47fc8ec023eb7f11b194883e9085dca3af5d4951/parso-0.8.2.tar.gz"
sha256 "12b83492c6239ce32ff5eed6d3639d6a536170723c6f3f1506869f1ace413398"
end
resource "pexpect" do
url "https://files.pythonhosted.org/packages/e5/9b/ff402e0e930e70467a7178abb7c128709a30dfb22d8777c043e501bc1b10/pexpect-4.8.0.tar.gz"
sha256 "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"
end
resource "pickleshare" do
url "https://files.pythonhosted.org/packages/d8/b6/df3c1c9b616e9c0edbc4fbab6ddd09df9535849c64ba51fcb6531c32d4d8/pickleshare-0.7.5.tar.gz"
sha256 "87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca"
end
resource "prometheus-client" do
url "https://files.pythonhosted.org/packages/a1/90/7f1a14c2d0638e1a6981612171881733ef015cbabbded709ac3ab3d2920a/prometheus_client-0.11.0.tar.gz"
sha256 "3a8baade6cb80bcfe43297e33e7623f3118d660d41387593758e2fb1ea173a86"
end
resource "prompt-toolkit" do
url "https://files.pythonhosted.org/packages/b4/56/9ab5868f34ab2657fba7e2192f41316252ab04edbbeb2a8583759960a1a7/prompt_toolkit-3.0.20.tar.gz"
sha256 "eb71d5a6b72ce6db177af4a7d4d7085b99756bf656d98ffcc4fecd36850eea6c"
end
resource "ptyprocess" do
url "https://files.pythonhosted.org/packages/20/e5/16ff212c1e452235a90aeb09066144d0c5a6a8c0834397e03f5224495c4e/ptyprocess-0.7.0.tar.gz"
sha256 "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "pydevd" do
url "https://files.pythonhosted.org/packages/da/dc/63e24b9bf8a8ae0bae39e5eb8198d7add1b7e699be7919831e0931016db1/pydevd-2.5.0.tar.gz"
sha256 "eb09d4e6667d63fcbfc777827e5d2cf702a314f8ff7d060d2d1e7d9e7e604dcf"
end
resource "Pygments" do
url "https://files.pythonhosted.org/packages/b7/b3/5cba26637fe43500d4568d0ee7b7362de1fb29c0e158d50b4b69e9a40422/Pygments-2.10.0.tar.gz"
sha256 "f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
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 "pytz" do
url "https://files.pythonhosted.org/packages/b0/61/eddc6eb2c682ea6fd97a7e1018a6294be80dba08fa28e7a3570148b4612d/pytz-2021.1.tar.gz"
sha256 "83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da"
end
resource "pyzmq" do
url "https://files.pythonhosted.org/packages/6c/95/d37e7db364d7f569e71068882b1848800f221c58026670e93a4c6d50efe7/pyzmq-22.3.0.tar.gz"
sha256 "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
end
resource "requests-unixsocket" do
url "https://files.pythonhosted.org/packages/4d/ce/78b651fe0adbd4227578fa432d1bde03b4f4945a70c81e252a2b6a2d895f/requests-unixsocket-0.2.0.tar.gz"
sha256 "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea"
end
resource "Send2Trash" do
url "https://files.pythonhosted.org/packages/49/2c/d990b8d5a7378dde856f5a82e36ed9d6061b5f2d00f39dc4317acd9538b4/Send2Trash-1.8.0.tar.gz"
sha256 "d2c24762fd3759860a0aff155e45871447ea58d2be6bdd39b5c8f966a0c99c2d"
end
resource "sniffio" do
url "https://files.pythonhosted.org/packages/a6/ae/44ed7978bcb1f6337a3e2bef19c941de750d73243fc9389140d62853b686/sniffio-1.2.0.tar.gz"
sha256 "c4666eecec1d3f50960c6bdf61ab7bc350648da6c126e3cf6898d8cd4ddcd3de"
end
resource "terminado" do
url "https://files.pythonhosted.org/packages/7a/82/97a3b275b44b031eba1e27e136993464e670821aa4616a9dfaba0c2b4e8f/terminado-0.12.1.tar.gz"
sha256 "b20fd93cc57c1678c799799d117874367cc07a3d2d55be95205b1a88fa08393f"
end
resource "testpath" do
url "https://files.pythonhosted.org/packages/dd/bf/245f32010f761aaeff132278e91e0d0ae1c360d6f3708a11790fdc1410d2/testpath-0.5.0.tar.gz"
sha256 "1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417"
end
resource "tornado" do
url "https://files.pythonhosted.org/packages/cf/44/cc9590db23758ee7906d40cacff06c02a21c2a6166602e095a56cbf2f6f6/tornado-6.1.tar.gz"
sha256 "33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791"
end
resource "traitlets" do
url "https://files.pythonhosted.org/packages/d5/bc/37d490908e7ac949614d62767db3c86f37bc5adb6129d378c35859a75b87/traitlets-5.1.0.tar.gz"
sha256 "bd382d7ea181fbbcce157c133db9a829ce06edffe097bcf3ab945b435452b46d"
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/89/38/459b727c381504f361832b9e5ace19966de1a235d73cdbdea91c771a1155/wcwidth-0.2.5.tar.gz"
sha256 "c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
end
resource "webencodings" do
url "https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-0.5.1.tar.gz"
sha256 "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
end
resource "websocket-client" do
url "https://files.pythonhosted.org/packages/4e/8f/b5c45af5a1def38b07c09a616be932ad49c35ebdc5e3cbf93966d7ed9750/websocket-client-1.2.1.tar.gz"
sha256 "8dfb715d8a992f5712fff8c843adae94e22b22a99b2c5e6b0ec4a1a981cc4e0d"
end
def install
venv = virtualenv_create(libexec, Formula["python@3.9"].opt_bin/"python3")
ENV["JUPYTER_PATH"] = etc/"jupyter"
# gather packages to link based on options
linked = %w[jupyter-core jupyter-client nbformat ipykernel jupyter-console nbconvert notebook]
dependencies = resources.map(&:name).to_set - linked
dependencies -= ["appnope"] if OS.linux?
dependencies.each do |r|
venv.pip_install resource(r)
end
venv.pip_install_and_link linked
venv.pip_install_and_link buildpath
# remove bundled kernel
rm_rf Dir["#{libexec}/share/jupyter/kernels"]
# install completion
resource("jupyter-core").stage do
bash_completion.install "examples/jupyter-completion.bash" => "jupyter"
zsh_completion.install "examples/completions-zsh" => "_jupyter"
end
pydevd_vendor_dir = libexec/Language::Python.site_packages("python3")/"debugpy/_vendored/pydevd"
pydevd_vendor_dir.rmtree # remove pre-built binaries
end
def caveats
<<~EOS
Additional kernels can be installed into the shared jupyter directory
#{etc}/jupyter
EOS
end
test do
system bin/"jupyter-console --help"
assert_match "python3", shell_output("#{bin}/jupyter kernelspec list")
(testpath/"console.exp").write <<~EOS
spawn #{bin}/jupyter-console
expect "In "
send "exit\r"
EOS
assert_match "Jupyter console", shell_output("expect -f console.exp")
(testpath/"notebook.exp").write <<~EOS
spawn #{bin}/jupyter-notebook --no-browser
expect "NotebookApp"
EOS
assert_match "NotebookApp", shell_output("expect -f notebook.exp")
(testpath/"nbconvert.ipynb").write <<~EOS
{
"cells": []
}
EOS
system bin/"jupyter-nbconvert", "nbconvert.ipynb", "--to", "html"
assert_predicate testpath/"nbconvert.html", :exist?, "Failed to export HTML"
assert_match "-F _jupyter",
shell_output("bash -c \"source #{bash_completion}/jupyter && complete -p jupyter\"")
# Ensure that jupyter can load the jupyter lab package.
assert_match(/^jupyterlab *: #{version}$/,
shell_output(bin/"jupyter --version"))
# Ensure that jupyter-lab binary was installed by pip.
assert_equal version.to_s,
shell_output(bin/"jupyter-lab --version").strip
port = free_port
fork { exec "#{bin}/jupyter-lab", "-y", "--port=#{port}", "--no-browser", "--ip=127.0.0.1", "--LabApp.token=''" }
sleep 10
assert_match "<title>JupyterLab</title>",
shell_output("curl --silent --fail http://localhost:#{port}/lab")
end
end
|
0x07CB/linuxbrew-core
|
Formula/bats-core.rb
|
<gh_stars>100-1000
class BatsCore < Formula
desc "Bash Automated Testing System"
homepage "https://github.com/bats-core/bats-core"
url "https://github.com/bats-core/bats-core/archive/v1.4.1.tar.gz"
sha256 "bff517da043ae24440ec8272039f396c2a7907076ac67693c0f18d4a17c08f7d"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "483259b5fb07dab08336816777a08467303bf3da7828f2ff75a7d08ccf9cfc73" # linuxbrew-core
end
depends_on "coreutils"
uses_from_macos "bc" => :test
conflicts_with "bats", because: "both install `bats` executables"
def install
system "./install.sh", prefix
# Replace `/usr/local` references for uniform bottles
inreplace lib/"bats-core/formatter.bash", "/usr/local", HOMEBREW_PREFIX
end
test do
(testpath/"test.sh").write <<~EOS
@test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
}
EOS
assert_match "addition", shell_output("#{bin}/bats test.sh")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libgnt.rb
|
class Libgnt < Formula
desc "NCurses toolkit for creating text-mode graphical user interfaces"
homepage "https://keep.imfreedom.org/libgnt/libgnt"
url "https://downloads.sourceforge.net/project/pidgin/libgnt/2.14.3/libgnt-2.14.3.tar.xz"
sha256 "57f5457f72999d0bb1a139a37f2746ec1b5a02c094f2710a339d8bcea4236123"
license "GPL-2.0-or-later"
livecheck do
url "https://sourceforge.net/projects/pidgin/files/libgnt/"
regex(%r{href=.*?/v?(\d+(?:\.\d+)+)/?["' >]}i)
strategy :page_match
end
bottle do
sha256 cellar: :any, arm64_big_sur: "a4c4c927df6b0fb2dd4bc6dbf742085eb171c146a448f218448f53e1a21d5015"
sha256 cellar: :any, big_sur: "97d22f2f66bfc361cc88dd7ef38a912c11db9bf77346f20645bec433a3444f38"
sha256 cellar: :any, catalina: "ac0543b64dfccaed26f40fd585b9546dede02550afa4063fb76b8f970a2379d8"
sha256 cellar: :any, mojave: "b558ad3400f33a9559ace90c2d53e7e578ca674cbae105b2ec620ab277da21cf"
sha256 x86_64_linux: "ebff16ba92fadae787c491dae1094706039b2c73a44a1fcacbc2371b031ee647" # linuxbrew-core
end
depends_on "gtk-doc" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "glib"
uses_from_macos "libxml2"
uses_from_macos "ncurses"
def install
ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
# Work around for ERROR: Problem encountered: ncurses could not be found!
# Issue is build only checks for ncursesw headers under system prefix /usr
# Upstream issue: https://issues.imfreedom.org/issue/LIBGNT-15
if OS.linux?
inreplace "meson.build", "ncurses_sys_prefix = '/usr'",
"ncurses_sys_prefix = '#{Formula["ncurses"].opt_prefix}'"
end
mkdir "build" do
system "meson", *std_meson_args, "-Dpython2=false", ".."
system "ninja", "-v"
system "ninja", "install", "-v"
end
end
test do
(testpath/"test.c").write <<~EOS
#include <gnt/gnt.h>
int main() {
gnt_init();
gnt_quit();
return 0;
}
EOS
flags = [
"-I#{Formula["glib"].opt_include}/glib-2.0",
"-I#{Formula["glib"].opt_lib}/glib-2.0/include",
"-I#{include}",
"-L#{lib}",
"-L#{Formula["glib"].opt_lib}",
"-lgnt",
"-lglib-2.0",
]
system ENV.cc, "test.c", *flags, "-o", "test"
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/tile38.rb
|
<gh_stars>100-1000
class Tile38 < Formula
desc "In-memory geolocation data store, spatial index, and realtime geofence"
homepage "https://tile38.com/"
url "https://github.com/tidwall/tile38.git",
tag: "1.26.1",
revision: "72b3683f27dac650aa38174c7fa3cda7c211d677"
license "MIT"
head "https://github.com/tidwall/tile38.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c41a9f79bbb5e0ed8eac4a23e1669380595218c28992783cc80e19f33a245610"
sha256 cellar: :any_skip_relocation, big_sur: "efcb79971e76639e09fcabf2c2188c3653f5bf9cde4572e0d9c77d8b87697161"
sha256 cellar: :any_skip_relocation, catalina: "6c622e5d2cd6f0d9457ecebfcde4c4a254a7525338e579b66af2b2eb3c7894d9"
sha256 cellar: :any_skip_relocation, mojave: "2397ac31817cb6ee8aee1ca2edb6aa1c8667a44de559482ab03989008f37e6cc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "eb3bc55ca42bfcc0e10cecb803254a1ad708b97c85d56f52b3c4f742b063685c" # linuxbrew-core
end
depends_on "go" => :build
def datadir
var/"tile38/data"
end
def install
ldflags = %W[
-s -w
-X github.com/tidwall/tile38/core.Version=#{version}
-X github.com/tidwall/tile38/core.GitSHA=#{Utils.git_short_head}
].join(" ")
system "go", "build", *std_go_args(ldflags: ldflags), "-o", bin/"tile38-server", "./cmd/tile38-server"
system "go", "build", *std_go_args(ldflags: ldflags), "-o", bin/"tile38-cli", "./cmd/tile38-cli"
end
def post_install
# Make sure the data directory exists
datadir.mkpath
end
def caveats
<<~EOS
To connect: tile38-cli
EOS
end
service do
run [opt_bin/"tile38-server", "-d", var/"tile38/data"]
keep_alive true
working_dir var
log_path var/"log/tile38.log"
error_log_path var/"log/tile38.log"
end
test do
port = free_port
pid = fork do
exec "#{bin}/tile38-server", "-q", "-p", port.to_s
end
sleep 2
# remove `$408` in the first line output
json_output = shell_output("#{bin}/tile38-cli -p #{port} server")
tile38_server = JSON.parse(json_output)
assert_equal tile38_server["ok"], true
assert_predicate testpath/"data", :exist?
ensure
Process.kill("HUP", pid)
end
end
|
0x07CB/linuxbrew-core
|
Formula/connect.rb
|
class Connect < Formula
desc "Provides SOCKS and HTTPS proxy support to SSH"
homepage "https://github.com/gotoh/ssh-connect"
url "https://github.com/gotoh/ssh-connect/archive/1.105.tar.gz"
sha256 "96c50fefe7ecf015cf64ba6cec9e421ffd3b18fef809f59961ef9229df528f3e"
license "GPL-2.0-or-later"
head "https://github.com/gotoh/ssh-connect.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "33e6c06bbe902eea4790679f99c9aef340cce1e647238a13c151300afa46ee1a"
sha256 cellar: :any_skip_relocation, big_sur: "90d0c91146180552a3a023ceba3850804139eb30b146151efe9c6d889ab9c99d"
sha256 cellar: :any_skip_relocation, catalina: "a08dfce847d75746d2b31ed3561e961fdcf950b051c5860e6d137ff5e1bcd1c7"
sha256 cellar: :any_skip_relocation, mojave: "cc0a39f7e2fea7672f6d691d2e1221d0c5963a9f7e0039317930418fc7c7ebfa"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8647d72957ce8cfffbfe2e530b0f873a3a2881b10dc969d47162b079b0111a0e" # linuxbrew-core
end
def install
system "make"
bin.install "connect"
end
test do
system bin/"connect"
end
end
|
0x07CB/linuxbrew-core
|
Formula/rack.rb
|
class Rack < Formula
desc "CLI for Rackspace"
homepage "https://github.com/rackspace/rack"
url "https://github.com/rackspace/rack.git",
tag: "1.2",
revision: "09c14b061f4a115c8f1ff07ae6be96d9b11e08df"
license "Apache-2.0"
head "https://github.com/rackspace/rack.git", branch: "master"
bottle do
rebuild 2
sha256 cellar: :any_skip_relocation, arm64_big_sur: "3da24ffbc52e301b97902eee71ecddbbb16c6df508a9241a4a9ed2dc7eed0652"
sha256 cellar: :any_skip_relocation, big_sur: "8f5f2eac4a06a9295875d213a31505f9b8e66e96b16814176582e3fd5a0a223e"
sha256 cellar: :any_skip_relocation, catalina: "8cf224e3f734308bef6c0ef3cd9aa3a63aa4fdedd9ee626e2ee91099affc83c2"
sha256 cellar: :any_skip_relocation, mojave: "a50004c910fc4cbb34404fabf20bfcab87dcf6d7ce510a96c72fecbdc8d458cc"
sha256 cellar: :any_skip_relocation, high_sierra: "5e33e2bc51e9cf346ed59eabbef5849a170619be2a7b034b19d71a1a25a72fcb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "829790fe6b622cfd781b946b47bddeca50c69c34b96a939576dee780711cf4c3" # linuxbrew-core
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["TRAVIS_TAG"] = version
ENV["GO111MODULE"] = "auto"
rackpath = buildpath/"src/github.com/rackspace/rack"
rackpath.install Dir["{*,.??*}"]
cd rackpath do
# This is a slightly grim hack to handle the weird logic around
# deciding whether to add a = or not on the ldflags, as mandated
# by Go 1.7+.
# https://github.com/rackspace/rack/issues/446
inreplace "script/build", "go1.5", Utils.safe_popen_read("go", "version")[/go1\.\d/]
ln_s "internal", "vendor"
system "script/build", "rack"
bin.install "rack"
prefix.install_metafiles
end
end
test do
system "#{bin}/rack"
end
end
|
0x07CB/linuxbrew-core
|
Formula/spirv-llvm-translator.rb
|
class SpirvLlvmTranslator < Formula
desc "Tool and a library for bi-directional translation between SPIR-V and LLVM IR"
homepage "https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
url "https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v12.0.0.tar.gz"
sha256 "6e4fad04203f25fcde4c308c53e9f59bd05a390978992db3212d4b63aff62108"
license "Apache-2.0" => { with: "LLVM-exception" }
revision 1
bottle do
sha256 cellar: :any, arm64_big_sur: "9bb7cd5741a9992091c5ff737d20c0de83671427be30d7e063fd7b92b7667f8f"
sha256 cellar: :any, big_sur: "2001d96783379a0701d03728fcf007ce3870e37e8faac26e2f869ed8156835d0"
sha256 cellar: :any, catalina: "33674cba9e6be10165706e14f252f0d9507d04c6db9c437364cf02c308cef4b8"
sha256 cellar: :any, mojave: "efde7cdac01766aa3bf141af421b6dc120509eb16372d9c54ed3cf14a2595431"
end
depends_on "cmake" => :build
depends_on "llvm@12"
on_linux do
depends_on "gcc"
end
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480
fails_with gcc: "5"
def llvm
deps.map(&:to_formula).find { |f| f.name.match? "^llvm" }
end
def install
system "cmake", "-S", ".", "-B", "build", "-DLLVM_BUILD_TOOLS=ON", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
(testpath/"test.ll").write <<~EOS
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir64-unknown-unknown"
define spir_kernel void @foo() {
ret void
}
EOS
system llvm.opt_bin/"llvm-as", "test.ll"
system bin/"llvm-spirv", "test.bc"
assert_predicate testpath/"test.spv", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/gradle-profiler.rb
|
class GradleProfiler < Formula
desc "Profiling and benchmarking tool for Gradle builds"
homepage "https://github.com/gradle/gradle-profiler/"
url "https://repo.gradle.org/gradle/ext-releases-local/org/gradle/profiler/gradle-profiler/0.16.0/gradle-profiler-0.16.0.zip"
sha256 "f376581ed7b788d9d3d640a2ddde88747ce2e8a0e297991a77b98e6b7a257fbb"
license "Apache-2.0"
revision 1
livecheck do
url "https://repo.gradle.org/ui/api/v1/download?repoKey=ext-releases-local&path=org%252Fgradle%252Fprofiler%252Fgradle-profiler%252Fmaven-metadata.xml"
regex(%r{<version>\s*v?(\d+(?:\.\d+)+)\s*</version>}i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "fde9b86d78fee57a3edbeb3ee226c7b941e6c630013b204873b0b8287f94d4e7" # linuxbrew-core
end
# gradle currently does not support Java 17 (ARM)
# gradle@6 is still default gradle-version, but does not support Java 16
# Switch to `openjdk` once above situations are no longer true
depends_on "openjdk@11"
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin lib]
env = Language::Java.overridable_java_home_env("11")
(bin/"gradle-profiler").write_env_script libexec/"bin/gradle-profiler", env
end
test do
(testpath/"settings.gradle").write ""
(testpath/"build.gradle").write 'println "Hello"'
output = shell_output("#{bin}/gradle-profiler --gradle-version 7.0 --profile chrome-trace")
assert_includes output, "* Results written to"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libmikmod.rb
|
class Libmikmod < Formula
desc "Portable sound library"
homepage "https://mikmod.sourceforge.io/"
url "https://downloads.sourceforge.net/project/mikmod/libmikmod/3.3.11.1/libmikmod-3.3.11.1.tar.gz"
sha256 "ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19"
livecheck do
url :stable
regex(%r{url=.*?/libmikmod[._-](\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "59bf02931bcc7553745595b3859277cbb471ef5cf6f644a9251ddde4fc8a9513"
sha256 cellar: :any, big_sur: "7f99f24d853fa01e073fe73cecabf1a8ec8f871f354e21da5b5003bc2de85ad2"
sha256 cellar: :any, catalina: "2151c9e70ca92a911af8cf769c18541c5d107df349b44987f716909c67216c59"
sha256 cellar: :any, mojave: "c69fe0dbab9fb93187e1388d4e388c00c73930dfb3bdd668a0a60228cd8d681b"
sha256 cellar: :any, high_sierra: "062f1a9e2c4d5ebc6cfb08e70abbdf4ebd85b06519345ed8bde301e62d0cd860"
sha256 cellar: :any, sierra: "f7785b9a4f95ff28d55ffd022780ed1cd9bde139b3482cc4f52b862cd9abf247"
sha256 cellar: :any, el_capitan: "202b59906b8113d694f9c1e81df7a5f00f8afbc9e66a2b1188674058a64ae206"
sha256 cellar: :any, yosemite: "8276808d976d108dd2768cacb5b54bf570ef6662b8855e7d3537e0ffaaeb1a19"
sha256 cellar: :any, x86_64_linux: "be7aefb9f7630a6626b95611782862c529bac8df955e8a4d16ef9bf25b2c2928" # linuxbrew-core
end
def install
mkdir "macbuild" do
# macOS has CoreAudio, but ALSA, SAM9407 and ULTRA are not supported
system "../configure", "--prefix=#{prefix}", "--disable-alsa",
"--disable-sam9407", "--disable-ultra"
system "make", "install"
end
end
test do
system "#{bin}/libmikmod-config", "--version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/stlink.rb
|
<reponame>0x07CB/linuxbrew-core
class Stlink < Formula
desc "STM32 discovery line Linux programmer"
homepage "https://github.com/texane/stlink"
url "https://github.com/texane/stlink/archive/v1.7.0.tar.gz"
sha256 "57ec1214905aedf59bee7f70ddff02316f64fa9ba5a9b6a3a64952edc5b65855"
license "BSD-3-Clause"
head "https://github.com/texane/stlink.git", branch: "develop"
bottle do
sha256 cellar: :any, arm64_big_sur: "79683924dac821a1744cf32a96c3296eecd1668b5f2f64dbdcf570f32480459f"
sha256 cellar: :any, big_sur: "9ea7be4ae1c0b91ceeb40c6df9d07ad6a5660be80043895bcf29acc47988d10d"
sha256 cellar: :any, catalina: "e162fb37d4a7e2a0e006c5cb9beae3b86784d6a0b3d371fc33d7ed9ba2140083"
sha256 cellar: :any, mojave: "f112f45203b8c460da03ae840529d4564a677d0621ac0a9576bac510258a9ef5"
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "libusb"
def install
args = std_cmake_args
if OS.linux?
args << "-DSTLINK_MODPROBED_DIR=#{lib}/modprobe.d"
args << "-DSTLINK_UDEV_RULES_DIR=#{lib}/udev/rules.d"
end
system "cmake", ".", *args
system "make", "install"
end
test do
assert_match "st-flash #{version}", shell_output("#{bin}/st-flash --debug reset 2>&1", 255)
end
end
|
0x07CB/linuxbrew-core
|
Formula/naturaldocs.rb
|
class Naturaldocs < Formula
desc "Extensible, multi-language documentation generator"
homepage "https://www.naturaldocs.org/"
url "https://downloads.sourceforge.net/project/naturaldocs/Stable%20Releases/2.1.1/Natural_Docs_2.1.1.zip"
mirror "https://naturaldocs.org/download/natural_docs/2.1.1/Natural_Docs_2.1.1.zip"
sha256 "00ebfee968c4b88ebd213d1e48be37686d717d938dfa6c739c23b769bdf03c1f"
license "AGPL-3.0-only"
livecheck do
url :stable
regex(%r{url=.*?/Natural.?Docs[._-]v?(\d+(?:\.\d+)+)\.(?:t|zip)}i)
end
depends_on arch: :x86_64 # mono does not have ARM support yet
depends_on "mono"
def install
libexec.install Dir["*"]
(bin/"naturaldocs").write <<~EOS
#!/bin/bash
mono #{libexec}/NaturalDocs.exe "$@"
EOS
libexec.install_symlink etc/"naturaldocs" => "config"
end
test do
system "#{bin}/naturaldocs", "-h"
end
end
|
0x07CB/linuxbrew-core
|
Formula/genact.rb
|
<gh_stars>100-1000
class Genact < Formula
desc "Nonsense activity generator"
homepage "https://github.com/svenstaro/genact"
url "https://github.com/svenstaro/genact/archive/v0.11.0.tar.gz"
sha256 "6ec8c1e717f78968c825513ae86dfc7cf5d71798b94b97d012cb185a4ca5a0a2"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "48325385454894eddd9bf33bad8a370ca36a1ea126bc8981307c9f1d735782bf"
sha256 cellar: :any_skip_relocation, big_sur: "faa9f1370b20ac2d6e92eaa5be5bf376f7ef8ba85dac841f735ccf491f9c4b4f"
sha256 cellar: :any_skip_relocation, catalina: "4d94d3fd54d7821be5684690520cfacb13f8d9d3741edd927b0f8b9829e1d63f"
sha256 cellar: :any_skip_relocation, mojave: "fb724747b034a14552cc66c88126ed22a6f4c001c9d63b3a437fdb8a4c2ad86e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f6a3fbe546724e9a565de2ef2c6b615ba3e2cd8e35751e2226c5365b4a847bad" # linuxbrew-core
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_match "Available modules:", shell_output("#{bin}/genact --list-modules")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libcoap.rb
|
<filename>Formula/libcoap.rb
class Libcoap < Formula
desc "Lightweight application-protocol for resource-constrained devices"
homepage "https://github.com/obgm/libcoap"
url "https://github.com/obgm/libcoap/archive/v4.3.0.tar.gz"
sha256 "1a195adacd6188d3b71c476e7b21706fef7f3663ab1fb138652e8da49a9ec556"
license "BSD-2-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "57300cff98f6ad59e6c4cf95de26bf0a4dbcf0fb64d2d911d6bdddadf63da1dc"
sha256 cellar: :any, big_sur: "f82b84bbe8f8db3b33810627b2a6d68462fc93a82daa6385a79afe7738534ae5"
sha256 cellar: :any, catalina: "4e2fa796da56bec1271a091dc6262b812ece25b989c62be4e4d4d08943dfbe7d"
sha256 cellar: :any, mojave: "09ad4d7b446860842318c4f21a4ee112e1dda916a36f9023811d7abb7bd66001"
sha256 cellar: :any_skip_relocation, x86_64_linux: "46a37f7b8518d442a2d1781a0d794d8725e9417d8009daff0fe0771282c3fc4d" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "doxygen" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "openssl@1.1"
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--disable-examples",
"--disable-manpages"
system "make"
system "make", "install"
end
test do
%w[coap-client coap-server].each do |src|
system ENV.cc, pkgshare/"examples/#{src}.c",
"-I#{Formula["openssl@1.1"].opt_include}", "-I#{include}",
"-L#{Formula["openssl@1.1"].opt_lib}", "-L#{lib}",
"-lcrypto", "-lssl", "-lcoap-3-openssl", "-o", src
end
port = free_port
fork do
exec testpath/"coap-server", "-p", port.to_s
end
sleep 1
output = shell_output(testpath/"coap-client -B 5 -m get coap://localhost:#{port}")
assert_match "This is a test server made with libcoap", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/lci.rb
|
<filename>Formula/lci.rb
class Lci < Formula
desc "Interpreter for the lambda calculus"
homepage "https://www.chatzi.org/lci/"
url "https://github.com/chatziko/lci/releases/download/v1.0/lci-1.0.tar.gz"
sha256 "1bcf40d738ce2af7ca5116f02dfb0f4ed21d7e467e3618e071c8199a1285331e"
license "GPL-2.0-or-later"
bottle do
sha256 arm64_big_sur: "6540439b0f6ea5653aab7ac697f708bf3effa3135f2b8a8d2d98a08e137fab15"
sha256 big_sur: "f531babdee7254e6bcf5a04f44e388d7b398925d7b9529f0a6fba11e3dae4ced"
sha256 catalina: "a55400bf771e5c89f5357fc9847929c0bac34e0164ed306b6ea9f3be3a700ebc"
sha256 mojave: "a1c26ba18c1080a20edc4baf966c579aab841ca73d8f81760df7ca0b32830e71"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ca80c45e5eca084c3ec55f3d7a0d140f94ae8cf3e5277341875bbac99186ef0e" # linuxbrew-core
end
depends_on "cmake" => :build
conflicts_with "lolcode", because: "both install `lci` binaries"
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
test do
assert_match "[I, 2]", pipe_output("#{bin}/lci", "Append [1] [2]\n")
end
end
|
0x07CB/linuxbrew-core
|
Formula/latex2rtf.rb
|
class Latex2rtf < Formula
desc "Translate LaTeX to RTF"
homepage "https://latex2rtf.sourceforge.io/"
url "https://downloads.sourceforge.net/project/latex2rtf/latex2rtf-unix/2.3.18/latex2rtf-2.3.18a.tar.gz"
sha256 "338ba2e83360f41ded96a0ceb132db9beaaf15018b36101be2bae8bb239017d9"
license "GPL-2.0-or-later"
livecheck do
url :stable
regex(%r{url=.*?/latex2rtf/files/latex2rtf-unix/[^/]+/latex2rtf[._-](\d+(?:[.-]\d+)+[a-z]?)\.t}i)
end
bottle do
sha256 arm64_big_sur: "29b2cd9987d2362995534aed209cf84ff93cb307de474bbe2ff16c5e94bfc9cb"
sha256 big_sur: "fedf28c8cd7113f639a32776b9b55bbbae3ccfa7aa15e142d08004d39cf56d23"
sha256 catalina: "a4f536a8f9a6001fe955727e7d9473b5294daf416b422dab70b489067dad35f3"
sha256 mojave: "e57496652dd135bddb2d28f88d96e6207b69551f040ac4436cb6d043557e90c3"
sha256 x86_64_linux: "d9bd598cd48660cd56f8e8eedcb9ec926695250163d203dc851f989301c23670" # linuxbrew-core
end
def install
inreplace "Makefile", "cp -p doc/latex2rtf.html $(DESTDIR)$(SUPPORTDIR)",
"cp -p doc/web/* $(DESTDIR)$(SUPPORTDIR)"
system "make", "DESTDIR=",
"BINDIR=#{bin}",
"MANDIR=#{man1}",
"INFODIR=#{info}",
"SUPPORTDIR=#{pkgshare}",
"CFGDIR=#{pkgshare}/cfg",
"install"
end
test do
(testpath/"test.tex").write <<~EOS
\\documentclass{article}
\\title{LaTeX to RTF}
\\begin{document}
\\maketitle
\\end{document}
EOS
system bin/"latex2rtf", "test.tex"
assert_predicate testpath/"test.rtf", :exist?
assert_match "LaTeX to RTF", File.read(testpath/"test.rtf")
end
end
|
0x07CB/linuxbrew-core
|
Formula/vapoursynth.rb
|
<reponame>0x07CB/linuxbrew-core
class Vapoursynth < Formula
desc "Video processing framework with simplicity in mind"
homepage "https://www.vapoursynth.com"
url "https://github.com/vapoursynth/vapoursynth/archive/R57.tar.gz"
sha256 "9bed2ab1823050cfcbdbb1a57414e39507fd6c73f07ee4b5986fcbf0f6cb2d07"
license "LGPL-2.1-or-later"
head "https://github.com/vapoursynth/vapoursynth.git", branch: "master"
livecheck do
url :stable
regex(/^R(\d+(?:\.\d+)*?)$/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "5a1894344106815d7e56ea97f3c10261c6c5d9f381a1e22c8ba84b5449462c80"
sha256 cellar: :any, big_sur: "1048c34d749d82dcc5e8bee5ceb6d3301c1e707a2c3bfe792ffcf245d20efe0f"
sha256 cellar: :any, catalina: "2b83c33807217758941fd9d83226057e5a8e4baf71c75c01ae27917150cf14db"
sha256 cellar: :any, mojave: "780814b825bb7b83c68a6d9d5c2b3aca4e24b448e3be0cf17dfcd9623124f382"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8f95a015ee64ea7eb0c9219082e96e5a0ee7c2e0063a5ee9277aa11389bb1772" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "cython" => :build
depends_on "libtool" => :build
depends_on "nasm" => :build
depends_on "pkg-config" => :build
depends_on "python@3.9"
depends_on "zimg"
on_linux do
depends_on "gcc"
end
fails_with gcc: "5"
def install
system "./autogen.sh"
inreplace "Makefile.in", "pkglibdir = $(libdir)", "pkglibdir = $(exec_prefix)"
system "./configure", "--prefix=#{prefix}",
"--disable-silent-rules",
"--disable-dependency-tracking",
"--with-cython=#{Formula["cython"].bin}/cython",
"--with-plugindir=#{HOMEBREW_PREFIX}/lib/vapoursynth",
"--with-python_prefix=#{prefix}",
"--with-python_exec_prefix=#{prefix}"
system "make", "install"
end
def caveats
<<~EOS
This formula does not contain optional filters that require extra dependencies.
To use \x1B[3m\x1B[1mvapoursynth.core.sub\x1B[0m, execute:
brew install vapoursynth-sub
To use \x1B[3m\x1B[1mvapoursynth.core.ocr\x1B[0m, execute:
brew install vapoursynth-ocr
To use \x1B[3m\x1B[1mvapoursynth.core.imwri\x1B[0m, execute:
brew install vapoursynth-imwri
To use \x1B[3m\x1B[1mvapoursynth.core.ffms2\x1B[0m, execute the following:
brew install ffms2
ln -s "../libffms2.dylib" "#{HOMEBREW_PREFIX}/lib/vapoursynth/#{shared_library("libffms2")}"
For more information regarding plugins, please visit:
\x1B[4mhttp://www.vapoursynth.com/doc/plugins.html\x1B[0m
EOS
end
test do
system Formula["python@3.9"].opt_bin/"python3", "-c", "import vapoursynth"
system bin/"vspipe", "--version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/tal.rb
|
<filename>Formula/tal.rb<gh_stars>100-1000
class Tal < Formula
desc "Align line endings if they match"
# The canonical url currently returns HTTP/1.1 500 Internal Server Error.
homepage "https://web.archive.org/web/20160406172703/https://thomasjensen.com/software/tal/"
url "https://www.mirrorservice.org/sites/download.salixos.org/x86_64/extra-14.2/source/misc/tal/tal-1.9.tar.gz"
mirror "https://web.archive.org/web/20160406172703/https://thomasjensen.com/software/tal/tal-1.9.tar.gz"
sha256 "5d450cee7162c6939811bca945eb475e771efe5bd6a08b520661d91a6165bb4c"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7ca62e367e9b35b079d0419bc02c4baec570154a089337f4ffce87441e9ba7af"
sha256 cellar: :any_skip_relocation, big_sur: "ff2e907039f88888af6724c384e32b3191fd39097266bbdcf415faa3b9cc927f"
sha256 cellar: :any_skip_relocation, catalina: "1d2978734ee3f0c63efdd0acdff401014954c34ed709ed397348dc1f3f973b88"
sha256 cellar: :any_skip_relocation, mojave: "3e9ac201bb27300afd327dd1a24c093e602376c4a4e36af27f7d1047ffae9b5d"
sha256 cellar: :any_skip_relocation, high_sierra: "852023d9d33d893ca0852f36d795b044212e69911e2380cc4f0d22f99e22c1c2"
sha256 cellar: :any_skip_relocation, sierra: "9c2c4e5f9d6922f9a9d434485dea4ddf321744728c83adcda822c3c314f6a86e"
sha256 cellar: :any_skip_relocation, el_capitan: "bbdef6b2c92650352b7199cc2a9e3bc4698bf2a14fce46397eebcee72c1de419"
sha256 cellar: :any_skip_relocation, yosemite: "e6b6f315bc14f5e001893371d18fb0ba88bea4c4d76dd657820eecf509103f9e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "bed18e6050393e8b1ac1f29e6740d732dbd97db7c42631f661f88a28d0d05b16" # linuxbrew-core
end
def install
system "make", "linux"
bin.install "tal"
man1.install "tal.1"
end
test do
system "#{bin}/tal", "/etc/passwd"
end
end
|
0x07CB/linuxbrew-core
|
Formula/glfw.rb
|
class Glfw < Formula
desc "Multi-platform library for OpenGL applications"
homepage "https://www.glfw.org/"
url "https://github.com/glfw/glfw/archive/3.3.4.tar.gz"
sha256 "cc8ac1d024a0de5fd6f68c4133af77e1918261396319c24fd697775a6bc93b63"
license "Zlib"
head "https://github.com/glfw/glfw.git"
bottle do
sha256 cellar: :any, arm64_big_sur: "254fab48c4f812c65cc73a046a664b0a914ef745c832ab01c8706ee77de6a195"
sha256 cellar: :any, big_sur: "cc2a5ebed503daa988847659ce72bcbafd44387ecebb55fa422631edb731cade"
sha256 cellar: :any, catalina: "b6505ca02cb672280ce332952dd188b7ffd139b4b48b1afb33a1619143bfd126"
sha256 cellar: :any, mojave: "fb4c73abb6b230ffc2cacf187114584a1e589e67f399b78a56396911b2e1b483"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9c52f68f2db30fa7b0ccfe392369c2734889f4e113f70ed3922ecc691c51179a" # linuxbrew-core
end
depends_on "cmake" => :build
on_linux do
depends_on "freeglut"
depends_on "libxcursor"
depends_on "mesa"
end
def install
args = std_cmake_args + %w[
-DGLFW_USE_CHDIR=TRUE
-DGLFW_USE_MENUBAR=TRUE
-DBUILD_SHARED_LIBS=TRUE
]
system "cmake", *args, "."
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#include <stdlib.h>
int main()
{
if (!glfwInit())
exit(EXIT_FAILURE);
glfwTerminate();
return 0;
}
EOS
system ENV.cc, "test.c", "-o", "test",
"-I#{include}", "-L#{lib}", "-lglfw"
on_linux do
# glfw does not work in headless mode
return if ENV["HOMEBREW_GITHUB_ACTIONS"]
end
system "./test"
end
end
|
0x07CB/linuxbrew-core
|
Formula/pkg-config-wrapper.rb
|
class PkgConfigWrapper < Formula
desc "Easier way to include C code in your Go program"
homepage "https://github.com/influxdata/pkg-config"
url "https://github.com/influxdata/pkg-config/archive/v0.2.8.tar.gz"
sha256 "9d3f3bbcac7c787f6e8846e70172d06bd4d7394b4bcd0b8572fe2f1d03edc11b"
license "MIT"
head "https://github.com/influxdata/pkg-config.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "132d305934de84c9d98d82912312f0cbb7204dbf203277730fd1ef2238ee5621"
sha256 cellar: :any_skip_relocation, big_sur: "0c13ac5e30bafee95d4190ba733305bf481195299cc07d665bf25c7b34183f63"
sha256 cellar: :any_skip_relocation, catalina: "164299afc7de07a790856a3a6c3aa05a129584e1d60b9d40d0d429775f5b2fff"
sha256 cellar: :any_skip_relocation, mojave: "c6d86cb0821de7c39da2ee6f6b4ee30638f61d63a0a851bbd0b6ccc6ea811710"
sha256 cellar: :any_skip_relocation, x86_64_linux: "75ae3120b73555f3e4bce334a96484087dcfa448e2949ca1fa9bb0e317c22602" # linuxbrew-core
end
depends_on "go" => :build
depends_on "pkg-config"
def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end
test do
assert_match "Found pkg-config executable", shell_output(bin/"pkg-config-wrapper 2>&1", 1)
end
end
|
0x07CB/linuxbrew-core
|
Formula/ext4fuse.rb
|
class Ext4fuse < Formula
desc "Read-only implementation of ext4 for FUSE"
homepage "https://github.com/gerard/ext4fuse"
url "https://github.com/gerard/ext4fuse/archive/v0.1.3.tar.gz"
sha256 "550f1e152c4de7d4ea517ee1c708f57bfebb0856281c508511419db45aa3ca9f"
license "GPL-2.0"
head "https://github.com/gerard/ext4fuse.git"
bottle do
sha256 cellar: :any, catalina: "446dde5e84b058966ead0cde5e38e9411f465732527f6decfa1c0dcdbd4abbef"
sha256 cellar: :any, mojave: "88c4918bf5218f99295e539fe4499152edb3b60b6659e44ddd68b22359f512ae"
sha256 cellar: :any, high_sierra: "fc69c8993afd0ffc16a73c9c036ca8f83c77ac2a19b3237f76f9ccee8b30bbc9"
sha256 cellar: :any, sierra: "fe8bbe7cd5362f00ff06ef750926bf349d60563c20b0ecf212778631c8912ba2"
sha256 cellar: :any, el_capitan: "291047c821b7b205d85be853fb005510c6ab01bd4c2a2193c192299b6f049d35"
sha256 cellar: :any, yosemite: "b11f564b7e7c08af0b0a3e9854973d39809bf2d8a56014f4882772b2f7307ac1"
end
depends_on "pkg-config" => :build
on_macos do
disable! date: "2021-04-08", because: "requires closed-source macFUSE"
end
on_linux do
depends_on "libfuse@2"
end
def install
system "make"
bin.install "ext4fuse"
end
def caveats
on_macos do
<<~EOS
The reasons for disabling this formula can be found here:
https://github.com/Homebrew/homebrew-core/pull/64491
An external tap may provide a replacement formula. See:
https://docs.brew.sh/Interesting-Taps-and-Forks
EOS
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/mathlibtools.rb
|
class Mathlibtools < Formula
include Language::Python::Virtualenv
desc "Lean prover mathlib supporting tools"
homepage "https://pypi.org/project/mathlibtools"
url "https://files.pythonhosted.org/packages/9a/b7/7573048414f976707625d0bacbf00b7fba86f7fcf7b47e2166adbbafb679/mathlibtools-1.1.0.tar.gz"
sha256 "789f070f35424e89e4f2e2c007382250133cc48877627e37c5c463bcf4a1b58a"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8bec2c2e4e94150e09d5c3c9d5869e79911d8cfcbab4d02f35b87404dc5f7e25"
sha256 cellar: :any_skip_relocation, big_sur: "5cfac18b55bc63b9e1fd58ef4104f7fa3879fc5c25835a5231a78732866a3de8"
sha256 cellar: :any_skip_relocation, catalina: "4658c3e29e67f1d3a874dba4cece2710102d5ef1889682ae953b406e48961153"
sha256 cellar: :any_skip_relocation, mojave: "feb44ff190b93f2bdb6d74c84665df9dc04e0f97794054f85fcf9057423069a9"
end
depends_on "lean" => :test
depends_on "python@3.9"
depends_on "six"
resource "atomicwrites" do
url "https://files.pythonhosted.org/packages/55/8d/74a75635f2c3c914ab5b3850112fd4b0c8039975ecb320e4449aa363ba54/atomicwrites-1.4.0.tar.gz"
sha256 "ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"
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 "charset-normalizer" do
url "https://files.pythonhosted.org/packages/eb/7f/a6c278746ddbd7094b019b08d1b2187101b1f596f35f81dc27f57d8fcf7c/charset-normalizer-2.0.6.tar.gz"
sha256 "5ec46d183433dcbd0ab716f2d7f29d8dee50505b3fdb40c6b985c7c4f5a3591f"
end
resource "click" do
url "https://files.pythonhosted.org/packages/21/83/308a74ca1104fe1e3197d31693a7a2db67c2d4e668f20f43a2fca491f9f7/click-8.0.1.tar.gz"
sha256 "8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"
end
resource "Deprecated" do
url "https://files.pythonhosted.org/packages/c8/d1/e412abc2a358a6b9334250629565fe12697ca1cdee4826239eddf944ddd0/Deprecated-1.2.13.tar.gz"
sha256 "43ac5335da90c31c24ba028af536a91d41d53f9e6901ddb021bcc572ce44e38d"
end
resource "gitdb" do
url "https://files.pythonhosted.org/packages/34/fe/9265459642ab6e29afe734479f94385870e8702e7f892270ed6e52dd15bf/gitdb-4.0.7.tar.gz"
sha256 "96bf5c08b157a666fec41129e6d327235284cca4c81e92109260f353ba138005"
end
resource "GitPython" do
url "https://files.pythonhosted.org/packages/34/cc/aaa7a0d066ac9e94fbffa5fcf0738f5742dd7095bdde950bd582fca01f5a/GitPython-3.1.24.tar.gz"
sha256 "df83fdf5e684fef7c6ee2c02fc68a5ceb7e7e759d08b694088d0cacb4eba59e5"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "networkx" do
url "https://files.pythonhosted.org/packages/97/ae/7497bc5e1c84af95e585e3f98585c9f06c627fac6340984c4243053e8f44/networkx-2.6.3.tar.gz"
sha256 "c0946ed31d71f1b732b5aaa6da5a0388a345019af232ce2f49c766e2d6795c51"
end
resource "pycparser" do
url "https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz"
sha256 "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"
end
resource "pydot" do
url "https://files.pythonhosted.org/packages/13/6e/916cdf94f9b38ae0777b254c75c3bdddee49a54cc4014aac1460a7a172b3/pydot-1.4.2.tar.gz"
sha256 "248081a39bcb56784deb018977e428605c1c758f10897a339fce1dd728ff007d"
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/0c/c6/3cdc7cb1289b35186fd7fd61836b6d83632ca0f7eee552516777361667b1/PyJWT-2.1.0.tar.gz"
sha256 "fba44e7898bbca160a2b2b501f492824fc8382485d3a6f11ba5d0c1937ce6130"
end
resource "PyNaCl" do
url "https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz"
sha256 "54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
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 "six" do
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
end
resource "smmap" do
url "https://files.pythonhosted.org/packages/dd/d4/2b4f196171674109f0fbb3951b8beab06cd0453c1b247ec0c4556d06648d/smmap-4.0.0.tar.gz"
sha256 "7e65386bd122d45405ddf795637b7f7d2b532e7e401d46bbe3fb49b9986d5182"
end
resource "toml" do
url "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz"
sha256 "b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
end
resource "tqdm" do
url "https://files.pythonhosted.org/packages/37/e5/1b54ef934d731576d0145bc8ae22da5b410f96922cec52b91cc29d3ff1b6/tqdm-4.62.2.tar.gz"
sha256 "a4d6d112e507ef98513ac119ead1159d286deab17dffedd96921412c2d236ff5"
end
resource "typing-extensions" do
url "https://files.pythonhosted.org/packages/ed/12/c5079a15cf5c01d7f4252b473b00f7e68ee711be605b9f001528f0298b98/typing_extensions-3.10.0.2.tar.gz"
sha256 "49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/4f/5a/597ef5911cb8919efe4d86206aa8b2658616d676a7088f0825ca08bd7cb8/urllib3-1.26.6.tar.gz"
sha256 "f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"
end
resource "wrapt" do
url "https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz"
sha256 "b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"
end
def install
virtualenv_install_with_resources
end
test do
system bin/"leanproject", "new", "my_project"
project_toml = testpath/"my_project/leanpkg.toml"
assert_predicate project_toml, :exist?, "leanpkg.toml should have been created"
assert_includes project_toml.read, "my_project"
end
end
|
0x07CB/linuxbrew-core
|
Formula/um.rb
|
class Um < Formula
desc "Command-line utility for creating and maintaining personal man pages"
homepage "https://github.com/sinclairtarget/um"
url "https://github.com/sinclairtarget/um/archive/4.2.0.tar.gz"
sha256 "f8c3f4bc5933cb4ab9643dcef7b01b8e8edf2dcbcd8062ef3ef214d1673ae64e"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d8adee04ef491baecd2fb172ce7382a8082ba320b39f0d37ebe569a587ef145c"
sha256 cellar: :any_skip_relocation, big_sur: "cdec90ed59042a6701044f4bbc22e6b355426f9ba711f400899b672c1300d487"
sha256 cellar: :any_skip_relocation, catalina: "266b397cd3e24060e7926f438279325aed89643070618add3db64175e348c04b"
sha256 cellar: :any_skip_relocation, mojave: "a4d8c9ddc2b46076eaccf3e3d4eaa43918f3d156e8abd16ad1415ea85f2da8f5"
sha256 cellar: :any_skip_relocation, high_sierra: "a479ed6f535f228d1bfa15a7292e58d06a4f07d1238c4fa83f1b99c80564a24e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "965706a7846d6e06e1c21f592c477a597cd7ccf78d266a3ef5d3ab811fd1020b" # linuxbrew-core
end
uses_from_macos "ruby", since: :high_sierra
resource "kramdown" do
url "https://rubygems.org/gems/kramdown-1.17.0.gem"
sha256 "5862410a2c1692fde2fcc86d78d2265777c22bd101f11c76442f1698ab242cd8"
end
def install
ENV["GEM_HOME"] = libexec
resources.each do |r|
r.fetch
system "gem", "install", r.cached_download, "--ignore-dependencies",
"--no-document", "--install-dir", libexec
end
system "gem", "build", "um.gemspec"
system "gem", "install", "--ignore-dependencies", "um-#{version}.gem"
bin.install libexec/"bin/um"
bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
bash_completion.install "um-completion.sh"
man1.install Dir["doc/man1/*"]
end
test do
system bin/"um", "topic", "-d" # Set default topic
output = shell_output("#{bin}/um topic")
assert_match shell_output("#{bin}/um config default_topic"), output
end
end
|
0x07CB/linuxbrew-core
|
Formula/lua@5.3.rb
|
<filename>Formula/lua@5.3.rb
class LuaAT53 < Formula
desc "Powerful, lightweight programming language"
homepage "https://www.lua.org/"
url "https://www.lua.org/ftp/lua-5.3.6.tar.gz"
sha256 "fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60"
license "MIT"
revision 1 unless OS.mac?
livecheck do
url "https://www.lua.org/ftp/"
regex(/href=.*?lua[._-]v?(5\.3(?:\.\d+)*)\.t/i)
end
bottle do
rebuild 2
sha256 cellar: :any, arm64_big_sur: "e06800c163acfcb6a1d0201ca303a631b8fef9c9047855c59795f015d23bd52b"
sha256 cellar: :any, big_sur: "ce0820b10f9329826746487c3d69c475241cc7153dcbae1b250e853320256c27"
sha256 cellar: :any, catalina: "7ac8234731edf3b0eb86a20cda2bdb6c0de637529790263d076de7da6cc7ab93"
sha256 cellar: :any, mojave: "564c6e085e6a2bc744982dbdb1934ace6332231b1190e56a08e11248d6b416e2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9d0605ea8465021517e376123adf6976eb44e1b889a7f5278b426cdf6e91e225" # linuxbrew-core
end
keg_only :versioned_formula
uses_from_macos "unzip" => :build
on_macos do
# Be sure to build a dylib, or else runtime modules will pull in another static copy of liblua = crashy
# See: https://github.com/Homebrew/legacy-homebrew/pull/5043
# ***Update me with each version bump!***
patch :DATA
end
on_linux do
depends_on "readline"
# Add shared library for linux
# Equivalent to the mac patch carried around here ... that will probably never get upstreamed
# Inspired from http://www.linuxfromscratch.org/blfs/view/cvs/general/lua.html
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/c2d33768512f73b3590e15c47b319af50576b24c/lua@5.3/lua-so.patch"
sha256 "b9bba9d10ed5d34335c831972a02ec48471ca1dbf95230edc13fe5f575d5542c"
end
end
def install
if OS.linux?
# Fix: /usr/bin/ld: lapi.o: relocation R_X86_64_32 against `luaO_nilobject_' can not be used
# when making a shared object; recompile with -fPIC
# See http://www.linuxfromscratch.org/blfs/view/cvs/general/lua.html
ENV.append_to_cflags "-fPIC"
end
# Substitute formula prefix in `src/Makefile` for install name (dylib ID).
# Use our CC/CFLAGS to compile.
inreplace "src/Makefile" do |s|
s.gsub! "@LUA_PREFIX@", prefix if OS.mac?
s.remove_make_var! "CC"
s.change_make_var! "CFLAGS", "#{ENV.cflags} -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)"
s.change_make_var! "MYLDFLAGS", ENV.ldflags
end
# Fix path in the config header
inreplace "src/luaconf.h", "/usr/local", HOMEBREW_PREFIX
os = if OS.mac?
"macosx"
else
"linux"
end
system "make", os, "INSTALL_TOP=#{prefix}", "INSTALL_INC=#{include}/lua", "INSTALL_MAN=#{man1}"
system "make", "install", "INSTALL_TOP=#{prefix}", "INSTALL_INC=#{include}/lua", "INSTALL_MAN=#{man1}"
# We ship our own pkg-config file as Lua no longer provide them upstream.
libs = %W[-llua#{version.major_minor} -lm]
libs << "-ldl" if OS.linux?
(lib/"pkgconfig/lua.pc").write <<~EOS
V= #{version.major_minor}
R= #{version}
prefix=#{opt_prefix}
INSTALL_BIN= ${prefix}/bin
INSTALL_INC= ${prefix}/include/lua
INSTALL_LIB= ${prefix}/lib
INSTALL_MAN= ${prefix}/share/man/man1
INSTALL_LMOD= ${prefix}/share/lua/${V}
INSTALL_CMOD= ${prefix}/lib/lua/${V}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/lua
Name: Lua
Description: An Extensible Extension Language
Version: #{version}
Requires:
Libs: -L${libdir} #{libs.join(" ")}
Cflags: -I${includedir}
EOS
# Fix some software potentially hunting for different pc names.
bin.install_symlink "lua" => "lua#{version.major_minor}"
bin.install_symlink "lua" => "lua-#{version.major_minor}"
bin.install_symlink "luac" => "luac#{version.major_minor}"
bin.install_symlink "luac" => "luac-#{version.major_minor}"
(include/"lua#{version.major_minor}").install_symlink Dir[include/"lua/*"]
lib.install_symlink shared_library("liblua", version.major_minor) => shared_library("liblua#{version.major_minor}")
(lib/"pkgconfig").install_symlink "lua.pc" => "lua#{version.major_minor}.pc"
(lib/"pkgconfig").install_symlink "lua.pc" => "lua-#{version.major_minor}.pc"
lib.install Dir[shared_library("src/liblua", "*")] if OS.linux?
end
def caveats
<<~EOS
You may also want luarocks:
brew install luarocks
EOS
end
test do
assert_match "Ducks are terrifying.", shell_output("#{bin}/lua -e \"print ('Ducks are terrifying.')\"")
end
end
__END__
diff --git a/Makefile b/Makefile
index 7fa91c8..a825198 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
# What to install.
TO_BIN= lua luac
TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
-TO_LIB= liblua.a
+TO_LIB= liblua.5.3.6.dylib
TO_MAN= lua.1 luac.1
# Lua version and release.
@@ -63,6 +63,8 @@ install: dummy
cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+ ln -s -f liblua.5.3.6.dylib $(INSTALL_LIB)/liblua.5.3.dylib
+ ln -s -f liblua.5.3.dylib $(INSTALL_LIB)/liblua.dylib
uninstall:
cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
diff --git a/src/Makefile b/src/Makefile
index 2e7a412..d0c4898 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,7 +28,7 @@ MYOBJS=
PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
-LUA_A= liblua.a
+LUA_A= liblua.5.3.6.dylib
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
ltm.o lundump.o lvm.o lzio.o
@@ -56,11 +56,12 @@ o: $(ALL_O)
a: $(ALL_A)
$(LUA_A): $(BASE_O)
- $(AR) $@ $(BASE_O)
- $(RANLIB) $@
+ $(CC) -dynamiclib -install_name @LUA_PREFIX@/lib/liblua.5.3.dylib \
+ -compatibility_version 5.3 -current_version 5.3.6 \
+ -o liblua.5.3.6.dylib $^
$(LUA_T): $(LUA_O) $(LUA_A)
- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+ $(CC) -fno-common $(MYLDFLAGS) -o $@ $(LUA_O) $(LUA_A) -L. -llua.5.3.6 $(LIBS)
$(LUAC_T): $(LUAC_O) $(LUA_A)
$(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
@@ -110,7 +111,7 @@ linux:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
macosx:
- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline"
+ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX -fno-common" SYSLIBS="-lreadline"
mingw:
$(MAKE) "LUA_A=lua53.dll" "LUA_T=lua.exe" \
|
0x07CB/linuxbrew-core
|
Formula/phpmd.rb
|
class Phpmd < Formula
desc "PHP Mess Detector"
homepage "https://phpmd.org"
url "https://github.com/phpmd/phpmd/releases/download/2.10.2/phpmd.phar"
sha256 "5d16d2571ed029ce94a8dfcec2f50a280f9c896a1454eb93014474841861aa01"
license "BSD-3-Clause"
def install
bin.install "phpmd.phar" => "phpmd"
end
test do
(testpath/"src/HelloWorld/Greetings.php").write <<~EOS
<?php
namespace HelloWorld;
class Greetings {
public static function sayHelloWorld($name) {
return 'HelloHomebrew';
}
}
EOS
assert_match "Avoid unused parameters such as '$name'.",
shell_output("#{bin}/phpmd --ignore-violations-on-exit src/HelloWorld/Greetings.php text unusedcode")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libmms.rb
|
<gh_stars>100-1000
class Libmms < Formula
desc "Library for parsing mms:// and mmsh:// network streams"
homepage "https://sourceforge.net/projects/libmms/"
url "https://downloads.sourceforge.net/project/libmms/libmms/0.6.4/libmms-0.6.4.tar.gz"
sha256 "3c05e05aebcbfcc044d9e8c2d4646cd8359be39a3f0ba8ce4e72a9094bee704f"
license "LGPL-2.1-or-later"
bottle do
rebuild 2
sha256 cellar: :any, arm64_big_sur: "23e8d5a9591a26c8f167f346cfd2c789f1241458338eb4ce5f90e9c440aab7f0"
sha256 cellar: :any, big_sur: "49439ac923403c34c9fb042ed167a8830d424cd113303d66ed2d70f7aeb23840"
sha256 cellar: :any, catalina: "15016ca7557449405339f310e6feeccbc04094702fcc7d4be53909fc738b05f4"
sha256 cellar: :any, mojave: "4ac527e54af063a3fa760b1e4d43b56dd51ade89cbb971ac9bea9dd3500dfc70"
sha256 cellar: :any, high_sierra: "adc24aaa1656c02f41b20b4453f6a2deda8f3597c919eed1ae8befb732fc920f"
sha256 cellar: :any, sierra: "5319927f799dd20effbfc9f8bb90ebc844b39852c433bf434ab6b36c11c36417"
sha256 cellar: :any, el_capitan: "61c4dd24598198386342dd9c700e218b6b83c82627efc781daa89acfaca96066"
sha256 cellar: :any, yosemite: "f915d916dd81ad9f767b6905e166dae07df72e70dc0c844c8011abed9f144252"
end
depends_on "pkg-config" => :build
depends_on "glib"
def install
ENV.append "LDFLAGS", "-liconv" if OS.mac?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/toot.rb
|
<filename>Formula/toot.rb
class Toot < Formula
include Language::Python::Virtualenv
desc "Mastodon CLI & TUI"
homepage "https://toot.readthedocs.io/en/latest/index.html"
url "https://files.pythonhosted.org/packages/0f/80/189d52bc7d4be7a9140780281bad0d58537ab42c4ce641645b04ec305013/toot-0.28.0.tar.gz"
sha256 "690250e975c58f962cf33aefbe5b871dc6ea934580cec7f5b6a18e0f4c2052f3"
license "GPL-3.0-only"
revision 1
head "https://github.com/ihabunek/toot.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "62d5912626349abfae174e9aa089b6b1a9d39f810ead9037d1e1eb28f5037cb6"
sha256 cellar: :any_skip_relocation, big_sur: "5a9aa6a2791e1e77d0e6a7d0cd3e80c090ad61d274b73ecc25adbf171d8a240b"
sha256 cellar: :any_skip_relocation, catalina: "6baa50b0758d2fb5ef2c3e1def6555830bc07e8c4942572650621814bb333f68"
sha256 cellar: :any_skip_relocation, mojave: "7bde3bb494bdda10977f62bf1439e2b0bbf540a789ea4b86fd7df6f677c215e4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f2ae6e4281893e0d663c13b2c5049eb0799903c4956a4dcd1def158a7a51d057" # linuxbrew-core
end
depends_on "python@3.10"
resource "beautifulsoup4" do
url "https://files.pythonhosted.org/packages/a1/69/daeee6d8f22c997e522cdbeb59641c4d31ab120aba0f2c799500f7456b7e/beautifulsoup4-4.10.0.tar.gz"
sha256 "c23ad23c521d818955a4151a67d81580319d4bf548d3d49f4223ae041ff98891"
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 "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/e7/01/3569e0b535fb2e4a6c384bdbed00c55b9d78b5084e0fb7f4d0bf523d7670/requests-2.26.0.tar.gz"
sha256 "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
end
resource "soupsieve" do
url "https://files.pythonhosted.org/packages/c8/3f/e71d92e90771ac2d69986aa0e81cf0dfda6271e8483698f4847b861dd449/soupsieve-2.2.1.tar.gz"
sha256 "052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/80/be/3ee43b6c5757cabea19e75b8f46eaf05a2f5144107d7db48c7cf3a864f73/urllib3-1.26.7.tar.gz"
sha256 "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
end
resource "urwid" do
url "https://files.pythonhosted.org/packages/94/3f/e3010f4a11c08a5690540f7ebd0b0d251cc8a456895b7e49be201f73540c/urwid-2.1.2.tar.gz"
sha256 "588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae"
end
resource "wcwidth" do
url "https://files.pythonhosted.org/packages/89/38/459b727c381504f361832b9e5ace19966de1a235d73cdbdea91c771a1155/wcwidth-0.2.5.tar.gz"
sha256 "c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
end
def install
virtualenv_install_with_resources
end
test do
assert_match version.to_s, shell_output("#{bin}/toot")
assert_match "You are not logged in to any accounts", shell_output("#{bin}/toot auth")
end
end
|
0x07CB/linuxbrew-core
|
Formula/lp_solve.rb
|
<reponame>0x07CB/linuxbrew-core
class LpSolve < Formula
desc "Mixed integer linear programming solver"
homepage "https://sourceforge.net/projects/lpsolve/"
url "https://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.11_source.tar.gz"
sha256 "6d4abff5cc6aaa933ae8e6c17a226df0fc0b671c438f69715d41d09fe81f902f"
license "LGPL-2.1-or-later"
bottle do
rebuild 1
sha256 cellar: :any, arm64_big_sur: "064364e4edd599066792e63f44649f9986d3b3ef10e83b91c68d756aaac2f543"
sha256 cellar: :any, big_sur: "04e8e54a2c3c58d7430337dc2b0f9ca6c2db2d144bb98a6b91312cd63faf834d"
sha256 cellar: :any, catalina: "ac4e07a9e144e2ef6ed34e340a9d9eb769ae7184723df790a8b78ef32d46e753"
sha256 cellar: :any, mojave: "4abc54efe795496f3114edcdaaf3b90e55632bbe92c5816b5372b9743366e62f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d91619035ade577fb0fa3cdfc03acfe7388306fac23e84b0027296701277654a" # linuxbrew-core
end
def install
subdir = if OS.mac?
target = ".osx"
"osx64"
else
"ux64"
end
cd "lpsolve55" do
system "sh", "ccc#{target}"
lib.install "bin/#{subdir}/liblpsolve55.a"
lib.install "bin/#{subdir}/#{shared_library("liblpsolve55")}"
end
cd "lp_solve" do
system "sh", "ccc#{target}"
bin.install "bin/#{subdir}/lp_solve"
end
include.install Dir["*.h"], Dir["shared/*.h"], Dir["bfp/bfp_LUSOL/LUSOL/lusol*.h"]
end
test do
(testpath/"test.lp").write <<~EOS
max: 143 x + 60 y;
120 x + 210 y <= 15000;
110 x + 30 y <= 4000;
x + y <= 75;
EOS
output = shell_output("#{bin}/lp_solve test.lp")
assert_match "Value of objective function: 6315.6250", output
assert_match(/x\s+21\.875/, output)
assert_match(/y\s+53\.125/, output)
end
end
|
0x07CB/linuxbrew-core
|
Formula/pipgrip.rb
|
class Pipgrip < Formula
include Language::Python::Virtualenv
desc "Lightweight pip dependency resolver"
homepage "https://github.com/ddelange/pipgrip"
url "https://files.pythonhosted.org/packages/37/af/0240a7a53fc3375cd56e63e62c05f0a0d12b878b8e6709dc9e772fbe9182/pipgrip-0.6.11.tar.gz"
sha256 "a9842a01985203cbc18afdf17671b4b41204bccf86a1a352a1cde2f461969d6f"
license "BSD-3-Clause"
revision 1
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fc692e49f66513bb51a34430923aa3d1118a7f75b9152b46fdf2cd5cb7b95839"
sha256 cellar: :any_skip_relocation, big_sur: "7a67a2c90e5074e757d5698572e5b9ab3ced8646fa404fbe593463099f5ff2eb"
sha256 cellar: :any_skip_relocation, catalina: "e6c178b93ee57c1666364b397d4779804df9932f7dc6132e76a3211955fc16a9"
sha256 cellar: :any_skip_relocation, mojave: "019e6176aa868cf0239c7453327efe451bc017c83f6a9a71bc1dccb080890556"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d1998b4cc81cd4ad74800a42b9893eb7a21016a0e473647c80085c1f89c6e60b" # linuxbrew-core
end
depends_on "python@3.10"
depends_on "six"
resource "anytree" do
url "https://files.pythonhosted.org/packages/d8/45/de59861abc8cb66e9e95c02b214be4d52900aa92ce34241a957dcf1d569d/anytree-2.8.0.tar.gz"
sha256 "3f0f93f355a91bc3e6245319bf4c1d50e3416cc7a35cc1133c1ff38306bbccab"
end
resource "click" do
url "https://files.pythonhosted.org/packages/f4/09/ad003f1e3428017d1c3da4ccc9547591703ffea548626f47ec74509c5824/click-8.0.3.tar.gz"
sha256 "410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b"
end
resource "packaging" do
url "https://files.pythonhosted.org/packages/df/86/aef78bab3afd461faecf9955a6501c4999933a48394e90f03cd512aad844/packaging-21.0.tar.gz"
sha256 "7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"
end
resource "pkginfo" do
url "https://files.pythonhosted.org/packages/23/3f/f2251c754073cda0f00043a707cba7db103654722a9afed965240a0b2b43/pkginfo-1.7.1.tar.gz"
sha256 "e7432f81d08adec7297633191bbf0bd47faf13cd8724c3a13250e51d542635bd"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
end
resource "wheel" do
url "https://files.pythonhosted.org/packages/4e/be/8139f127b4db2f79c8b117c80af56a3078cc4824b5b94250c7f81a70e03b/wheel-0.37.0.tar.gz"
sha256 "e2ef7239991699e3355d54f8e968a21bb940a1dbf34a4d226741e64462516fad"
end
def install
virtualenv_install_with_resources
end
test do
assert_match "pipgrip==#{version}", shell_output("#{bin}/pipgrip pipgrip --no-cache-dir")
# Test gcc dependency
assert_match "dxpy==", shell_output("#{bin}/pipgrip dxpy --no-cache-dir")
end
end
|
0x07CB/linuxbrew-core
|
Formula/amp.rb
|
<reponame>0x07CB/linuxbrew-core
class Amp < Formula
desc "Text editor for your terminal"
homepage "https://amp.rs"
url "https://github.com/jmacdonald/amp/archive/0.6.2.tar.gz"
sha256 "9279efcecdb743b8987fbedf281f569d84eaf42a0eee556c3447f3dc9c9dfe3b"
license "GPL-3.0-or-later"
revision 1
head "https://github.com/jmacdonald/amp.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f001a886b5ea456bc925ae37ef45c6f5ae70ef8506ae576fe3f831e78f2ecbcb"
sha256 cellar: :any_skip_relocation, big_sur: "db4b6bdf3468476c2f2b6696f755c05b2471f6d09bc47bf783fbd6c65b1b1aac"
sha256 cellar: :any_skip_relocation, catalina: "6b886491460ff6245f9f6ecd22d0a856f51afbd06ec7adf13e2c8be974693656"
sha256 cellar: :any_skip_relocation, mojave: "8d11d70c1a7ae6bb4cf3c4460ad93a303a7ec4bdc63166ce0796f4025c05d517"
end
depends_on "cmake" => :build
depends_on "rust" => :build
uses_from_macos "zlib"
on_linux do
depends_on "python@3.9" => :build
depends_on "libxcb"
end
def install
# Upstream specifies very old versions of onig_sys/cc that
# cause issues when using Homebrew's clang shim on Apple Silicon.
# Forcefully upgrade `onig_sys` and `cc` to slightly newer versions
# that enable a succesful build.
# https://github.com/jmacdonald/amp/issues/222
inreplace "Cargo.lock" do |f|
f.gsub! "68.0.1", "68.2.1"
f.gsub! "5c6be7c4f985508684e54f18dd37f71e66f3e1ad9318336a520d7e42f0d3ea8e",
"195ebddbb56740be48042ca117b8fb6e0d99fe392191a9362d82f5f69e510379"
f.gsub! "1.0.45", "1.0.67"
f.gsub! "4fc9a35e1f4290eb9e5fc54ba6cf40671ed2a2514c3eeb2b2a908dda2ea5a1be",
"e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd"
end
system "cargo", "install", *std_cargo_args
end
test do
require "pty"
require "io/console"
PTY.spawn(bin/"amp", "test.txt") do |r, w, _pid|
r.winsize = [80, 43]
sleep 1
# switch to insert mode and add data
w.write "i"
sleep 1
w.write "test data"
sleep 1
# escape to normal mode, save the file, and quit
w.write "\e"
sleep 1
w.write "s"
sleep 1
w.write "Q"
begin
r.read
rescue Errno::EIO
# GNU/Linux raises EIO when read is done on closed pty
end
end
assert_match "test data\n", (testpath/"test.txt").read
end
end
|
0x07CB/linuxbrew-core
|
Formula/path-extractor.rb
|
<filename>Formula/path-extractor.rb
class PathExtractor < Formula
desc "UNIX filter which outputs the filepaths found in stdin"
homepage "https://github.com/edi9999/path-extractor"
url "https://github.com/edi9999/path-extractor/archive/v0.2.0.tar.gz"
sha256 "7d6c7463e833305e6d27c63727fec1029651bfe8bca5e8d23ac7db920c2066e7"
head "https://github.com/edi9999/path-extractor.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "be6cc1f4d4289cc071b1f5a17ee3c3c3982e9260e833185efa2e68db4f9df08b"
sha256 cellar: :any_skip_relocation, catalina: "f882b9d1c9ba8fdc8ba16d6bbad852034182636d9c968cfbacf8cc1e08009a7d"
sha256 cellar: :any_skip_relocation, mojave: "8feb5be3e88fa0370593d8d349a90b54ac953a504439ec61722cff7e843153cc"
sha256 cellar: :any_skip_relocation, high_sierra: "38faa134c10a82b9ac28077d6df73da8b1ce2fed2fb8fe4f24ddebb08c18b623"
sha256 cellar: :any_skip_relocation, sierra: "bf30c2d715d52035b57b640d849c21e1508fb189259b5e02343f8104f50d6624"
sha256 cellar: :any_skip_relocation, el_capitan: "90521da4fd1834db41fbf19b7b6ce9f82a943ab2412acd41b6c5d749146770e7"
sha256 cellar: :any_skip_relocation, yosemite: "718512fe3585d82dee8d655c2ab534dac70d0b24a8164bcc012f0f2a65a55e5b"
end
# https://github.com/edi9999/path-extractor/issues/8
disable! date: "2021-02-20", because: :no_license
depends_on "go" => :build
def install
ENV["GOBIN"] = bin
ENV["GOPATH"] = buildpath
ENV["GOHOME"] = buildpath
(buildpath/"src/github.com/edi9999").mkpath
ln_sf buildpath, buildpath/"src/github.com/edi9999/path-extractor"
system "go", "build", "-o", bin/"path-extractor", "path-extractor/pe.go"
end
test do
assert_equal "foo/bar/baz\n",
pipe_output("#{bin}/path-extractor", "a\nfoo/bar/baz\nd\n")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libstatgrab.rb
|
class Libstatgrab < Formula
desc "Provides cross-platform access to statistics about the system"
homepage "https://libstatgrab.org/"
url "https://github.com/libstatgrab/libstatgrab/releases/download/LIBSTATGRAB_0_92_1/libstatgrab-0.92.1.tar.gz"
mirror "https://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.92.1.tar.gz"
sha256 "5688aa4a685547d7174a8a373ea9d8ee927e766e3cc302bdee34523c2c5d6c11"
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
livecheck do
url :stable
regex(/^LIBSTATGRAB[._-]v?(\d+(?:[._]\d+)+)$/i)
strategy :git do |tags, regex|
tags.map { |tag| tag[regex, 1]&.tr("_", ".") }
end
end
bottle do
sha256 cellar: :any, arm64_big_sur: "ce70f4a494445f8afde960c4ceea838e48b98fcf4c4d9513f705afae83193433"
sha256 cellar: :any, big_sur: "08aba9012402bf7611ddc2fb0f6e0dfcb31c97ce067dd83d6ae73830b5d30aeb"
sha256 cellar: :any, catalina: "802d07a3f0948bf0f3a60bb174b1ee56e028b4b24f9eb121e9f90e5926e689c0"
sha256 cellar: :any, mojave: "8ce7e1320ee7e3d10764ace6801eecb28cac49dadef648de79258e1d254da06c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8984abcb585701a695fedbebd0c13cd61b08b95240c22485c75e2aac1575c57a" # linuxbrew-core
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/statgrab"
end
end
|
0x07CB/linuxbrew-core
|
Formula/rgbds.rb
|
class Rgbds < Formula
desc "Rednex GameBoy Development System"
homepage "https://rgbds.gbdev.io"
url "https://github.com/gbdev/rgbds/archive/v0.5.1.tar.gz"
sha256 "1e5331b5638076c1f099a961f8663256e9f8be21135427277eb0000d3d6ee887"
license "MIT"
head "https://github.com/gbdev/rgbds.git", branch: "master"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any, arm64_big_sur: "44cca5083d32dfa42a6d7d120079eabff0c375ff432851de28a61a943725ceb8"
sha256 cellar: :any, big_sur: "3f02c082066bc835f042a37ae3e972cb58a77a615634f299e33f301dab46b6c1"
sha256 cellar: :any, catalina: "9927685009fa383bc393eb32e36cb44d1db0cce12f06640b323f44d6589ad50c"
sha256 cellar: :any, mojave: "e778e85fdb6ea1b00d1d25648e6da9fbfe92c35779dd6be1ae62abc8eb459077"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1c1b236b1554032f318a0e3bad2ac8dbb69608840cd83b67c5880843191b3617" # linuxbrew-core
end
depends_on "bison" => :build
depends_on "pkg-config" => :build
depends_on "rust" => :build
depends_on "libpng"
resource "rgbobj" do
url "https://github.com/gbdev/rgbobj/archive/refs/tags/v0.1.0.tar.gz"
sha256 "359a3504dc5a5f7812dfee602a23aec80163d1d9ec13f713645b5495aeef2a9b"
end
def install
system "make", "install", "PREFIX=#{prefix}", "mandir=#{man}"
resource("rgbobj").stage do
system "cargo", "install", *std_cargo_args
man1.install "rgbobj.1"
end
zsh_completion.install Dir["contrib/zsh_compl/_*"]
end
test do
# Based on https://github.com/rednex/rgbds/blob/HEAD/test/asm/assert-const.asm
(testpath/"source.asm").write <<~EOS
SECTION "rgbasm passing asserts", ROM0[0]
Label:
db 0
assert @
EOS
system "#{bin}/rgbasm", "-o", "output.o", "source.asm"
system "#{bin}/rgbobj", "-A", "-s", "data", "-p", "data", "output.o"
end
end
|
0x07CB/linuxbrew-core
|
Formula/tika.rb
|
<reponame>0x07CB/linuxbrew-core
class Tika < Formula
desc "Content analysis toolkit"
homepage "https://tika.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=tika/2.1.0/tika-app-2.1.0.jar"
mirror "https://archive.apache.org/dist/tika/2.1.0/tika-app-2.1.0.jar"
sha256 "0a93cdffebe1f1f0aca5b203538cafd66579a65409a8d565b93d3b8150e4e69c"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8286072b39465e702e61c8992a642058310816112f82e126a43116c3c419d523"
sha256 cellar: :any_skip_relocation, big_sur: "8286072b39465e702e61c8992a642058310816112f82e126a43116c3c419d523"
sha256 cellar: :any_skip_relocation, catalina: "8286072b39465e702e61c8992a642058310816112f82e126a43116c3c419d523"
sha256 cellar: :any_skip_relocation, mojave: "8286072b39465e702e61c8992a642058310816112f82e126a43116c3c419d523"
sha256 cellar: :any_skip_relocation, x86_64_linux: "55267fe3a78db796ced8d71ad0e0951c1b54937f6522bdf31178e16182ec8bbf" # linuxbrew-core
end
depends_on "openjdk"
resource "server" do
url "https://www.apache.org/dyn/closer.lua?path=tika/2.1.0/tika-server-standard-2.1.0.jar"
mirror "https://archive.apache.org/dist/tika/2.1.0/tika-server-standard-2.1.0.jar"
sha256 "845c3e2983255dd080bb140d4b7a8d3180c900c26f034ced1ab72530e81f5b61"
end
def install
libexec.install "tika-app-#{version}.jar"
bin.write_jar_script libexec/"tika-app-#{version}.jar", "tika"
libexec.install resource("server")
bin.write_jar_script libexec/"tika-server-#{version}.jar", "tika-rest-server"
end
test do
pdf = test_fixtures("test.pdf")
assert_equal "application/pdf\n", shell_output("#{bin}/tika --detect #{pdf}")
end
end
|
0x07CB/linuxbrew-core
|
Formula/moco.rb
|
<reponame>0x07CB/linuxbrew-core<gh_stars>100-1000
class Moco < Formula
desc "Stub server with Maven, Gradle, Scala, and shell integration"
homepage "https://github.com/dreamhead/moco"
url "https://search.maven.org/remotecontent?filepath=com/github/dreamhead/moco-runner/1.2.0/moco-runner-1.2.0-standalone.jar"
sha256 "7d5bcbed4cf39a960fb523d8b4c073579c3cdca1b3971901be751b7afc9f37fe"
license "MIT"
livecheck do
url "https://search.maven.org/remotecontent?filepath=com/github/dreamhead/moco-runner/"
regex(%r{href=.*?v?(\d+(?:\.\d+)+)/?["' >]}i)
end
depends_on "openjdk"
def install
libexec.install "moco-runner-#{version}-standalone.jar"
bin.write_jar_script libexec/"moco-runner-#{version}-standalone.jar", "moco"
end
test do
(testpath/"config.json").write <<~EOS
[
{
"response" :
{
"text" : "Hello, Moco"
}
}
]
EOS
port = free_port
begin
pid = fork do
exec "#{bin}/moco http -p #{port} -c #{testpath}/config.json"
end
sleep 10
assert_match "Hello, Moco", shell_output("curl -s http://127.0.0.1:#{port}")
ensure
Process.kill "SIGTERM", pid
Process.wait pid
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/udns.rb
|
class Udns < Formula
desc "DNS resolver library"
homepage "https://www.corpit.ru/mjt/udns.html"
url "https://www.corpit.ru/mjt/udns/udns-0.4.tar.gz"
sha256 "115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710"
bottle do
sha256 cellar: :any, catalina: "18ac00a1a30fea027e398558edf149e464712c94fa68242740cc8e086e1ec036"
sha256 cellar: :any, mojave: "ce9ffcdbc08861f382e251d66293c4de690e5bffe1ca3015909332b71ea306c8"
sha256 cellar: :any, high_sierra: "806e631f04904c4e550e3397a6519ee1803cb3cbef916967f42aed331e875afa"
sha256 cellar: :any, sierra: "8fbcc7a26f6be81abfe4766e9efc012c720938e8ea9dc9f20497cb82b101e659"
sha256 cellar: :any, el_capitan: "59939957b47912ebb286426391a4e2c904ecc416e9de18dc8c0a74052ac82ffe"
sha256 cellar: :any, yosemite: "342aff7270a4251655eb7cfc538b39db1805cfe965ada5cad1a2819b727d9107"
end
disable! date: "2020-12-08", because: :unmaintained
# Build target for dylib. See:
# https://www.corpit.ru/pipermail/udns/2011q3/000154.html
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/udns/0.4.patch"
sha256 "4c3de5d04f93e7d7a9777b3baf3905707199fce9c08840712ccb2fb5fd6d90f9"
end
def install
system "./configure"
system "make"
system "make", "dylib"
bin.install "dnsget", "rblcheck"
doc.install "NOTES", "TODO", "ex-rdns.c"
include.install "udns.h"
lib.install "libudns.a", "libudns.0.dylib", "libudns.dylib"
man1.install "dnsget.1", "rblcheck.1"
man3.install "udns.3"
end
end
|
0x07CB/linuxbrew-core
|
Formula/libupnp.rb
|
class Libupnp < Formula
desc "Portable UPnP development kit"
homepage "https://pupnp.sourceforge.io/"
url "https://github.com/pupnp/pupnp/releases/download/release-1.14.12/libupnp-1.14.12.tar.bz2"
sha256 "091c80aada1e939c2294245c122be2f5e337cc932af7f7d40504751680b5b5ac"
license "BSD-3-Clause"
livecheck do
url :stable
regex(/^release[._-]v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "e9294a1fc82e762c9b6b58ea597ac2521ee18b20daf52750a57f8c6840c4ef26"
sha256 cellar: :any, big_sur: "b038bdfae801804287fab05ada50d13e12e7b5fa270a962f686ada7231034b07"
sha256 cellar: :any, catalina: "dcea4c1c6884035cfe6b8be048f8f7998e295a5d611f7549e87e89c549c9433f"
sha256 cellar: :any, mojave: "12fcbdaceb3fd68ee85a4dc9905dee1f92fe656a8b6f90460cf1864249faf24b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "43231a7cdf7f0b91510dbd5a94d9f120e4f9cbea9d0b7805878a2986218fd207" # linuxbrew-core
end
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--enable-ipv6
]
system "./configure", *args
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/librsync.rb
|
<reponame>0x07CB/linuxbrew-core
class Librsync < Formula
desc "Library that implements the rsync remote-delta algorithm"
homepage "https://librsync.github.io/"
url "https://github.com/librsync/librsync/archive/v2.3.2.tar.gz"
sha256 "ef8ce23df38d5076d25510baa2cabedffbe0af460d887d86c2413a1c2b0c676f"
license "LGPL-2.1-or-later"
bottle do
sha256 arm64_big_sur: "e2672691faeaba727acde6252c3dba8a39b9a0703f942f8f830d6e5514e15bb3"
sha256 big_sur: "7561cdbc8327f77db0647112ae1496ca544c659a04dfe83e703c9edeee890869"
sha256 catalina: "4d38d5dbea74b9eac4624877d7c7e29f08c38d68dedaaf9dadbdc5e3a820678b"
sha256 mojave: "5796b96a6fc4781e134879993d0fa23816994c424d9984ec0584ae6b0bea2963"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e1b7207e1c3725cb55b51c0711c0a6d583d4f3f55e11c6aee68649e0a94f0ae8" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "popt"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
man1.install "doc/rdiff.1"
man3.install "doc/librsync.3"
end
test do
assert_match version.to_s, shell_output("#{bin}/rdiff -V")
end
end
|
0x07CB/linuxbrew-core
|
Formula/digitemp.rb
|
class Digitemp < Formula
desc "Read temperature sensors in a 1-Wire net"
homepage "https://www.digitemp.com/"
url "https://github.com/bcl/digitemp/archive/v3.7.2.tar.gz"
sha256 "683df4ab5cc53a45fe4f860c698f148d34bcca91b3e0568a342f32d64d12ba24"
license "GPL-2.0"
head "https://github.com/bcl/digitemp.git"
bottle do
sha256 cellar: :any, arm64_big_sur: "d63a759441dd683b447bc9db45786b1bce2f662d67a340d81048b8a25daa021f"
sha256 cellar: :any, big_sur: "dfcce60792d55b3d715c7cadb3179193ce943edb291913423c34456b53a1ac37"
sha256 cellar: :any, catalina: "6d79bfded73a02e6c84d90c5437226567389212bf07d0b15b355465db645c6ec"
sha256 cellar: :any, mojave: "54fbf374d90a378d49b86174f4c00e0a56a1cee599d040a740469d7ad7b3a991"
sha256 cellar: :any, high_sierra: "a91be4056f24f4bef0c19c8a3693d48e0f7d391494e7db1be416ab1eb833daa2"
sha256 cellar: :any, sierra: "dab9de93acb1edb05e3607075b36ce233e567dd9a1918aacf3b19f3826aa30ef"
sha256 cellar: :any, x86_64_linux: "b595d6bc1bac893fb36797b950580b6b726aa8195fe705694bb6013518622480" # linuxbrew-core
end
depends_on "libusb-compat"
def install
mkdir_p "build-serial/src"
mkdir_p "build-serial/userial/ds9097"
mkdir_p "build-serial/userial/ds9097u"
mkdir_p "build-usb/src"
mkdir_p "build-usb/userial/ds2490"
system "make", "-C", "build-serial", "-f", "../Makefile", "SRCDIR=..", "ds9097", "ds9097u"
system "make", "-C", "build-usb", "-f", "../Makefile", "SRCDIR=..", "ds2490"
bin.install "build-serial/digitemp_DS9097"
bin.install "build-serial/digitemp_DS9097U"
bin.install "build-usb/digitemp_DS2490"
man1.install "digitemp.1"
man1.install_symlink "digitemp.1" => "digitemp_DS9097.1"
man1.install_symlink "digitemp.1" => "digitemp_DS9097U.1"
man1.install_symlink "digitemp.1" => "digitemp_DS2490.1"
end
# digitemp has no self-tests and does nothing without a 1-wire device,
# so at least check the individual binaries compiled to what we expect.
test do
assert_match "Compiled for DS2490", shell_output("#{bin}/digitemp_DS2490 2>&1", 255)
assert_match "Compiled for DS9097", shell_output("#{bin}/digitemp_DS9097 2>&1", 255)
assert_match "Compiled for DS9097U", shell_output("#{bin}/digitemp_DS9097U 2>&1", 255)
end
end
|
0x07CB/linuxbrew-core
|
Formula/gnu-typist.rb
|
class GnuTypist < Formula
desc "GNU typing tutor"
homepage "https://www.gnu.org/software/gtypist/"
url "https://ftp.gnu.org/gnu/gtypist/gtypist-2.9.5.tar.xz"
mirror "https://ftpmirror.gnu.org/gtypist/gtypist-2.9.5.tar.xz"
sha256 "c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
revision 2
bottle do
sha256 arm64_big_sur: "b241409e921daccc7d82bfd1641ba1b6fd43966d19458fc580d4245641306fe2"
sha256 big_sur: "74506e983cf7d74abcd8cfa4007d8429cdae7283a1b3cd3a3f0272d4380df024"
sha256 catalina: "2a824f3fad3871cbf43f15009c23563aa03872597f22e823f9e2551d35fe1e26"
sha256 mojave: "9f0fcdd42b9a041408b132882778db2eb479749a7169b82f2caf1f4fd486b599"
sha256 high_sierra: "72503afd4efafe7a8485ea22332819937008263976a6f5f5b42818565d59edbf"
sha256 sierra: "d32708d6e8a640101ac618ceac23be6b9d1a6a4caa127c5fd12a44b4e57c09e9"
sha256 x86_64_linux: "96f7d1fe80ea3c8e5a6687b0a2e7ce519d97b933cd42219cb9ef6837150ce8c5" # linuxbrew-core
end
depends_on "gettext"
# Use Apple's ncurses instead of ncursesw.
# TODO: use an IFDEF for apple and submit upstream
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/42c4b96/gnu-typist/2.9.5.patch"
sha256 "a408ecb8be3ffdc184fe1fa94c8c2a452f72b181ce9be4f72557c992508474db"
end
def install
# libiconv is not linked properly without this
ENV.append "LDFLAGS", "-liconv" if OS.mac?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-lispdir=#{elisp}"
system "make"
system "make", "install"
end
test do
session = fork do
exec bin/"gtypist", "-t", "-q", "-l", "DEMO_0", share/"gtypist/demo.typ"
end
sleep 2
Process.kill("TERM", session)
end
end
|
0x07CB/linuxbrew-core
|
Formula/bash-snippets.rb
|
class BashSnippets < Formula
desc "Collection of small bash scripts for heavy terminal users"
homepage "https://github.com/alexanderepstein/Bash-Snippets"
url "https://github.com/alexanderepstein/Bash-Snippets/archive/v1.23.0.tar.gz"
sha256 "59b784e714ba34a847b6a6844ae1703f46db6f0a804c3e5f2de994bbe8ebe146"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8e38f6d39c157dcf604f1ac774a16afe66472de96ebf612a7f409689a7074282"
sha256 cellar: :any_skip_relocation, big_sur: "c2a441dc6d5b21408f49f4869b00919354392682b3ef7eef2f908ab2f638dd8a"
sha256 cellar: :any_skip_relocation, catalina: "c2a441dc6d5b21408f49f4869b00919354392682b3ef7eef2f908ab2f638dd8a"
sha256 cellar: :any_skip_relocation, mojave: "c2a441dc6d5b21408f49f4869b00919354392682b3ef7eef2f908ab2f638dd8a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8e38f6d39c157dcf604f1ac774a16afe66472de96ebf612a7f409689a7074282" # linuxbrew-core
end
conflicts_with "cheat", because: "both install a `cheat` executable"
def install
system "./install.sh", "--prefix=#{prefix}", "all"
end
test do
output = shell_output("#{bin}/weather Paramus").lines.first.chomp
assert_equal "Weather report: Paramus", output
output = shell_output("#{bin}/qrify This is a test")
assert_match "ββββ βββββ ββ ββββ βββββ ββββ", output
end
end
|
0x07CB/linuxbrew-core
|
Formula/clip.rb
|
class Clip < Formula
desc "Create high-quality charts from the command-line"
homepage "https://clip-lang.org/"
url "https://github.com/asmuth/clip/archive/v0.7.tar.gz"
sha256 "f38f455cf3e9201614ac71d8a871e4ff94a6e4cf461fd5bf81bdf457ba2e6b3e"
license "Apache-2.0"
revision 1
bottle do
sha256 cellar: :any, arm64_big_sur: "20bb528940048dacd9f0eb67b3a1fe849e9e54d1c7e9a7c58da1fc9814beb1c8"
sha256 cellar: :any, big_sur: "cb33d312ff97b10b5761ceb105e3a5d63ab11c48db072c199108167cecf47854"
sha256 cellar: :any, catalina: "c6e0fc40838d76e9632e21e1a781603a1a75d584a3206300fe0a9f7272d9b702"
sha256 cellar: :any, mojave: "72f17c87e0c824cea89ba5fa383cf22d013751997a916a408eaa8408544292fb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "01ad1faf80c39957551fd0aa3204ffa2c0477183f8269b98a9dcda4d5ac3083c" # linuxbrew-core
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "fmt"
depends_on "freetype"
depends_on "fribidi"
depends_on "harfbuzz"
on_linux do
depends_on "gcc" # for C++17
end
fails_with gcc: "5"
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make", "install"
pkgshare.install "test"
end
test do
cp_r pkgshare/"test", testpath
system "#{bin}/clip", "--export", "chart.svg",
"test/examples/charts_basic_areachart.clp"
assert_predicate testpath/"chart.svg", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/speexdsp.rb
|
class Speexdsp < Formula
desc "Speex audio processing library"
homepage "https://github.com/xiph/speexdsp"
url "https://github.com/xiph/speexdsp/archive/SpeexDSP-1.2.0.tar.gz"
sha256 "d7032f607e8913c019b190c2bccc36ea73fc36718ee38b5cdfc4e4c0a04ce9a4"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "ae13ab78f1010493141f38f2671a7908545f7144dc266cef4cf78512944f3695"
sha256 cellar: :any, big_sur: "6b26ef894b7ecee4b8f4fdbb4415810c25e73cd1ca4c5d4a5040d76b1f7d1d0d"
sha256 cellar: :any, catalina: "84c7225a9ee78c41bd858d8b52d01a12db6ba358826e45bdc30e42d9e802425c"
sha256 cellar: :any, mojave: "0d61efd09b255e0856833e51bdbdaabcaaa325824a71ec326da61ffd8e200675"
sha256 cellar: :any, high_sierra: "7473fce6835c55f0547e60ff32b9ee1d16c2d3a490f618310dd276e34126bd1f"
sha256 cellar: :any, sierra: "b96155ea177b81d37a86a9b57dc38643680bbf6b22a6a2b826734f3cb2b5aa93"
sha256 cellar: :any, x86_64_linux: "28d09d987f4bb098afe2bfb9865e9646f04d0a746f0606c0b7459ae857285929" # linuxbrew-core
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
end
|
0x07CB/linuxbrew-core
|
Formula/nodeenv.rb
|
<gh_stars>100-1000
class Nodeenv < Formula
desc "Node.js virtual environment builder"
homepage "https://github.com/ekalinin/nodeenv"
url "https://github.com/ekalinin/nodeenv/archive/1.6.0.tar.gz"
sha256 "87b04b0832d38bd825e004e7c8ed82d75524efaa6b8a72e3a55088d93e4e17f7"
license "BSD-3-Clause"
def install
bin.install "nodeenv.py" => "nodeenv"
end
test do
system bin/"nodeenv", "--node=16.0.0", "--prebuilt", "env-16.0.0-prebuilt"
# Dropping into the virtualenv itself requires sourcing activate which
# isn't easy to deal with. This ensures current Node installed & functional.
ENV.prepend_path "PATH", testpath/"env-16.0.0-prebuilt/bin"
(testpath/"test.js").write "console.log('hello');"
assert_match "hello", shell_output("node test.js")
assert_match "v16.0.0", shell_output("node -v")
end
end
|
0x07CB/linuxbrew-core
|
Formula/libtiff.rb
|
<reponame>0x07CB/linuxbrew-core
class Libtiff < Formula
desc "TIFF library and utilities"
homepage "https://libtiff.gitlab.io/libtiff/"
url "https://download.osgeo.org/libtiff/tiff-4.3.0.tar.gz"
mirror "https://fossies.org/linux/misc/tiff-4.3.0.tar.gz"
sha256 "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8"
license "libtiff"
livecheck do
url "https://download.osgeo.org/libtiff/"
regex(/href=.*?tiff[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "bd25355f2efb850a0e70c9ae208f0cd16caa0bfcaba8931d9ea9d374c5cf050a"
sha256 cellar: :any, big_sur: "09f08e1168780c12c8f1526038eb4f4692624c85a9e78099b8ae2c58e39f5289"
sha256 cellar: :any, catalina: "e413c1170e33242eb941683d14ae51de594a013b8c6e5151f53b3352358b26fe"
sha256 cellar: :any, mojave: "06248bbf04ff5180541a90d60bae68246b5f1665d42909be471fdc9a6781a718"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e213d552390bfd246a1a937dd550f5326cfc379d36654343cbd86cc5b7ac79e7" # linuxbrew-core
end
depends_on "jpeg"
uses_from_macos "zlib"
def install
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--disable-lzma
--disable-webp
--disable-zstd
--with-jpeg-include-dir=#{Formula["jpeg"].opt_include}
--with-jpeg-lib-dir=#{Formula["jpeg"].opt_lib}
--without-x
]
system "./configure", *args
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#include <tiffio.h>
int main(int argc, char* argv[])
{
TIFF *out = TIFFOpen(argv[1], "w");
TIFFSetField(out, TIFFTAG_IMAGEWIDTH, (uint32) 10);
TIFFClose(out);
return 0;
}
EOS
system ENV.cc, "test.c", "-L#{lib}", "-ltiff", "-o", "test"
system "./test", "test.tif"
assert_match(/ImageWidth.*10/, shell_output("#{bin}/tiffdump test.tif"))
end
end
|
0x07CB/linuxbrew-core
|
Formula/conan.rb
|
<gh_stars>100-1000
class Conan < Formula
include Language::Python::Virtualenv
desc "Distributed, open source, package manager for C/C++"
homepage "https://conan.io"
url "https://files.pythonhosted.org/packages/d8/a9/c6843955fa23556be096173f88e62f6c3bf3c3b85e44e56e748367d5adca/conan-1.41.0.tar.gz"
sha256 "8323810fe9252e98f3e0194f149e3c814ece7d98553b410b1ce52d562b66f109"
license "MIT"
head "https://github.com/conan-io/conan.git", branch: "develop"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7c441efc5cd671ccd5a55f37e628400c9b88597499f4ee0900d4ecd75770a2a6"
sha256 cellar: :any_skip_relocation, big_sur: "c4725c80cec18ba21a1d791f5ca731aa08d5d9fc955a6386d144d2b2ba97c463"
sha256 cellar: :any_skip_relocation, catalina: "6009ad5ecd4465e54178b861c22a76aac5a480638680261e1b63f02e4fdb78b8"
sha256 cellar: :any_skip_relocation, mojave: "d2b3f2ca0691c206ffae6ac57a7c009d55030e0a489d24245019a550754f11cc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "26a1fc797544e64eb8d9674f8259a7d51836f7c41f8833c21e3ebfea9661c4dc" # linuxbrew-core
end
depends_on "pkg-config" => :build
depends_on "cmake" => :test
depends_on "libffi"
depends_on "openssl@1.1"
depends_on "python@3.10"
depends_on "six"
resource "bottle" do
url "https://files.pythonhosted.org/packages/ea/80/3d2dca1562ffa1929017c74635b4cb3645a352588de89e90d0bb53af3317/bottle-0.12.19.tar.gz"
sha256 "a9d73ffcbc6a1345ca2d7949638db46349f5b2b77dac65d6494d45c23628da2c"
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 "colorama" do
url "https://files.pythonhosted.org/packages/1f/bb/5d3246097ab77fa083a61bd8d3d527b7ae063c7d8e8671b1cf8c4ec10cbe/colorama-0.4.4.tar.gz"
sha256 "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"
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 "idna" do
url "https://files.pythonhosted.org/packages/cb/38/4c4d00ddfa48abe616d7e572e02a04273603db446975ab46bbcd36552005/idna-3.2.tar.gz"
sha256 "467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
end
resource "Jinja2" do
url "https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7/Jinja2-2.11.3.tar.gz"
sha256 "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6"
end
resource "MarkupSafe" do
url "https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz"
sha256 "594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"
end
resource "node-semver" do
url "https://files.pythonhosted.org/packages/f1/4e/1d9a619dcfd9f42d0e874a5b47efa0923e84829886e6a47b45328a1f32f1/node-semver-0.6.1.tar.gz"
sha256 "4016f7c1071b0493f18db69ea02d3763e98a633606d7c7beca811e53b5ac66b7"
end
resource "patch-ng" do
url "https://files.pythonhosted.org/packages/c1/b2/ad3cd464101435fdf642d20e0e5e782b4edaef1affdf2adfc5c75660225b/patch-ng-1.17.4.tar.gz"
sha256 "627abc5bd723c8b481e96849b9734b10065426224d4d22cd44137004ac0d4ace"
end
resource "pluginbase" do
url "https://files.pythonhosted.org/packages/f3/07/753451e80d2b0bf3bceec1162e8d23638ac3cb18d1c38ad340c586e90b42/pluginbase-1.0.1.tar.gz"
sha256 "ff6c33a98fce232e9c73841d787a643de574937069f0d18147028d70d7dee287"
end
resource "Pygments" do
url "https://files.pythonhosted.org/packages/b7/b3/5cba26637fe43500d4568d0ee7b7362de1fb29c0e158d50b4b69e9a40422/Pygments-2.10.0.tar.gz"
sha256 "f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6"
end
resource "PyJWT" do
url "https://files.pythonhosted.org/packages/2f/38/ff37a24c0243c5f45f5798bd120c0f873eeed073994133c084e1cf13b95c/PyJWT-1.7.1.tar.gz"
sha256 "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96"
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 "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
end
test do
system bin/"conan", "search", "zlib", "--remote", "conancenter"
system bin/"conan", "install", "zlib/1.2.11@", "--build"
assert_predicate testpath/".conan/data/zlib/1.2.11", :exist?
end
end
|
0x07CB/linuxbrew-core
|
Formula/hapi-fhir-cli.rb
|
class HapiFhirCli < Formula
desc "Command-line interface for the HAPI FHIR library"
homepage "https://hapifhir.io/"
url "https://github.com/hapifhir/hapi-fhir/releases/download/v5.4.0/hapi-fhir-5.4.0-cli.zip"
sha256 "142022d1d5b1d849e9a894bac0a8269bfccf3be4b1364b3eaeb685c588966995"
license "Apache-2.0"
livecheck do
url :stable
strategy :github_latest
end
depends_on "openjdk"
resource "test_resource" do
url "https://github.com/hapifhir/hapi-fhir/raw/v5.4.0/hapi-fhir-structures-dstu3/src/test/resources/specimen-example.json"
sha256 "4eacf47eccec800ffd2ca23b704c70d71bc840aeb755912ffb8596562a0a0f5e"
end
def install
inreplace "hapi-fhir-cli", /SCRIPTDIR=(.*)/, "SCRIPTDIR=#{libexec}"
libexec.install "hapi-fhir-cli.jar"
bin.install "hapi-fhir-cli"
bin.env_script_all_files libexec/"bin", JAVA_HOME: Formula["openjdk"].opt_prefix
end
test do
testpath.install resource("test_resource")
system bin/"hapi-fhir-cli", "validate", "--file", "specimen-example.json",
"--fhir-version", "dstu3"
end
end
|
0x07CB/linuxbrew-core
|
Formula/hubflow.rb
|
<gh_stars>100-1000
# NOTE: Pull from git tag to get submodules
class Hubflow < Formula
desc "GitFlow for GitHub"
homepage "https://datasift.github.io/gitflow/"
url "https://github.com/datasift/gitflow.git",
tag: "1.5.3",
revision: "ed032438d2100b826d2fd5c8281b5e07d88ab9eb"
license "BSD-2-Clause"
head "https://github.com/datasift/gitflow.git"
def install
ENV["INSTALL_INTO"] = libexec
system "./install.sh", "install"
bin.write_exec_script libexec/"git-hf"
end
test do
system bin/"git-hf", "version"
end
end
|
0x07CB/linuxbrew-core
|
Formula/hopenpgp-tools.rb
|
class HopenpgpTools < Formula
desc "Command-line tools for OpenPGP-related operations"
homepage "https://hackage.haskell.org/package/hopenpgp-tools"
url "https://hackage.haskell.org/package/hopenpgp-tools-0.23.6/hopenpgp-tools-0.23.6.tar.gz"
sha256 "3df2f26a8e1c2be92c54b1b347474464a23d213a7982dd4afb8c88c6b6325042"
license "AGPL-3.0-or-later"
head "https://salsa.debian.org/clint/hOpenPGP.git"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "17ba6c71d6b2c1841bb4ea381a128e8a9cb590a751214a15b646602eab496e10"
sha256 cellar: :any_skip_relocation, big_sur: "b6bbc4e108cb054f5723c0196bfffbef88ccd30242f01ea223525ed30efd83a9"
sha256 cellar: :any_skip_relocation, catalina: "11ee2dc0b5f625cef483385dea031640b8762367281f7382989d999ac4719655"
sha256 cellar: :any_skip_relocation, mojave: "0bd4820b9761e5e89d6751ade75a1d2ff6d7b192b71189294a78fe7f8215d95b"
end
depends_on "cabal-install" => :build
depends_on "ghc" => :build
depends_on "pkg-config" => :build
depends_on "nettle"
uses_from_macos "zlib"
resource "homebrew-key.gpg" do
url "https://gist.githubusercontent.com/zmwangx/be307671d11cd78985bd3a96182f15ea/raw/c7e803814efc4ca96cc9a56632aa542ea4ccf5b3/homebrew-key.gpg"
sha256 "994744ca074a3662cff1d414e4b8fb3985d82f10cafcaadf1f8342f71f36b233"
end
def install
system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args
end
test do
resource("homebrew-key.gpg").stage do
linter_output = shell_output("#{bin}/hokey lint <homebrew-key.gpg 2>/dev/null")
assert_match "Homebrew <<EMAIL>>", linter_output
end
end
end
|
0x07CB/linuxbrew-core
|
Formula/bandit.rb
|
class Bandit < Formula
include Language::Python::Virtualenv
desc "Security-oriented static analyser for Python code"
homepage "https://github.com/PyCQA/bandit"
url "https://files.pythonhosted.org/packages/6c/a1/14b70b67ea9c69e863dd65386bbc948ae34a502512d6f36e2a5a9fd5513b/bandit-1.7.0.tar.gz"
sha256 "8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608"
license "Apache-2.0"
revision 1
head "https://github.com/PyCQA/bandit.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9a51a2892fce736e59144b7188c5767233040266a998a09cd568afd82049e1ea"
sha256 cellar: :any_skip_relocation, big_sur: "1b1eacd9dcb2c47aa44fb744a55eb635cd213a14f34a841585dc0c46cd5d76e7"
sha256 cellar: :any_skip_relocation, catalina: "1b1eacd9dcb2c47aa44fb744a55eb635cd213a14f34a841585dc0c46cd5d76e7"
sha256 cellar: :any_skip_relocation, mojave: "1b1eacd9dcb2c47aa44fb744a55eb635cd213a14f34a841585dc0c46cd5d76e7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d8ec57d1f780fb44aa99e16df2f884d957eab201c5bd6cefa719c04c114527bb" # linuxbrew-core
end
depends_on "python@3.10"
resource "gitdb" do
url "https://files.pythonhosted.org/packages/d1/05/eaf2ac564344030d8b3ce870b116d7bb559020163e80d9aa4a3d75f3e820/gitdb-4.0.5.tar.gz"
sha256 "c9e1f2d0db7ddb9a704c2a0217be31214e91a4fe1dea1efad19ae42ba0c285c9"
end
resource "GitPython" do
url "https://files.pythonhosted.org/packages/ec/4d/e6553122c85ec7c4c3e702142cc0f5ed02e5cf1b4d7ecea86a07e45725a0/GitPython-3.1.12.tar.gz"
sha256 "42dbefd8d9e2576c496ed0059f3103dcef7125b9ce16f9d5f9c834aed44a1dac"
end
resource "pbr" do
url "https://files.pythonhosted.org/packages/65/e2/8cb5e718a3a63e8c22677fde5e3d8d18d12a551a1bbd4557217e38a97ad0/pbr-5.5.1.tar.gz"
sha256 "5fad80b613c402d5b7df7bd84812548b2a61e9977387a80a5fc5c396492b13c9"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz"
sha256 "b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"
end
resource "six" do
url "https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz"
sha256 "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"
end
resource "smmap" do
url "https://files.pythonhosted.org/packages/75/fb/2f594e5364f9c986b2c89eb662fc6067292cb3df2b88ae31c939b9138bb9/smmap-3.0.4.tar.gz"
sha256 "9c98bbd1f9786d22f14b3d4126894d56befb835ec90cef151af566c7e19b5d24"
end
resource "stevedore" do
url "https://files.pythonhosted.org/packages/95/bc/dc386a920942dbdfe480c8a4d953ff77ed3dec99ce736634b6ec4f2d97c1/stevedore-3.3.0.tar.gz"
sha256 "3a5bbd0652bf552748871eaa73a4a8dc2899786bc497a2aa1fcb4dcdb0debeee"
end
def install
virtualenv_install_with_resources
end
test do
(testpath/"test.py").write "assert True\n"
output = JSON.parse shell_output("#{bin}/bandit -q -f json test.py", 1)
assert_equal output["results"][0]["test_id"], "B101"
end
end
|
0x07CB/linuxbrew-core
|
Formula/slackcat.rb
|
class Slackcat < Formula
desc "Command-line utility for posting snippets to Slack"
homepage "https://github.com/vektorlab/slackcat"
url "https://github.com/bcicen/slackcat/archive/refs/tags/1.7.3.tar.gz"
sha256 "2e3ed7ad5ab3075a8e80a6a0b08a8c52bb8e6e39f6ab03597f456278bfa7768b"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f765a9df06043f889342eb317e72648bc4904bea55d5339b69399b3a8b4ec3ff"
sha256 cellar: :any_skip_relocation, big_sur: "176aa3f2c1f088a0dce065034c8a6d381830679db2425c4b4d690823e0b1e022"
sha256 cellar: :any_skip_relocation, catalina: "344233ded56abb6b28a5b4cde44cc58713a63e7a2b49a84b8c47c0ebc9d2d3f6"
sha256 cellar: :any_skip_relocation, mojave: "0aa9e136f18f6937cf156f00b850c37361a2f4616ea52783e471ded9de82ee7f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "96518aa5c2d2ddc1c62a1ee163748bc0909be294eebc290156a6ca1908d6216a" # linuxbrew-core
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
end
test do
assert_match version.to_s, shell_output("#{bin}/slackcat -v")
end
end
|
0x07CB/linuxbrew-core
|
Formula/tgenv.rb
|
<filename>Formula/tgenv.rb
class Tgenv < Formula
desc "Terragrunt version manager inspired by tfenv"
homepage "https://github.com/cunymatthieu/tgenv"
url "https://github.com/cunymatthieu/tgenv/archive/v0.0.3.tar.gz"
sha256 "e59c4cc9dfccb7d52b9ff714b726ceee694cfa389474cbe01a65c5f9bc13eca4"
license "MIT"
head "https://github.com/cunymatthieu/tgenv.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
uses_from_macos "unzip"
conflicts_with "terragrunt", because: "tgenv symlinks terragrunt binaries"
def install
prefix.install %w[bin libexec]
end
test do
assert_match "0.26.7", shell_output("#{bin}/tgenv list-remote")
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.