Merge branch 'deps'
Conflicts: Library/Formula/imagemagick.rb Library/Formula/taglib.rb Library/Homebrew/brew.h.rb Library/Homebrew/formula.rb bin/brew
This commit is contained in:
commit
ec4aa1f6b6
24 changed files with 144 additions and 151 deletions
|
@ -17,11 +17,6 @@ class Erlang <Formula
|
|||
@url='http://erlang.org/download/otp_src_R13B02.tar.gz'
|
||||
@md5='80048e589272db810f5d536f47050ab8'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'icu4c'
|
||||
LibraryDep.new 'openssl'
|
||||
end
|
||||
|
||||
# def patches
|
||||
# [
|
||||
# "http://pastie.org/603456.txt",
|
||||
|
@ -37,6 +32,9 @@ class Erlang <Formula
|
|||
# ]
|
||||
# end
|
||||
|
||||
depends_on 'icu4c'
|
||||
depends_on 'openssl'
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
config_flags = ["--disable-debug",
|
||||
|
|
|
@ -5,9 +5,7 @@ class Fish <Formula
|
|||
@homepage='http:://fishshell.org/'
|
||||
@md5='4b2436843e63bebba467cc4add11428a'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'readline'
|
||||
end
|
||||
depends_on 'readline'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--without-xsel"
|
||||
|
|
32
Formula/ghostscript.rb
Normal file
32
Formula/ghostscript.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
require 'brewkit'
|
||||
|
||||
class GhostscriptFonts <Formula
|
||||
@url='http://downloads.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz'
|
||||
@homepage='http://sourceforge.net/projects/gs-fonts/'
|
||||
@md5='6865682b095f8c4500c54b285ff05ef6'
|
||||
end
|
||||
|
||||
class Ghostscript <Formula
|
||||
@url='http://downloads.sourceforge.net/project/ghostscript/GPL%20Ghostscript/8.70/ghostscript-8.70.tar.bz2'
|
||||
@homepage='http://www.ghostscript.com/'
|
||||
@md5='526366f8cb4fda0d3d293597cc5b984b'
|
||||
|
||||
def install
|
||||
# ghostscript configure ignores LDFLAGs apparently
|
||||
ENV['LIBS']="-L/usr/X11/lib"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug",
|
||||
# the cups component adamantly installs to /usr so fuck it
|
||||
"--disable-cups"
|
||||
# versioned stuff in main tree is pointless for us
|
||||
inreplace 'Makefile', '/$(GS_DOT_VERSION)', ''
|
||||
system "make install"
|
||||
(prefix+'share'+'ghostscript'+'doc').rmtree
|
||||
|
||||
GhostscriptFonts.new.brew do
|
||||
Dir.chdir '..'
|
||||
(prefix+'share'+'ghostscript').install 'fonts'
|
||||
end
|
||||
|
||||
(man+'de').rmtree
|
||||
end
|
||||
end
|
|
@ -12,10 +12,8 @@ class Glib <Formula
|
|||
@md5='4c178b91d82ef80a2da3c26b772569c0'
|
||||
@homepage='http://www.gtk.org'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'pkg-config'
|
||||
LibraryDep.new 'gettext'
|
||||
end
|
||||
depends_on 'pkg-config'
|
||||
depends_on 'gettext'
|
||||
|
||||
def install
|
||||
ENV.gnu_gettext
|
||||
|
|
|
@ -2,44 +2,16 @@ require 'brewkit'
|
|||
|
||||
# some credit to http://github.com/maddox/magick-installer
|
||||
|
||||
class Libtiff <Formula
|
||||
@url='ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz'
|
||||
@homepage='http://www.libtiff.org/'
|
||||
@md5='fbb6f446ea4ed18955e2714934e5b698'
|
||||
end
|
||||
|
||||
class Libwmf <Formula
|
||||
@url='http://downloads.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz'
|
||||
@homepage='http://wvware.sourceforge.net/libwmf.html'
|
||||
@md5='d1177739bf1ceb07f57421f0cee191e0'
|
||||
end
|
||||
|
||||
class LittleCMS <Formula
|
||||
@url='http://www.littlecms.com/lcms-1.17.tar.gz'
|
||||
@homepage='http://www.littlecms.com/'
|
||||
@md5='07bdbb4cfb05d21caa58fe3d1c84ddc1'
|
||||
end
|
||||
|
||||
class Ghostscript <Formula
|
||||
@url='http://downloads.sourceforge.net/project/ghostscript/GPL%20Ghostscript/8.70/ghostscript-8.70.tar.bz2'
|
||||
@homepage='http://www.ghostscript.com/'
|
||||
@md5='526366f8cb4fda0d3d293597cc5b984b'
|
||||
end
|
||||
|
||||
class GhostscriptFonts <Formula
|
||||
@url='http://downloads.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz'
|
||||
@homepage='http://sourceforge.net/projects/gs-fonts/'
|
||||
@md5='6865682b095f8c4500c54b285ff05ef6'
|
||||
end
|
||||
|
||||
class Imagemagick <Formula
|
||||
@url='ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.5-10.tar.bz2'
|
||||
@md5='36bcef67cae5d5fce2899acb9200213a'
|
||||
@homepage='http://www.imagemagick.org'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'jpeg'
|
||||
end
|
||||
depends_on 'jpeg'
|
||||
depends_on 'libwmf' => :optional
|
||||
depends_on 'libtiff' => :optional
|
||||
depends_on 'little-cms' => :optional
|
||||
depends_on 'ghostscript' => :recommended
|
||||
|
||||
def install
|
||||
ENV.libpng
|
||||
|
@ -47,33 +19,6 @@ class Imagemagick <Formula
|
|||
|
||||
# TODO eventually these will be external optional dependencies
|
||||
# but for now I am lazy
|
||||
Libtiff.new.brew do
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make install"
|
||||
end
|
||||
Libwmf.new.brew do
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make install"
|
||||
end
|
||||
LittleCMS.new.brew do
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make install"
|
||||
end
|
||||
Ghostscript.new.brew do
|
||||
# ghostscript configure ignores LDFLAGs apparently
|
||||
ENV['LIBS']="-L/usr/X11/lib"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug",
|
||||
# the cups component adamantly installs to /usr so fuck it
|
||||
"--disable-cups"
|
||||
# versioned stuff in main tree is pointless for us
|
||||
inreplace 'Makefile', '/$(GS_DOT_VERSION)', ''
|
||||
system "make install"
|
||||
(prefix+'share'+'ghostscript'+'doc').rmtree
|
||||
end
|
||||
GhostscriptFonts.new.brew do
|
||||
Dir.chdir '..'
|
||||
(prefix+'share'+'ghostscript').install 'fonts'
|
||||
end
|
||||
|
||||
# versioned stuff in main tree is pointless for us
|
||||
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'
|
||||
|
@ -86,20 +31,17 @@ class Imagemagick <Formula
|
|||
"--without-maximum-compile-warnings",
|
||||
"--prefix=#{prefix}",
|
||||
"--disable-osx-universal-binary",
|
||||
"--with-gs-font-dir=#{prefix}/share/ghostscript/fonts",
|
||||
"--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts",
|
||||
"--without-perl" # I couldn't make this compile
|
||||
system "make install"
|
||||
|
||||
# We already copy these in
|
||||
d=prefix+'share'
|
||||
(d+'NEWS.txt').unlink
|
||||
(d+'LICENSE').unlink
|
||||
(d+'ChangeLog').unlink
|
||||
|
||||
(man+'de').rmtree
|
||||
# We already copy these into the keg root
|
||||
(share+'NEWS.txt').unlink
|
||||
(share+'LICENSE').unlink
|
||||
(share+'ChangeLog').unlink
|
||||
end
|
||||
|
||||
def caveats
|
||||
"I'm not a heavy user of ImageMagick, so please check everything is installed."
|
||||
"If there is something missing that you need with this formula, please create an issue at #{HOMEBREW_WWW}"
|
||||
end
|
||||
end
|
|
@ -5,11 +5,9 @@ class Liblastfm <Formula
|
|||
@url='http://static.last.fm/src/liblastfm-0.3.0.tar.bz2'
|
||||
@md5='3f73222ebc31635941832b01e7a494b6'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'qmake', 'qt'
|
||||
LibraryDep.new 'fftw3f', 'fftw'
|
||||
LibraryDep.new 'samplerate'
|
||||
end
|
||||
depends_on 'qt'
|
||||
depends_on 'fftw'
|
||||
depends_on 'samplerate'
|
||||
|
||||
def install
|
||||
system "./configure --release --prefix '#{prefix}'"
|
||||
|
|
|
@ -5,10 +5,8 @@ class Libmusicbrainz <Formula
|
|||
@homepage='http://musicbrainz.org'
|
||||
@md5='648ecd43f7b80852419aaf73702bc23f'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'neon'
|
||||
OptionalLibraryDep.new 'libdiscid'
|
||||
end
|
||||
depends_on 'neon'
|
||||
depends_on 'libdiscid' => :optional
|
||||
|
||||
def install
|
||||
system "cmake . #{std_cmake_parameters}"
|
||||
|
|
12
Formula/libtiff.rb
Normal file
12
Formula/libtiff.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'brewkit'
|
||||
|
||||
class Libtiff <Formula
|
||||
@url='ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz'
|
||||
@homepage='http://www.libtiff.org/'
|
||||
@md5='fbb6f446ea4ed18955e2714934e5b698'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make install"
|
||||
end
|
||||
end
|
|
@ -5,9 +5,7 @@ class Libvorbis <Formula
|
|||
@md5='6a7086ee666b8c62e122d29d107f7bec'
|
||||
@homepage='http://vorbis.com'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'libogg'
|
||||
end
|
||||
depends_on 'libogg'
|
||||
|
||||
def install
|
||||
system "./configure --enable-docs --disable-debug --disable-dependency-tracking --prefix='#{prefix}'"
|
||||
|
|
16
Formula/libwmf.rb
Normal file
16
Formula/libwmf.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
require 'brewkit'
|
||||
|
||||
class Libwmf <Formula
|
||||
@url='http://downloads.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz'
|
||||
@homepage='http://wvware.sourceforge.net/libwmf.html'
|
||||
@md5='d1177739bf1ceb07f57421f0cee191e0'
|
||||
|
||||
def install
|
||||
ENV.libpng
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make"
|
||||
|
||||
ENV.j1 # yet another rubbish Makefile
|
||||
system "make install"
|
||||
end
|
||||
end
|
12
Formula/little-cms.rb
Normal file
12
Formula/little-cms.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'brewkit'
|
||||
|
||||
class LittleCms <Formula
|
||||
@url='http://www.littlecms.com/lcms-1.17.tar.gz'
|
||||
@homepage='http://www.littlecms.com/'
|
||||
@md5='07bdbb4cfb05d21caa58fe3d1c84ddc1'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug"
|
||||
system "make install"
|
||||
end
|
||||
end
|
|
@ -5,9 +5,7 @@ class Memcached <Formula
|
|||
@homepage='http://www.danga.com/memcached/'
|
||||
@md5='d7651ecb8bf345144cb17900d9a46c85'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'libevent'
|
||||
end
|
||||
depends_on 'libevent'
|
||||
|
||||
def install
|
||||
system "./configure --prefix='#{prefix}'"
|
||||
|
|
|
@ -5,9 +5,7 @@ class MysqlConnectorC <Formula
|
|||
@url='http://mysql.llarian.net/Downloads/Connector-C/mysql-connector-c-6.0.1.tar.gz'
|
||||
@md5='348a869fa72957062ea4e7ad3865623c'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'cmake'
|
||||
end
|
||||
depends_on 'cmake'
|
||||
|
||||
def install
|
||||
system "cmake . #{std_cmake_parameters}"
|
||||
|
|
|
@ -5,10 +5,7 @@ class Mysql <Formula
|
|||
@homepage='http://dev.mysql.com/doc/refman/5.1/en/'
|
||||
@md5='7564d7759a8077b3a0e6190955422287'
|
||||
|
||||
def deps
|
||||
# --without-readline means use system's readline
|
||||
LibraryDep.new 'readline'
|
||||
end
|
||||
depends_on 'readline'
|
||||
|
||||
def options
|
||||
[
|
||||
|
|
|
@ -5,9 +5,7 @@ class Nginx <Formula
|
|||
@homepage='http://nginx.net/'
|
||||
@md5='6ebf89b9b00a3b82734e93c32da7df07'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'pcre'
|
||||
end
|
||||
depends_on 'pcre'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--with-http_ssl_module"
|
||||
|
|
|
@ -4,11 +4,9 @@ class Playdar <Formula
|
|||
@homepage='http://www.playdar.org'
|
||||
@head='git://github.com/mxcl/playdar.git'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'taglib'
|
||||
LibraryDep.new 'boost'
|
||||
BinaryDep.new 'cmake'
|
||||
end
|
||||
depends_on 'taglib'
|
||||
depends_on 'boost'
|
||||
depends_on 'cmake'
|
||||
|
||||
def skip_clean? path
|
||||
# for some reason stripping breaks it
|
||||
|
|
|
@ -1,15 +1,34 @@
|
|||
require 'brewkit'
|
||||
|
||||
class Readline <Formula
|
||||
@url='ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz'
|
||||
@homepage='http://tiswww.case.edu/php/chet/readline/rltop.html'
|
||||
@md5='e39331f32ad14009b9ff49cc10c5e751'
|
||||
|
||||
def patches
|
||||
(1..14).collect {|n| "ftp://ftp.gnu.org/gnu/readline/readline-5.2-patches/readline52-%03d"%n}
|
||||
end
|
||||
|
||||
def keg_only?
|
||||
true
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--mandir=#{man}",
|
||||
"--infodir=#{info}"
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
||||
class Python <Formula
|
||||
@url='http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2'
|
||||
@homepage='http://www.python.org/'
|
||||
@md5='245db9f1e0f09ab7e0faaa0cf7301011'
|
||||
|
||||
def deps
|
||||
# You can build Python without readline, but you really don't want to.
|
||||
LibraryDep.new 'readline'
|
||||
end
|
||||
|
||||
# You can build Python without readline, but you really don't want to.
|
||||
depends_on Readline.new
|
||||
|
||||
def skip_clean? path
|
||||
path == bin+'python' or path == bin+'python2.6' or # if you strip these, it can't load modules
|
||||
path == lib+'python2.6' # save a lot of time
|
||||
|
|
|
@ -13,13 +13,10 @@ prefer to use theirs. If so type `brew home scummvm' to visit their site.
|
|||
EOS
|
||||
end
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'sdl'
|
||||
# Optional, but you want them anyway.
|
||||
OptionalLibraryDep.new 'flac'
|
||||
OptionalLibraryDep.new 'libogg'
|
||||
OptionalLibraryDep.new 'libvorbis'
|
||||
end
|
||||
depends_on 'sdl'
|
||||
depends_on 'flac' => :recommended
|
||||
depends_on 'libvorbis' => :recommended
|
||||
depends_on 'libogg' => :recommended
|
||||
|
||||
def install
|
||||
system "./configure --prefix='#{prefix}' --disable-debug"
|
||||
|
|
|
@ -11,11 +11,9 @@ class Sshfs <Formula
|
|||
"http://macfuse.googlecode.com/svn/tags/macfuse-2.0.3|2/filesystems/sshfs/sshfs-fuse-2.2-macosx.patch"
|
||||
end
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'pkg-config'
|
||||
LibraryDep.new 'glib'
|
||||
LibraryDep.new 'macfuse'
|
||||
end
|
||||
depends_on 'pkg-config'
|
||||
depends_on 'glib'
|
||||
depends_on 'macfuse'
|
||||
|
||||
def install
|
||||
# Steal compile flags from macfuse_buildtool.sh
|
||||
|
|
|
@ -1,22 +1,13 @@
|
|||
require 'brewkit'
|
||||
|
||||
class SubversionDeps <Formula
|
||||
@url='http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.bz2'
|
||||
@md5='8272316e1670d4d2bea451411e438bde'
|
||||
end
|
||||
|
||||
class Subversion <Formula
|
||||
@url='http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2'
|
||||
@homepage='http://subversion.tigris.org/'
|
||||
@md5='1a53a0e72bee0bf814f4da83a9b6a636'
|
||||
|
||||
def install
|
||||
# Slot dependencies into place
|
||||
d=Pathname.getwd
|
||||
SubversionDeps.new.brew do
|
||||
d.install Dir['*']
|
||||
end
|
||||
depends_on 'neon'
|
||||
|
||||
def install
|
||||
# Use existing system zlib, dep-provided other libraries
|
||||
# Don't mess with Apache modules (since we're not sudo)
|
||||
system "./configure", "--disable-debug",
|
||||
|
|
|
@ -5,6 +5,8 @@ class Taglib <Formula
|
|||
@md5='5ecad0816e586a954bd676a86237d054'
|
||||
@homepage='http://developer.kde.org/~wheeler/taglib.html'
|
||||
|
||||
depends_on 'cmake'
|
||||
|
||||
def install
|
||||
system "./configure", "--enable-mp4", "--enable-asf",
|
||||
"--disable-debug", "--prefix=#{prefix}"
|
||||
|
|
|
@ -5,9 +5,7 @@ class Unp <Formula
|
|||
@homepage='http://packages.debian.org/de/etch/unp'
|
||||
@md5='ecea662bd7e7efe7f7e2213bf21d9646'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'p7zip'
|
||||
end
|
||||
depends_on 'p7zip'
|
||||
|
||||
def install
|
||||
bin.install %w[unp ucat]
|
||||
|
|
|
@ -5,11 +5,10 @@ class VorbisTools <Formula
|
|||
@md5='df976d24e51ef3d87cd462edf747bf9a'
|
||||
@homepage='http://vorbis.com'
|
||||
|
||||
def deps
|
||||
LibraryDep.new 'ogg'
|
||||
LibraryDep.new 'vorbis'
|
||||
OptionalLibraryDep.new 'ao', 'ogg123'
|
||||
end
|
||||
depends_on 'ogg'
|
||||
depends_on 'vorbis'
|
||||
depends_on 'ao' => :optional
|
||||
depends_on 'ogg123' => :optional
|
||||
|
||||
def install
|
||||
system "./configure --disable-debug --disable-nls --disable-dependency-tracking --prefix='#{prefix}'"
|
||||
|
|
|
@ -5,9 +5,7 @@ class Yajl <Formula
|
|||
@url='http://github.com/lloyd/yajl/tarball/1.0.5'
|
||||
@md5='f4a3cbc764c43231ed1aedc54438b69b'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'cmake'
|
||||
end
|
||||
depends_on 'cmake'
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
|
@ -18,4 +16,4 @@ class Yajl <Formula
|
|||
system "./configure --prefix '#{prefix}'"
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue