aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/git.rb8
-rw-r--r--Library/Formula/imagemagick.rb69
2 files changed, 71 insertions, 6 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 9ac21af74..bf7bb879c 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -11,10 +11,6 @@ class Git <Formula
@homepage='http://git-scm.com'
def install
- # the manuals come separately, well sort of, it's easier this way though
- man.mkpath
- GitManuals.new.brew { FileUtils.mv Dir['*'], man }
-
# if these things are installed, tell git build system to not use them
ENV['NO_FINK']='1'
ENV['NO_DARWIN_PORTS']='1'
@@ -30,5 +26,9 @@ class Git <Formula
(bin+fn).unlink
(bin+fn).make_link bin+'git'
end
+
+ # we could build the manpages ourselves, but the build process depends
+ # on many other packages, and is somewhat crazy, this way is easier
+ GitManuals.new.brew { man.install Dir['*'] }
end
end \ No newline at end of file
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index 3afb0a359..6d6571234 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -1,8 +1,40 @@
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.4-9.tar.bz2'
- @md5='25391113fbcd5642b67949756fd078cb'
+ @url='ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.5-4.tar.bz2'
+ @md5='8cb7471a50428e4892ee46aa404e54c2'
@homepage='http://www.imagemagick.org'
def deps
@@ -13,6 +45,36 @@ class Imagemagick <Formula
ENV.libpng
ENV.deparallelize
+ # 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}'
@@ -20,6 +82,7 @@ class Imagemagick <Formula
"--without-maximum-compile-warnings",
"--prefix=#{prefix}",
"--disable-osx-universal-binary",
+ "--with-gs-font-dir=#{prefix}/share/ghostscript/fonts",
"--without-perl" # I couldn't make this compile
system "make install"
@@ -28,6 +91,8 @@ class Imagemagick <Formula
(d+'NEWS.txt').unlink
(d+'LICENSE').unlink
(d+'ChangeLog').unlink
+
+ (man+'de').rmtree
end
def caveats