From 25389fc482d6840bcd0bf3658031d52fb2928c1c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 10 Oct 2016 09:34:27 +0100 Subject: [PATCH] Revert "gwenhywfar: migrate to boneyard" (#5753) --- Formula/gwenhywfar.rb | 56 +++++++++++++++++++++++++++++++++++++++++++ tap_migrations.json | 1 - 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Formula/gwenhywfar.rb diff --git a/Formula/gwenhywfar.rb b/Formula/gwenhywfar.rb new file mode 100644 index 0000000000..b846cbb5f8 --- /dev/null +++ b/Formula/gwenhywfar.rb @@ -0,0 +1,56 @@ +class Gwenhywfar < Formula + desc "Utility library required by aqbanking and related software" + homepage "http://www.aqbanking.de/" + url "http://www2.aquamaniac.de/sites/download/download.php?package=01&release=201&file=01&dummy=gwenhywfar-4.15.3.tar.gz" + sha256 "6a0e8787c99620414da6140e567c616b55856c5edf8825a9ebc67431923ee63a" + + head "http://git.aqbanking.de/git/gwenhywfar.git" + + bottle do + sha256 "4134a1899f551ec91f6495d69a3939c9aa30d38f292291f00869709d0f299020" => :sierra + sha256 "9b78e775989003bfe9e79bc745ef477b2c485c58d4aaff947cf4a44e86f1fc9b" => :el_capitan + sha256 "f0beb1b72cafab6696ab63c5a0ae5aa22040095bd6ae8997121f1725e7a11d5f" => :yosemite + sha256 "ef8ea6c7fa80e6e89faf9dbbc3f2aa7ef89fd31e16b940abd64ed036a7b1069a" => :mavericks + end + + option "without-cocoa", "Build without cocoa support" + option "with-test", "Run build-time check" + + deprecated_option "with-check" => "with-test" + + depends_on "pkg-config" => :build + depends_on "gettext" + depends_on "gnutls" + depends_on "openssl" + depends_on "libgcrypt" + depends_on "gtk+" => :optional + depends_on "qt" => :optional + + def install + guis = [] + guis << "gtk2" if build.with? "gtk+" + guis << "qt4" if build.with? "qt" + guis << "cocoa" if build.with? "cocoa" + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-guis=#{guis.join(" ")}" + system "make", "check" if build.with? "test" + system "make", "install" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + + int main() + { + GWEN_Init(); + return 0; + } + EOS + system ENV.cc, "test.c", "-I#{include}/gwenhywfar4", "-L#{lib}", "-lgwenhywfar", "-o", "test" + system "./test" + end +end diff --git a/tap_migrations.json b/tap_migrations.json index 598a5a9f73..7423c91012 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -128,7 +128,6 @@ "gtkwave": "homebrew/gui", "guilt": "homebrew/boneyard", "gv": "homebrew/x11", - "gwenhywfar": "homebrew/boneyard", "hatari": "homebrew/x11", "helios": "spotify/public", "hexchat": "homebrew/gui",