pcb: migrate from homebrew/science

Closes #17002.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
FX Coudert 2017-08-19 23:48:15 +02:00
parent f21462972c
commit 8190ca4e5a
2 changed files with 40 additions and 1 deletions

40
Formula/pcb.rb Normal file
View file

@ -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

View file

@ -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",