diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/couchdb.rb | 19 | ||||
| -rw-r--r-- | Library/Formula/icu4c.rb | 26 | ||||
| -rw-r--r-- | Library/Formula/nspr.rb | 16 | ||||
| -rw-r--r-- | Library/Formula/spidermonkey.rb | 27 |
4 files changed, 88 insertions, 0 deletions
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb new file mode 100644 index 000000000..57e8b4c97 --- /dev/null +++ b/Library/Formula/couchdb.rb @@ -0,0 +1,19 @@ +require 'brewkit' + +class Couchdb <Formula + @url='http://apache.multihomed.net/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz' + @homepage='http://couchdb.apache.org/' + @md5='9583efae5adfb3f9043e970fef825561' + + def deps + LibraryDep.new 'spidermonkey' + LibraryDep.new 'icu4c' + BinaryDep.new 'erlang' + end + + def install + system "./configure", "--prefix=#{prefix}" + system "make" + system "make install" + end +end diff --git a/Library/Formula/icu4c.rb b/Library/Formula/icu4c.rb new file mode 100644 index 000000000..3122178a2 --- /dev/null +++ b/Library/Formula/icu4c.rb @@ -0,0 +1,26 @@ +require 'brewkit' + +class Icu4c <Formula + @url='http://download.icu-project.org/files/icu4c/4.3.1/icu4c-4_3_1-src.tgz' + @homepage='http://site.icu-project.org/' + @md5='10d1cdc843f8e047fc308ec49d3d0543' + @version = "4.3.1" + + def patches + ["http://pastie.org/603488.txt"] + end + + def install + config_flags = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"] + config_flags << "--with-library-bits=64" if Hardware.intel_family == :core2 and MACOS_VERSION == 10.6 + Dir.chdir "source" do + system "./configure", *config_flags + system "make" + system "make install" + end + end + + def caveats + "ICU doesn't like to build on Snow Leopard with all the heavy CFLAG optimizations, primarily -O3. You may need to change your brewkit environment flags to get it to build on Snow Leopard." + end +end diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb new file mode 100644 index 000000000..b3deb84fd --- /dev/null +++ b/Library/Formula/nspr.rb @@ -0,0 +1,16 @@ +require 'brewkit' + +class Nspr <Formula + @url='https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.5/src/nspr-4.7.5.tar.gz' + @homepage='http://www.mozilla.org/projects/nspr/' + @md5='f76d459a9e589d41d65314357a853783' + + def install + ENV.deparallelize + Dir.chdir "mozilla/nsprpub" do + system "./configure", "--prefix=#{prefix}", "--disable-debug", "--enable-strip" + system "make" + system "make install" + end + end +end diff --git a/Library/Formula/spidermonkey.rb b/Library/Formula/spidermonkey.rb new file mode 100644 index 000000000..e45420826 --- /dev/null +++ b/Library/Formula/spidermonkey.rb @@ -0,0 +1,27 @@ +require 'brewkit' + +class Spidermonkey <Formula + @url="http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz" + @homepage='https://developer.mozilla.org/en/SpiderMonkey' + @md5='5571134c3863686b623ebe4e6b1f6fe6' + + def deps + # You can build Python without readline, but you really don't want to. + LibraryDep.new 'readline' + LibraryDep.new 'nspr' + end + + def patches + ["http://gist.github.com/raw/179415/eed70f1b4bae73fb92995eaf07870d40c0ceb03e/gistfile1.diff"] + end + + def install + ENV.j1 + Dir.chdir "src" do + system "make JS_DIST=#{HOMEBREW_PREFIX} JS_THREADSAFE=1 -f Makefile.ref" + system "make JS_DIST=#{prefix} -f Makefile.ref export" + system "ranlib #{prefix}/lib/libjs.a" + end + end +end + |
