homebrew-core/Formula/uniutils.rb

42 lines
1.2 KiB
Ruby
Raw Normal View History

class Uniutils < Formula
desc "Manipulate and analyze Unicode text"
homepage "https://billposer.org/Software/unidesc.html"
url "https://billposer.org/Software/Downloads/uniutils-2.27.tar.gz"
sha256 "c662a9215a3a67aae60510f679135d479dbddaf90f5c85a3c5bab1c89da61596"
# Allow build with clang. This patch was reported to debian here:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740968
# And emailed to the upstream source at billposer@alum.mit.edu
patch :DATA
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
s = pipe_output("#{bin}/uniname", "ü")
assert_match /latin small letter u with diaeresis/i, s
end
end
__END__
Description: Fix clang FTBFS [-Wreturn-type]
Author: Nicolas Sévelin-Radiguet <nicosr@free.fr>
Last-Update: 2014-03-06
--- a/unifuzz.c
+++ b/unifuzz.c
@@ -97,7 +97,7 @@
}
/* Emit the middle character from each range */
-EmitAllRanges(short AboveBMPP) {
+void EmitAllRanges(short AboveBMPP) {
int i;
UTF32 scp;
extern int Ranges_Defined;