aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2009-06-06 23:54:52 +0100
committerMax Howell2009-06-06 23:54:52 +0100
commit1ee9ac42ddb6d3551c24d7ffaacba71f531e3f88 (patch)
tree5dc7ff5d45808f98dbea599a413be2cbf71f58b0 /Library/Formula
parent02878497790a072df8b65647c2025155c9ea8660 (diff)
downloadhomebrew-1ee9ac42ddb6d3551c24d7ffaacba71f531e3f88.tar.bz2
Wireshark depends on glib depends on gettext
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gettext.rb29
-rw-r--r--Library/Formula/glib.rb16
-rw-r--r--Library/Formula/wireshark.rb17
3 files changed, 62 insertions, 0 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
new file mode 100644
index 000000000..668dd0059
--- /dev/null
+++ b/Library/Formula/gettext.rb
@@ -0,0 +1,29 @@
+require 'brewkit'
+
+class Gettext <Formula
+ @url='http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz'
+ @md5='58a2bc6d39c0ba57823034d55d65d606'
+ @homepage='http://www.gnu.org/software/gettext/'
+
+ def install
+ # TODO seems like this package needs more optmisation
+ # maybe someone can tell me how glib depends on gettext, but gettext
+ # depends on glib and thus includes its own?!
+
+ ENV['CFLAGS']+=' -I/usr/include/libxml2'
+ system "./configure --disable-debug --prefix='#{prefix}' --disable-dependency-tracking "+
+# '--disable-nls '+
+ '--without-emacs --without-included-gettext '+
+ '--without-included-glib --without-included-libcroco '+
+ '--without-included-libxml'
+ system "make"
+ ENV['MAKEFLAGS']='' # can't parallel the install
+ system "make install"
+
+ (doc+'examples').rmtree unless ARGV.include? '--with-examples'
+
+ def caveats
+ "GNU gettext is bloated and manky, please try not to depend on it"
+ end
+ end
+end
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb
new file mode 100644
index 000000000..a66735380
--- /dev/null
+++ b/Library/Formula/glib.rb
@@ -0,0 +1,16 @@
+require 'brewkit'
+
+class Glib <Formula
+ @url='http://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-2.20.3.tar.bz2'
+ @md5='1173688c58b4b62809c83bb07a2cf71a'
+ @homepage='http://www.gtk.org'
+
+ def install
+ # indeed, amazingly, -w causes gcc to emit spurious errors!
+ ENV['CFLAGS']=ENV['CFLAGS'].gsub '-w', ''
+
+ system "./configure --disable-debug --prefix='#{prefix}' --disable-dependency-tracking"
+ system "make"
+ system "make install"
+ end
+end
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb
new file mode 100644
index 000000000..0688532ae
--- /dev/null
+++ b/Library/Formula/wireshark.rb
@@ -0,0 +1,17 @@
+require 'brewkit'
+
+class Wireshark <Formula
+ @url='http://media-2.cacetech.com/wireshark/src/wireshark-1.0.8.tar.bz2'
+ @md5='09d895f111ee768cc0d7c7e2c427c496'
+ @homepage='http://www.wireshark.org'
+
+ def install
+ system "./configure --disable-debug --prefix='#{prefix}' --disable-dependency-tracking "+
+ '--disable-wireshark'
+ system "make install"
+ end
+
+ def caveats
+ "We don't build the X11 enabled GUI by default"
+ end
+end