|
1 | 1 | class Dprint < Formula |
2 | 2 | desc "Pluggable and configurable code formatting platform written in Rust" |
3 | 3 | homepage "https://dprint.dev/" |
4 | | - url "https://github.com/dprint/dprint/archive/refs/tags/0.50.0.tar.gz" |
5 | | - sha256 "28a9538c293a1cbe2af8241d687c44309dd1aa1c514c6a937ef3c25699dce4ea" |
| 4 | + url "https://github.com/dprint/dprint/archive/refs/tags/0.50.1.tar.gz" |
| 5 | + sha256 "85197a9469fe479fc278e77e87ede6eeb55b7d42d0a530e8b828f3ab9b213358" |
6 | 6 | license "MIT" |
7 | 7 | head "https://github.com/dprint/dprint.git", branch: "main" |
8 | 8 |
|
9 | 9 | bottle do |
10 | | - sha256 cellar: :any_skip_relocation, arm64_sequoia: "7893a7360baa4540a8f29c450d0670449db12cd9d857e7ca9854631668ad30d0" |
11 | | - sha256 cellar: :any_skip_relocation, arm64_sonoma: "703e06bef2c9c9d0fb74d03bd00a303398d4001080653101a8bd4f72547c7d31" |
12 | | - sha256 cellar: :any_skip_relocation, arm64_ventura: "a59299e27deee4819d4d47cecdbf93cc9d0412d6ff34ce645260fc232ff1a439" |
13 | | - sha256 cellar: :any_skip_relocation, sonoma: "99b08795bea3987a248af08fadd243fff4f35eea291069c15224b0e34b876f32" |
14 | | - sha256 cellar: :any_skip_relocation, ventura: "ffe2efb94cdaff94ee5833ea56cea07eee8821227d92e6df7f4a131b2d64ae87" |
15 | | - sha256 cellar: :any_skip_relocation, arm64_linux: "1e215fd8b93370de515391208e0294bc6da83308d9b08f7631fb1df8e61319ff" |
16 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "80f9512b0ba9365009f00e66fd0dacd276afa2a8ffbd265a050b8e7098d2aa83" |
| 10 | + sha256 cellar: :any_skip_relocation, arm64_sequoia: "94f0c63c279e6557b34abaa5a3daf13ea74a4cc8ad12589eab0b3093f27b7fb9" |
| 11 | + sha256 cellar: :any_skip_relocation, arm64_sonoma: "5c743935d64069338d522f7b6d6a75f6b46f9e2cd9f8abb8dafc6f404a66ac51" |
| 12 | + sha256 cellar: :any_skip_relocation, arm64_ventura: "1e37f2baf1a456129bbf18c038aa5955ea13b936fc53464c953d42c0296fd290" |
| 13 | + sha256 cellar: :any_skip_relocation, sonoma: "4f4c59f4c7cbc9f3f96b7d6673cef9cfa954b19762b6ad4e804cf70ab114f17f" |
| 14 | + sha256 cellar: :any_skip_relocation, ventura: "d6f12a4a3dbfc3f65320207500aae56e03c7365206ce800b45d2b643ea8069bf" |
| 15 | + sha256 cellar: :any_skip_relocation, arm64_linux: "e5f24e032a52f6ddfb0ce867d0c16f702b31eac5cc22a607c1fdae53999d8698" |
| 16 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "97407733307f31f970755ee15f12ca334e32287e5d0350d900fab3e6276de496" |
17 | 17 | end |
18 | 18 |
|
| 19 | + depends_on "pkgconf" => :build |
19 | 20 | depends_on "rust" => :build |
| 21 | + depends_on "xz" # required for lzma support |
| 22 | + |
| 23 | + # update deps, upstream pr ref, https://github.com/dprint/dprint/pull/1003 |
| 24 | + patch do |
| 25 | + url "https://github.com/dprint/dprint/commit/bb6ddc6034f73adb188fb2c40aa34d0c6a7ec6de.patch?full_index=1" |
| 26 | + sha256 "ea54bc0c12dbd3057a0c95d4c922fd35459f338112c14eb8dc4fe96eb742a733" |
| 27 | + end |
20 | 28 |
|
21 | 29 | def install |
22 | | - system "cargo", "install", *std_cargo_args(path: "crates/dprint") |
| 30 | + ENV.append "RUSTFLAGS", "-C link-arg=-Wl,-undefined,dynamic_lookup" if OS.mac? |
23 | 31 |
|
| 32 | + system "cargo", "install", *std_cargo_args(path: "crates/dprint") |
24 | 33 | generate_completions_from_executable(bin/"dprint", "completions") |
25 | 34 | end |
26 | 35 |
|
|
0 commit comments