homebrew-core/Formula/darwinbuild.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

38 lines
792 B
Ruby

require 'formula'
class Darwinbuild <Formula
head 'http://svn.macosforge.org/repository/darwinbuild/trunk/'
homepage 'http://darwinbuild.macosforge.org/'
def patches
DATA
end
def install
ENV.no_optimization
system "make install PREFIX=#{prefix}"
end
def download_strategy
SubversionDownloadStrategy
end
end
__END__
diff --git a/common.mk b/common.mk
index 424109b..56fad54 100644
--- a/common.mk
+++ b/common.mk
@@ -15,9 +15,9 @@ BINDIR=$(DESTDIR)$(PREFIX)/bin
DATDIR=$(DESTDIR)$(PREFIX)/share
INCDIR=$(DESTDIR)$(PREFIX)/include
INSTALL=install
-INSTALL_EXE_FLAGS=-m 0755 -o root -g wheel
+INSTALL_EXE_FLAGS=-m 0755
INSTALL_DIR_FLAGS=$(INSTALL_EXE_FLAGS)
-INSTALL_DOC_FLAGS=-m 0644 -o root -g wheel
+INSTALL_DOC_FLAGS=-m 0644
SED=/usr/bin/sed