Skip to content

Commit

Permalink
Remove MacPorts and Fink from the build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Aug 11, 2009
1 parent a4e1aca commit ead4356
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/apr.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require 'brewkit'

class AprUtil <Formula
@url='http://www.mirrorservice.org/sites/ftp.apache.org/apr/apr-util-1.3.9.tar.bz2'
@md5='29dd557f7bd891fc2bfdffcfa081db59'
end

class Apr <Formula
@url='http://www.mirrorservice.org/sites/ftp.apache.org/apr/apr-1.3.8.tar.bz2'
@homepage='http://apr.apache.org'
@md5='3c7e3a39ae3d3573f49cb74e2dbf87a2'

def install
ENV.j1
system "./configure --prefix=#{prefix} --disable-debug --disable-dependency-tracking"
system "make install"

AprUtil.new.brew do
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-apr=#{bin}/apr-1-config"
system "make install"
end

(prefix+'build-1').rmtree # wtf?
end
end

0 comments on commit ead4356

Please sign in to comment.