aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorScott Albertine2012-10-12 15:32:37 -0400
committerAdam Vandenberg2013-01-04 13:35:44 -0800
commit7f630c1b8383a8c4b20d85cd75450ee221d99eea (patch)
tree7e18a53dcf38d842931d216a66a248185b5ffd05 /Library
parenta36e540a6af10d7fe23b568f86dcd81425947011 (diff)
downloadhomebrew-7f630c1b8383a8c4b20d85cd75450ee221d99eea.tar.bz2
gdmap 0.8.1
Closes #15432. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gdmap.rb60
1 files changed, 60 insertions, 0 deletions
diff --git a/Library/Formula/gdmap.rb b/Library/Formula/gdmap.rb
new file mode 100644
index 000000000..6fca55c7d
--- /dev/null
+++ b/Library/Formula/gdmap.rb
@@ -0,0 +1,60 @@
+require 'formula'
+
+class Gdmap < Formula
+ homepage 'http://sourceforge.net/projects/gdmap/'
+ url 'http://downloads.sourceforge.net/project/gdmap/gdmap/0.8.1/gdmap-0.8.1.tar.gz'
+ sha1 'd97cc7c107dbaf9f3f3ed22ee6cef6172c115295'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'intltool'
+ depends_on 'gettext'
+ depends_on 'glib'
+ depends_on 'gtk+'
+
+ #The code depends on some GTK macros that are flagged as deprecated in the brew version of GTK.
+ #I assume they're not deprecated in normal GTK, because the config file disables deprecated GDK calls.
+ #The first patch turns off this disablement, making the code work fine as intended
+ #The second patch is to remove an unused system header import on one of the files.
+ #This header file doesn't exist in OSX and the program compiles and runs fine without it.
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/gdmap"
+ end
+end
+
+__END__
+diff --git a/configure b/configure
+index fc7ed80..bb408d3 100755
+--- a/configure
++++ b/configure
+@@ -8225,7 +8225,7 @@ else
+ echo "${ECHO_T}yes" >&6; }
+ :
+ fi
+-UI_CFLAGS="$UI_CFLAGS -DGTK_DISABLE_DEPRECATED"
++#UI_CFLAGS="$UI_CFLAGS -DGTK_DISABLE_DEPRECATED"
+
+
+
+diff --git a/src/gui_main.c b/src/gui_main.c
+index efe2239..91c2a14 100644
+--- a/src/gui_main.c
++++ b/src/gui_main.c
+@@ -11,7 +11,6 @@
+ # include <config.h>
+ #endif
+
+-#include <sys/vfs.h>
+ #include <stdlib.h>
+ #include <math.h>
+ #include <string.h>