From 5c987b44127f6a6aab97d12a7ad518bbdd83d0ff Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 22 Aug 2017 16:28:22 +0000 Subject: [PATCH 1/2] libidn2 2.0.3 (new formula) --- Formula/libidn2.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Formula/libidn2.rb diff --git a/Formula/libidn2.rb b/Formula/libidn2.rb new file mode 100644 index 000000000000..90291ea7c394 --- /dev/null +++ b/Formula/libidn2.rb @@ -0,0 +1,29 @@ +class Libidn2 < Formula + desc "International domain name library" + homepage "https://www.gnu.org/software/libidn/#libidn2" + url "https://ftp.gnu.org/gnu/libidn/libidn2-2.0.3.tar.lz" + mirror "https://ftpmirror.gnu.org/libidn/libidn2-2.0.3.tar.lz" + sha256 "b52fd3bc9693de16db93aa23a11a56f3cdb3fbf005a360145401ab5d252490f5" + + head do + url "https://gitlab.com/libidn/libidn2.git" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end + + depends_on "pkg-config" => :build + depends_on "libunistring" + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--disable-doc" + system "make", "install" + end + + test do + ENV["CHARSET"] = "UTF-8" + system bin/"idn2", "räksmörgås.se", "blåbærgrød.no" + end +end From 55779ba520c27413ed48308ad843a8dcf94a535b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 22 Aug 2017 16:46:53 +0000 Subject: [PATCH 2/2] desc and head tweaks --- Formula/libidn2.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/libidn2.rb b/Formula/libidn2.rb index 90291ea7c394..7a3054cd1c47 100644 --- a/Formula/libidn2.rb +++ b/Formula/libidn2.rb @@ -1,5 +1,5 @@ class Libidn2 < Formula - desc "International domain name library" + desc "International domain name library (IDNA2008, Punycode and TR46)" homepage "https://www.gnu.org/software/libidn/#libidn2" url "https://ftp.gnu.org/gnu/libidn/libidn2-2.0.3.tar.lz" mirror "https://ftpmirror.gnu.org/libidn/libidn2-2.0.3.tar.lz" @@ -10,6 +10,8 @@ class Libidn2 < Formula depends_on "automake" => :build depends_on "autoconf" => :build depends_on "libtool" => :build + depends_on "gettext" => :build + depends_on "gengetopt" => :build end depends_on "pkg-config" => :build