Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpinyin 2.8.1 #125414

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Formula/libpinyin.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Libpinyin < Formula
desc "Library to deal with pinyin"
homepage "https://github.com/libpinyin/libpinyin"
url "https://github.com/libpinyin/libpinyin/archive/2.6.2.tar.gz"
sha256 "73f428a1c76a44a9ff666ae3c71b9ce4d96d07bc5b5af8081a85ef66a0383777"
url "https://github.com/libpinyin/libpinyin/archive/2.8.1.tar.gz"
sha256 "42c4f899f71fc26bcc57bb1e2a9309c2733212bb241a0008ba3c9b5ebd951443"
license "GPL-3.0-or-later"

bottle do
Expand All @@ -17,6 +17,9 @@ class Libpinyin < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
# macOS `ld64` does not like the `.la` files created during the build.
# upstream issue report, https://github.com/libpinyin/libpinyin/issues/158
depends_on "llvm" => :build if DevelopmentTools.clang_build_version >= 1400
depends_on "pkg-config" => :build
depends_on "berkeley-db"
depends_on "glib"
Expand All @@ -29,6 +32,9 @@ class Libpinyin < Formula
end

def install
# Workaround for Xcode 14 ld.
ENV.append_to_cflags "-fuse-ld=lld" if DevelopmentTools.clang_build_version >= 1400

resource("model").stage buildpath/"data"
system "./autogen.sh", "--enable-libzhuyin=yes",
"--prefix=#{prefix}"
Expand Down