|
1 | 1 | class Deadfinder < Formula |
2 | 2 | desc "Finds broken links" |
3 | | - homepage "https://rubygems.org/gems/deadfinder" |
4 | | - url "https://github.com/hahwul/deadfinder/archive/refs/tags/1.10.0.tar.gz" |
5 | | - sha256 "8309c720ffa76c6588c5bc8f8dc169b6633059a9d8d68cb75cc8488667d81c01" |
| 3 | + homepage "https://github.com/hahwul/deadfinder" |
| 4 | + url "https://github.com/hahwul/deadfinder/archive/refs/tags/2.0.2.tar.gz" |
| 5 | + sha256 "13d3d4b0392d6b1548071d44dc03a14e790ea161781d5a57a196577316a97543" |
6 | 6 | license "MIT" |
7 | 7 | head "https://github.com/hahwul/deadfinder.git", branch: "main" |
8 | 8 |
|
9 | 9 | bottle do |
10 | | - rebuild 1 |
11 | | - sha256 cellar: :any, arm64_tahoe: "550ef54a29d20b3e71cd5a2b9d557919152369dac8a4d2dc962fe8a044d0898e" |
12 | | - sha256 cellar: :any, arm64_sequoia: "337cb4234cb6d861f02862fd393372b18405aa904c3589b9e6161c017551b4b8" |
13 | | - sha256 cellar: :any, arm64_sonoma: "92fe261089fb4925d0229e07e85a3d70cbe1fb25e57e91da6bbd67dc2cb7bc33" |
14 | | - sha256 cellar: :any, sonoma: "1ee62850abad8485e5327ec0579d30f24fb884e773eef673dab7b36c01564f30" |
15 | | - sha256 cellar: :any_skip_relocation, arm64_linux: "1c3a23a3d8a2e3b19b636939a182bd3da1a01d065674637d8589cbda09cc2cfe" |
16 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "d68f0537ef47c062571f77b1a5b6e7ca55b0d318ca5ad7d3f303c51fc608a5af" |
| 10 | + sha256 cellar: :any, arm64_tahoe: "3cd70822a8e851cba61fc82b404a3c288027c5e1428085419572da755190f3e7" |
| 11 | + sha256 cellar: :any, arm64_sequoia: "da399f4212adcd55edf32b957d467ba0ca4074b5b152b98761019110867b2807" |
| 12 | + sha256 cellar: :any, arm64_sonoma: "56b8210526219201d86964a11f215964e61bb78b21ad8663931f052c670f2d96" |
| 13 | + sha256 cellar: :any, sonoma: "25aae4c594c1a3a66a7f3c89df5958f044e61b09eb66989b135eb3607178314a" |
| 14 | + sha256 cellar: :any_skip_relocation, arm64_linux: "3c0b06102fec2f436837c35f2990b04ad9bb64dea9ba7e51a3bb6cbdb835b5ce" |
| 15 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "7b3b0164aa904fda4b1cb754c6cd4cb450fd7ff3d0004f0f6ad5134f845c2666" |
17 | 16 | end |
18 | 17 |
|
| 18 | + depends_on "cmake" => :build |
| 19 | + depends_on "crystal" => :build |
19 | 20 | depends_on "pkgconf" => :build |
20 | | - depends_on "ruby" |
| 21 | + depends_on "bdw-gc" |
| 22 | + depends_on "libevent" |
| 23 | + depends_on "libyaml" |
| 24 | + depends_on "openssl@3" |
| 25 | + depends_on "pcre2" |
21 | 26 |
|
22 | | - uses_from_macos "libffi" |
23 | 27 | uses_from_macos "libxml2" |
24 | | - uses_from_macos "libxslt" |
25 | 28 |
|
26 | 29 | on_linux do |
27 | 30 | depends_on "zlib-ng-compat" |
28 | 31 | end |
29 | 32 |
|
30 | 33 | def install |
31 | | - ENV["BUNDLE_FORCE_RUBY_PLATFORM"] = "1" |
32 | | - ENV["BUNDLE_VERSION"] = "system" # Avoid installing Bundler into the keg |
33 | | - ENV["BUNDLE_WITHOUT"] = "development test" |
34 | | - ENV["GEM_HOME"] = libexec |
35 | | - ENV["NOKOGIRI_USE_SYSTEM_LIBRARIES"] = "1" |
| 34 | + system "shards", "build", "--production", "--release", "--no-debug" |
| 35 | + bin.install "bin/deadfinder" |
36 | 36 |
|
37 | | - system "bundle", "install" |
38 | | - system "gem", "build", "#{name}.gemspec" |
39 | | - system "gem", "install", "#{name}-#{version}.gem" |
40 | | - |
41 | | - bin.install libexec/"bin/#{name}" |
42 | | - bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"]) |
43 | | - |
44 | | - # Remove mkmf.log files to avoid shims references |
45 | | - rm Dir["#{libexec}/extensions/*/*/*/mkmf.log"] |
| 37 | + generate_completions_from_executable(bin/"deadfinder", "completion") |
46 | 38 | end |
47 | 39 |
|
48 | 40 | test do |
|
0 commit comments