Skip to content

Commit 4641b3a

Browse files
authored
Merge pull request #170124 from mrpippy/yubico-no-pcsc
yubico-piv-tool: Remove pcsc-lite dependency.
2 parents 97d144b + 57e1c85 commit 4641b3a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Formula/y/yubico-piv-tool.rb

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ class YubicoPivTool < Formula
44
url "https://developers.yubico.com/yubico-piv-tool/Releases/yubico-piv-tool-2.5.1.tar.gz"
55
sha256 "4262df01eec5c5ef942be9694db5bceac79f457e94879298a4934f6b5e44ff5f"
66
license "BSD-2-Clause"
7+
revision 1
78

89
livecheck do
910
url "https://developers.yubico.com/yubico-piv-tool/Releases/"
1011
regex(/href=.*?yubico-piv-tool[._-]v?(\d+(?:\.\d+)+)\.t/i)
1112
end
1213

1314
bottle do
14-
sha256 cellar: :any, arm64_sonoma: "79556da52885390c09319a369dc4d4ab1d5662bfe3d5dd69d0e314b5893723ff"
15-
sha256 cellar: :any, arm64_ventura: "f03d008f58c0dfaf577531c598379bd32688b14de9d7a4f5f771929a7b2fa877"
16-
sha256 cellar: :any, arm64_monterey: "19e9067008fb1b9578921a91b9f07bc1eecf768eac97d7fc60b7b83b70e4545a"
17-
sha256 cellar: :any, sonoma: "6a25e67d9ccf17465739ffb9ec01700e4a0823a90df385f243cfffaea2049c63"
18-
sha256 cellar: :any, ventura: "525bca1b009a00e0b8176feb9528977e011b09ed39c7a39bf076faf15bfc3369"
19-
sha256 cellar: :any, monterey: "c7bdcf7c7fa235ed27a2d773ff506d688f40f7561cb294fdd028384be6dce211"
20-
sha256 cellar: :any_skip_relocation, x86_64_linux: "286f4a3d11d67b84a27f441ae8a3f796babec3a7b723f0a19caeed3f82889fe7"
15+
sha256 cellar: :any, arm64_sonoma: "0741ff97b1982dc767cb2671d2172d92b4c2746a6e7bcdec0504c322aa40a540"
16+
sha256 cellar: :any, arm64_ventura: "a1c5640d17accf813eee3ea7d02e7a2ee067b51c5fa6e26e875a8e7171bcb27e"
17+
sha256 cellar: :any, arm64_monterey: "fdb1e0f1623b924cda3e22e577df0bface7afe90d86e2dc1fb8e9def828b9386"
18+
sha256 cellar: :any, sonoma: "faeec9fc77e45757bfb1b2be0ab2fad47b2d898ffde53849489e78b40efebaa2"
19+
sha256 cellar: :any, ventura: "9d608c70e20b1c2c9bd1483bde5c6446eaf55d2f4a5ec1a860924a6c934c822c"
20+
sha256 cellar: :any, monterey: "da71b189639d6fb532a551c830554ab7db496da1c5b47fa98a6b9e47ad2677eb"
21+
sha256 cellar: :any_skip_relocation, x86_64_linux: "16f33bbd4c6072f813a5d12881cba7bf698e10f63b2f6b76ec0e8d07d35847b7"
2122
end
2223

2324
depends_on "check" => :build
@@ -28,11 +29,13 @@ class YubicoPivTool < Formula
2829
depends_on "pkg-config" => :build
2930
depends_on "check"
3031
depends_on "openssl@3"
31-
depends_on "pcsc-lite"
32+
uses_from_macos "pcsc-lite"
3233

3334
def install
3435
mkdir "build" do
35-
system "cmake", "..", *std_cmake_args, "-DCMAKE_C_FLAGS=-I#{Formula["pcsc-lite"].opt_include}/PCSC"
36+
args = []
37+
args << "-DCMAKE_C_FLAGS=-I#{Formula["pcsc-lite"].opt_include}/PCSC" unless OS.mac?
38+
system "cmake", "..", *std_cmake_args, *args
3639
system "make", "install"
3740
end
3841
end

0 commit comments

Comments
 (0)