From 8190ca4e5a46a94164c92d7134a286f21bd2eceb Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 19 Aug 2017 23:48:15 +0200 Subject: [PATCH] pcb: migrate from homebrew/science Closes #17002. Signed-off-by: FX Coudert --- Formula/pcb.rb | 40 ++++++++++++++++++++++++++++++++++++++++ tap_migrations.json | 1 - 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Formula/pcb.rb diff --git a/Formula/pcb.rb b/Formula/pcb.rb new file mode 100644 index 0000000000..96a0fc238d --- /dev/null +++ b/Formula/pcb.rb @@ -0,0 +1,40 @@ +class Pcb < Formula + desc "Interactive printed circuit board editor" + homepage "http://pcb.geda-project.org/" + url "https://downloads.sourceforge.net/project/pcb/pcb/pcb-4.0.1/pcb-4.0.1.tar.gz" + sha256 "5d1bd189d8f9b362ac0890ea7ce826e77e61f724439d83c9f854f9c782ca7ef5" + version_scheme 1 + + head do + url "git://git.geda-project.org/pcb.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + end + + depends_on "intltool" => :build + depends_on "pkg-config" => :build + depends_on "dbus" + depends_on "gd" + depends_on "gettext" + depends_on "glib" + depends_on "gtk+" + depends_on "gtkglext" + + conflicts_with "gts", :because => "both install a `gts.h` header" + + def install + system "./autogen.sh" if build.head? + system "./configure", "--prefix=#{prefix}", + "--disable-debug", + "--disable-dependency-tracking", + "--disable-update-desktop-database", + "--disable-update-mime-database", + "--disable-gl", + "--without-x" + system "make", "install" + end + + test do + assert_match version.to_s, shell_output("#{bin}/pcb --version") + end +end diff --git a/tap_migrations.json b/tap_migrations.json index c82e832ea8..d06682fc20 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -42,7 +42,6 @@ "openfst": "homebrew/science", "opengrm-ngram": "homebrew/science", "osxfuse": "caskroom/cask", - "pcb": "homebrew/science", "pdf-tools": "dunn/emacs", "pebble-sdk": "pebble/pebble-sdk", "pocl": "homebrew/science",