1
1
class Pbc < Formula
2
2
desc "Pairing-based cryptography"
3
3
homepage "https://crypto.stanford.edu/pbc/"
4
+ url "https://crypto.stanford.edu/pbc/files/pbc-1.0.0.tar.gz"
5
+ sha256 "18275a367283077bafe35f443200499e3b19c4a3754953da2a1b2f0d6b5922dc"
4
6
license "LGPL-3.0-only"
5
7
6
- stable do
7
- url "https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz"
8
- sha256 "772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2"
9
-
10
- # Fix -flat_namespace being used on Big Sur and later.
11
- patch do
12
- url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
13
- sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
14
- end
15
- end
16
-
17
8
livecheck do
18
9
url "https://crypto.stanford.edu/pbc/download.html"
19
10
regex ( /href=.*?pbc[._-]v?(\d +(?:\. \d +)+)\. t/i )
@@ -22,21 +13,13 @@ class Pbc < Formula
22
13
no_autobump! because : :requires_manual_review
23
14
24
15
bottle do
25
- rebuild 1
26
- sha256 cellar : :any , arm64_sequoia : "566ef59675030399f76d4f7c067ca04cecaa3ebb4d9102aa480dbe39c24ba487"
27
- sha256 cellar : :any , arm64_sonoma : "4e89883c3b22eccfdf0904017650418af4c2f50bc9ae41a535235ac1d235f27f"
28
- sha256 cellar : :any , arm64_ventura : "e22db03b394884a0f34163c74d87b6c33210aefd98cc751d2ab61108c667fdf0"
29
- sha256 cellar : :any , arm64_monterey : "2397daa1cad88180149983c0f6557b6a48fa2124c24ac78a8d95dd0af9cac8a0"
30
- sha256 cellar : :any , arm64_big_sur : "ac722f3534f9cf0679f2c999353a524d822d4068d8f9877a5967fe6fbcef9f04"
31
- sha256 cellar : :any , sonoma : "3cdb93d8e2e6876981b58d28a7e4b67e299db718ab0a9ffef12d53164d2a7a9e"
32
- sha256 cellar : :any , ventura : "903a04400b010de2e1c4311881dfaa8cfc9f04ee40a83f369a19fd334e6b4446"
33
- sha256 cellar : :any , monterey : "dfe0e9676dd479513ec0cf524d6a225229de96aa058492a6319cdd914dd3509f"
34
- sha256 cellar : :any , big_sur : "c14c0514c725c35d0dffbc7dc410ddc5be033e061ffc66d9c039033b0ca1e6e4"
35
- sha256 cellar : :any , catalina : "83d464696ab79f463ec2dc930cbd9c3ecbdedde5c578e70a4994b2cd8fec1f6d"
36
- sha256 cellar : :any , mojave : "85855bfe6dfe9a4fc0b0359f74aa7ea587283c1c724a6c4aee77972ecfc1d390"
37
- sha256 cellar : :any , high_sierra : "adc712fd4cc68990b669922be5b8ab15e4d499176c09facb5b129c6d7c847262"
38
- sha256 cellar : :any_skip_relocation , arm64_linux : "85ffa4238451ccfe2c90072b100d48a53d352e6209613bdee067f2347d088d47"
39
- sha256 cellar : :any_skip_relocation , x86_64_linux : "cefb9bc4223d88aa32583abbee1bf2af89e36760b8cabbe4af2e11819f993eb1"
16
+ sha256 cellar : :any , arm64_sequoia : "540e6c2c25f64b9f01683b78101895359c1e317f0c040e1d6dcae389414faff7"
17
+ sha256 cellar : :any , arm64_sonoma : "5c83b34f16294a88154eb2ca05a38730aafd3426dc5680ce92426e6377ee1f28"
18
+ sha256 cellar : :any , arm64_ventura : "b45ad43cbfe26bf2a5afd507c6f9dba996b7069635d04321466eec6805f64a64"
19
+ sha256 cellar : :any , sonoma : "87458237aa1d5e59deff3fde34155d58eba87df565e7f6c924f81171a6a634be"
20
+ sha256 cellar : :any , ventura : "339f7b3535980d063d87c42b9a22fc2b6ca882857347358f207bf6d9b8cd768e"
21
+ sha256 cellar : :any_skip_relocation , arm64_linux : "2bae3b376382982b1575a9f8b67b1cc476bedca4029a88cdb42f3407c8710f80"
22
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "77d9e6a22ef1c9a1253703a33e6c734aa3c223a031cf17cec702bc1f9c8d5834"
40
23
end
41
24
42
25
head do
@@ -53,6 +36,9 @@ class Pbc < Formula
53
36
uses_from_macos "flex" => :build
54
37
55
38
def install
39
+ # fix flex yywrap function detection issue
40
+ ENV [ "ac_cv_search_yywrap" ] = "yes"
41
+
56
42
system "./setup" if build . head?
57
43
system "./configure" , *std_configure_args
58
44
system "make" , "install"
0 commit comments