2011-05-16 18:34:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GedaGaf < Formula
|
|
|
|
homepage 'http://geda.seul.org'
|
2012-05-05 18:57:59 +00:00
|
|
|
url 'http://geda.seul.org/release/v1.6/1.6.2/geda-gaf-1.6.2.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '87c21b3b77eebc8eec1c16672d4b1ab418ccb80d'
|
2011-05-16 18:34:47 +00:00
|
|
|
|
2012-05-05 18:57:59 +00:00
|
|
|
devel do
|
|
|
|
url 'http://geda.seul.org/devel/v1.7/1.7.2/geda-gaf-1.7.2.tar.gz'
|
2012-09-06 03:35:43 +00:00
|
|
|
sha1 '519f759211158a61689646e9963cb8c4bb5bb9a4'
|
2012-05-05 18:57:59 +00:00
|
|
|
end
|
|
|
|
|
2011-05-16 18:34:47 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
depends_on 'guile'
|
|
|
|
depends_on 'gawk'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-05-16 18:34:47 +00:00
|
|
|
|
2012-05-05 18:57:59 +00:00
|
|
|
def patches
|
2012-09-12 05:16:01 +00:00
|
|
|
# MacPorts fix for glib 2.32 includes
|
|
|
|
# Needed for 1.6.2 and 1.7.x
|
|
|
|
ps = {:p0 => [
|
2012-09-06 03:35:43 +00:00
|
|
|
"https://trac.macports.org/export/92743/trunk/dports/science/geda-gaf/files/patch-glib-2.32.diff"
|
|
|
|
]}
|
2012-09-12 05:16:01 +00:00
|
|
|
|
|
|
|
# Typo in 1.6.2; fixed (and removed) in 1.7.x
|
|
|
|
if !build.devel?
|
|
|
|
ps[:p1] = DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
ps
|
2012-05-05 18:57:59 +00:00
|
|
|
end
|
|
|
|
|
2011-05-16 18:34:47 +00:00
|
|
|
def install
|
|
|
|
# Help configure find libraries
|
|
|
|
gettext = Formula.factory('gettext')
|
2012-09-12 05:16:01 +00:00
|
|
|
pcb = Formula.factory('pcb')
|
2011-05-16 18:34:47 +00:00
|
|
|
|
2012-09-12 05:16:01 +00:00
|
|
|
extra_configure_args = []
|
|
|
|
if !build.devel?
|
|
|
|
extra_configure_args << "--with-pcb-confdir=#{pcb.etc/:pcb}"
|
|
|
|
end
|
2011-05-16 18:34:47 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-gettext=#{gettext.prefix}",
|
2012-09-12 05:16:01 +00:00
|
|
|
"--disable-update-xdg-database",
|
|
|
|
"--with-pcb-datadir=#{HOMEBREW_PREFIX/:share/:pcb}",
|
|
|
|
*extra_configure_args
|
2011-05-16 18:34:47 +00:00
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"This software runs under X11."
|
|
|
|
end
|
|
|
|
end
|
2012-09-12 05:16:01 +00:00
|
|
|
|
|
|
|
# There appears to be a typo info geda-gaf's configuration.
|
|
|
|
__END__
|
|
|
|
diff -ur a/m4/pcb-data-dirs.m4 b/m4/pcb-data-dirs.m4
|
|
|
|
--- a/m4/pcb-data-dirs.m4
|
|
|
|
+++ b/m4/pcb-data-dirs.m4
|
|
|
|
@@ -71,7 +71,7 @@
|
|
|
|
[directory where PCB site configuration files are installed [[SYSCONFDIR/pcb]]]),
|
|
|
|
[ if (test "X$with_pcb_confdir" != "Xno" &&
|
|
|
|
test "X$with_pcb_confdir" != "Xyes"); then
|
|
|
|
- PCBCONFDIR="$with_pcb_m4dir"
|
|
|
|
+ PCBCONFDIR="$with_pcb_confdir"
|
|
|
|
fi ], [])
|
|
|
|
AC_MSG_RESULT([$PCBCONFDIR])
|
|
|
|
AC_SUBST([PCBCONFDIR])
|