This repository has been archived by the owner. It is now read-only.

add formula ps2eps #12274

Closed
wants to merge 15 commits into
from
View
@@ -1,13 +1,15 @@
require 'formula'
class Gcal < Formula
- url 'http://ftpmirror.gnu.org/gcal/gcal-3.6.1.tar.gz'
- mirror 'http://ftp.gnu.org/gnu/gcal/gcal-3.6.1.tar.gz'
homepage 'http://www.gnu.org/software/gcal/'
- md5 'a89e96db054a8b23ff6cd97049527a4f'
+ url 'http://ftpmirror.gnu.org/gcal/gcal-3.6.2.tar.xz'
+ mirror 'http://ftp.gnu.org/gnu/gcal/gcal-3.6.2.tar.xz'
+ sha1 '45dfa00e362d9c4ab8978a7a2f2ab898b156a3c4'
+
+ depends_on 'xz' => :build
def install
- system "./configure", "--prefix=#{prefix}"
+ system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
system "make install"
end
end
@@ -1,12 +1,12 @@
require 'formula'
class Giflib < Formula
- url 'http://downloads.sourceforge.net/project/giflib/giflib%204.x/giflib-4.1.6/giflib-4.1.6.tar.bz2'
homepage 'http://giflib.sourceforge.net/'
- md5 '7125644155ae6ad33dbc9fc15a14735f'
+ url 'http://downloads.sourceforge.net/project/giflib/giflib-4.x/giflib-4.2.0.tar.bz2'
+ sha1 'bc942711f75de7d8539f79be34d69c0d53c381c1'
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end
@@ -2,8 +2,8 @@
class Hadoop < Formula
homepage 'http://hadoop.apache.org/common/'
- url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.0.1/hadoop-1.0.1.tar.gz'
- md5 'e627d9b688c4de03cba8313bd0bba148'
+ url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.0.3/hadoop-1.0.3.tar.gz'
+ md5 'f42d05e5c7bb43f85119546b80296435'
def shim_script target
<<-EOS.undent
View
@@ -2,19 +2,16 @@
class Jython < Formula
homepage 'http://www.jython.org'
- url "http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar",
- :using => :nounzip
+ url "http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar"
sha1 'd4534a691edf40aa1d51723dfe3e22db1e39b432'
devel do
- url "http://downloads.sourceforge.net/project/jython/jython-dev/2.5.3b1/jython_installer-2.5.3b1.jar",
- :using => :nounzip
- version '2.5.3b1'
- sha1 'bcfc024a93289b2f99bf000fb7666a48fe3d32da'
+ url "http://downloads.sourceforge.net/project/jython/jython-dev/2.7.0a1/jython_installer-2.7a1.jar"
+ sha1 'c2fc5232da2c9de0cca357bf4fa5dc312bbf1294'
end
def install
system "java", "-jar", "jython_installer-#{version}.jar", "-s", "-d", libexec
- bin.install_symlink libexec+'bin/jython'
+ bin.install_symlink libexec/'bin/jython'
end
end
View
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Ps2eps < Formula
+ homepage 'http://www.tm.uka.de/~bless/ps2eps'
+ url 'http://www.tm.uka.de/~bless/ps2eps-1.68.tar.gz'
+ md5 'd6d2932b9d0399317a7382c94c108c44'
+
+ depends_on 'ghostscript'
+
+ def install
+ inreplace 'bin/ps2eps', /^eval.*$/, '#!/usr/bin/perl'
+ bin.install 'bin/ps2eps'
+ share.install Dir['doc/man']
+ doc.install Dir['doc/pdf']
+ doc.install Dir['doc/html']
+ system "#{ENV.cc} #{ENV.cflags} src/C/bbox.c -obbox"
+ bin.install 'bbox'
+ end
+end