diff options
| author | Michael Williams | 2010-08-20 17:40:38 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-21 12:28:19 -0700 |
| commit | a84f40bf3e0c09b2a85d3a6b7bcddd33961b2857 (patch) | |
| tree | 61f5086ae2f70707809710f39ac657a57b1ab47c /Library/Formula | |
| parent | 6fc9b85e36862e9120ea982fb29983b5d2c30c62 (diff) | |
| download | homebrew-a84f40bf3e0c09b2a85d3a6b7bcddd33961b2857.tar.bz2 | |
Add a2ps Formula
Anything to Postscript converter for printing text, source, etc.
Homebrew Patches adapted from MacPorts port.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/a2ps.rb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/a2ps.rb b/Library/Formula/a2ps.rb new file mode 100644 index 000000000..4662dc66a --- /dev/null +++ b/Library/Formula/a2ps.rb @@ -0,0 +1,48 @@ +require 'formula' + +class A2ps <Formula + url 'http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz' + homepage 'http://www.gnu.org/software/a2ps/' + md5 '781ac3d9b213fa3e1ed0d79f986dc8c7' + + def patches + DATA + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + end +end + +__END__ +# 1) xstrrpl.c is wrongly declaring stpcpy as an external function and the +# compiler is complaining about the function having only one argument, see +# https://svn.macports.org/ticket/20867 +# +# 2) Fixes build failure on Tiger by reordering args. See +# http://trac.macports.org/ticket/18255 +--- a/lib/xstrrpl.c ++++ b/lib/xstrrpl.c +@@ -22,8 +22,6 @@ + #include <assert.h> + #include "xstrrpl.h" + +-extern char * stpcpy(); +- + /* Perform subsitutions in string. Result is malloc'd + E.g., result = xstrrrpl ("1234", subst) gives result = "112333" + where subst = { {"1", "11"}, {"3", "333"}, { "4", ""}} +--- a/contrib/sample/Makefile.in ++++ b/contrib/sample/Makefile.in +@@ -298,7 +298,7 @@ + AUTOMAKE_OPTIONS = $(top_builddir)/lib/ansi2knr + sample_SOURCES = main.c + INCLUDES = -I. -I.. -I$(top_builddir) -I$(top_srcdir)/intl -I$(top_srcdir)/lib +-sample_LDADD = $(top_builddir)/lib/liba2ps.la @LIBINTL@ -lm ++sample_LDADD = -lm $(top_builddir)/lib/liba2ps.la @LIBINTL@ + all: all-am + + .SUFFIXES: + |
