2012-10-12 19:32:37 +00:00
|
|
|
class Gdmap < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tool to inspect the used space of folders"
|
2015-06-17 16:49:45 +00:00
|
|
|
homepage "https://sourceforge.net/projects/gdmap/"
|
2015-05-21 14:52:41 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/gdmap/gdmap/0.8.1/gdmap-0.8.1.tar.gz"
|
|
|
|
sha256 "a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b"
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
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.
|
2015-06-15 08:53:05 +00:00
|
|
|
# Filed bug upstream as https://sourceforge.net/p/gdmap/bugs/19/
|
2014-03-19 17:07:50 +00:00
|
|
|
patch :DATA
|
2012-10-12 19:32:37 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
2015-05-21 14:52:41 +00:00
|
|
|
system "make", "install"
|
2012-10-12 19:32:37 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-05-21 14:52:41 +00:00
|
|
|
system "#{bin}/gdmap", "--help"
|
2012-10-12 19:32:37 +00:00
|
|
|
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>
|