From a84f40bf3e0c09b2a85d3a6b7bcddd33961b2857 Mon Sep 17 00:00:00 2001 From: Michael Williams Date: Fri, 20 Aug 2010 17:40:38 +0200 Subject: Add a2ps Formula Anything to Postscript converter for printing text, source, etc. Homebrew Patches adapted from MacPorts port. Signed-off-by: Adam Vandenberg --- Library/Formula/a2ps.rb | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Library/Formula/a2ps.rb (limited to 'Library') 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 + #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: + -- cgit v1.2.3