Skip to content

Commit cb57f0e

Browse files
botantonychenrui333
authored andcommitted
pbc 1.0.0
Signed-off-by: botantony <[email protected]> pbc: add yywrap detection patch Signed-off-by: Rui Chen <[email protected]>
1 parent c06df56 commit cb57f0e

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

Formula/p/pbc.rb

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
class Pbc < Formula
22
desc "Pairing-based cryptography"
33
homepage "https://crypto.stanford.edu/pbc/"
4+
url "https://crypto.stanford.edu/pbc/files/pbc-1.0.0.tar.gz"
5+
sha256 "18275a367283077bafe35f443200499e3b19c4a3754953da2a1b2f0d6b5922dc"
46
license "LGPL-3.0-only"
57

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-
178
livecheck do
189
url "https://crypto.stanford.edu/pbc/download.html"
1910
regex(/href=.*?pbc[._-]v?(\d+(?:\.\d+)+)\.t/i)
@@ -53,6 +44,9 @@ class Pbc < Formula
5344
uses_from_macos "flex" => :build
5445

5546
def install
47+
# fix flex yywrap function detection issue
48+
ENV["ac_cv_search_yywrap"] = "yes"
49+
5650
system "./setup" if build.head?
5751
system "./configure", *std_configure_args
5852
system "make", "install"

0 commit comments

Comments
 (0)