aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/pkg-config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Formula/pkg-config.rb')
-rw-r--r--Formula/pkg-config.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/Formula/pkg-config.rb b/Formula/pkg-config.rb
index 18c321090..9254c5a65 100644
--- a/Formula/pkg-config.rb
+++ b/Formula/pkg-config.rb
@@ -1,15 +1,14 @@
-require 'pathname'
-$root=Pathname.new(__FILE__).dirname.parent
-$:.unshift "#{$root}/Cellar/homebrew" #rubysucks
require 'brewkit'
-homepage='http://pkgconfig.freedesktop.org'
-url='http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
-md5='d922a88782b64441d06547632fd85744'
+class PkgConfig <Formula
+ @homepage='http://pkgconfig.freedesktop.org'
+ @url='http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
+ @md5='d922a88782b64441d06547632fd85744'
-#TODO depend on our glib? --with-installed-glib
+ #TODO depend on our glib? --with-installed-glib
-Formula.new(url, md5).brew do |prefix|
- system "./configure --with-pc-path=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:#{$root}/lib/pkgconfig --disable-debug --prefix='#{prefix}'"
- system "make install"
+ def install
+ system "./configure --with-pc-path=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:#{$root}/lib/pkgconfig --disable-debug --prefix='#{prefix}'"
+ system "make install"
+ end
end \ No newline at end of file