Permalink
Browse files

New formula for ps2eps

This is a new formula for ps2eps. A program which converts a ps-file
(without bounding boxes) into a eps-file (with bounding boxes) which is
then suitable to include in tex-documents. The program does not ship
with a configure and/or Makefile that is why the formula does the
install with ruby directly. The first line of ps2eps (a perl script)
needed to be patched in order for homebrew to recognize it as an
executable. The rest of the install routine is standard: compile bbox
and copy all the files into the appropriate folders.
  • Loading branch information...
1 parent 3222ca1 commit 267581f5e0be6ed7f9e89b3c9d56f548c2054ffa @fahasch committed May 16, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 Library/Formula/ps2eps.rb
View
22 Library/Formula/ps2eps.rb
@@ -0,0 +1,22 @@
+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.mkpath
+ bin.install 'bin/ps2eps'
@adamv
adamv May 16, 2012

install explicitly does mkpath, so remove the mkpath calls and rebase.

+ share.mkpath
+ share.install Dir['doc/man']
+ doc.mkpath
+ doc.install Dir['doc/pdf']
+ doc.install Dir['doc/html']
+ system "#{ENV.cc} -O2 src/C/bbox.c -obbox"
+ bin.install 'bbox'
+ end
+end

0 comments on commit 267581f

Please sign in to comment.