oniguruma 6.1.2
Closes #6673. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
8c5dbaaf7f
commit
bf826986ee
1 changed files with 2 additions and 30 deletions
|
@ -1,9 +1,8 @@
|
|||
class Oniguruma < Formula
|
||||
desc "Regular expressions library"
|
||||
homepage "https://github.com/kkos/oniguruma/"
|
||||
url "https://github.com/kkos/oniguruma/releases/download/v6.1.1/onig-6.1.1.tar.gz"
|
||||
sha256 "b9cf2eefef5105820c97f94a2ccd12ed8aa274a576ccdaaed3c632a2aa0d0f04"
|
||||
revision 1
|
||||
url "https://github.com/kkos/oniguruma/releases/download/v6.1.2/onig-6.1.2.tar.gz"
|
||||
sha256 "3dcd221c2c89d7c4a44921cc49ee9f4f4948b1e63cd29426b7b412e3f6dfa85c"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -12,10 +11,6 @@ class Oniguruma < Formula
|
|||
sha256 "c3a78f861d993e7504dadf47f2b6820f935272210ce49457661d165468d9a102" => :yosemite
|
||||
end
|
||||
|
||||
# Fix wrong usage of UChar instead of OnigUChar in oniguruma.h
|
||||
# Patch is from develop branch of kkos/oniguruma and can be dropped in next release.
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
|
@ -25,26 +20,3 @@ class Oniguruma < Formula
|
|||
assert_match /#{prefix}/, shell_output("#{bin}/onig-config --prefix")
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/src/oniguruma.h b/src/oniguruma.h
|
||||
--- a/src/oniguruma.h
|
||||
+++ b/src/oniguruma.h
|
||||
@@ -364,7 +364,7 @@ int onigenc_strlen_null P_((OnigEncoding enc, const OnigUChar* p));
|
||||
ONIG_EXTERN
|
||||
int onigenc_str_bytelen_null P_((OnigEncoding enc, const OnigUChar* p));
|
||||
ONIG_EXTERN
|
||||
-int onigenc_is_valid_mbc_string P_((OnigEncoding enc, const UChar* s, const UChar* end));
|
||||
+int onigenc_is_valid_mbc_string P_((OnigEncoding enc, const OnigUChar* s, const OnigUChar* end));
|
||||
|
||||
|
||||
|
||||
@@ -742,7 +742,7 @@ void onig_free P_((OnigRegex));
|
||||
ONIG_EXTERN
|
||||
void onig_free_body P_((OnigRegex));
|
||||
ONIG_EXTERN
|
||||
-int onig_scan(regex_t* reg, const UChar* str, const UChar* end, OnigRegion* region, OnigOptionType option, int (*scan_callback)(int, int, OnigRegion*, void*), void* callback_arg);
|
||||
+int onig_scan(regex_t* reg, const OnigUChar* str, const OnigUChar* end, OnigRegion* region, OnigOptionType option, int (*scan_callback)(int, int, OnigRegion*, void*), void* callback_arg);
|
||||
ONIG_EXTERN
|
||||
int onig_search P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option));
|
||||
ONIG_EXTERN
|
||||
|
|
Loading…
Reference in a new issue