aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-08-31 15:42:10 -0700
committerJack Nagel2011-09-01 23:49:49 -0500
commitcdfc11e70e8e40d54600e7a46c0ab9aa3e7b7c1a (patch)
treee10f58e638d54f6fe5abbb156b8058b442346c63 /Library
parentdd2fe662faffb12f2c9bb5f01ab6f4eb0e7da428 (diff)
downloadhomebrew-cdfc11e70e8e40d54600e7a46c0ab9aa3e7b7c1a.tar.bz2
tinyproxy: clean up and source patches
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tinyproxy.rb60
1 files changed, 13 insertions, 47 deletions
diff --git a/Library/Formula/tinyproxy.rb b/Library/Formula/tinyproxy.rb
index 31f1a5429..b4d3d9b47 100644
--- a/Library/Formula/tinyproxy.rb
+++ b/Library/Formula/tinyproxy.rb
@@ -7,14 +7,14 @@ class Tinyproxy < Formula
skip_clean 'var/run'
- depends_on 'asciidoc'
+ depends_on 'asciidoc' => :build
+ # Fix linking error, via MacPorts
+ # See: https://trac.macports.org/ticket/27762
def patches
- # LDFLAG '-z' not recognized
- # Tinyproxy switched to a2x and xmllint to build the man pages,
- # and it fails on some systems. The patch just tells xmllint to
- # ignore problems.
- DATA
+ {:p0 => [
+ "https://trac.macports.org/export/83413/trunk/dports/net/tinyproxy/files/patch-configure.diff"
+ ]}
end
def install
@@ -22,47 +22,13 @@ class Tinyproxy < Formula
"--disable-debug",
"--disable-dependency-tracking",
"--disable-regexcheck"
+
+ # Fix broken XML lint
+ # See: http://www.freebsd.org/cgi/query-pr.cgi?pr=154624
+ inreplace ["docs/man5/Makefile", "docs/man8/Makefile"] do |s|
+ s.gsub! "-f manpage", "-f manpage \\\n -L"
+ end
+
system "make install"
end
end
-
-__END__
-diff --git a/configure b/configure
-index 79e7938..2aa5347 100755
---- a/configure
-+++ b/configure
-@@ -6745,7 +6745,6 @@ if test x"$debug_enabled" != x"yes" ; then
- CFLAGS="-DNDEBUG $CFLAGS"
- fi
-
--LDFLAGS="-Wl,-z,defs"
-
-
- if test x"$ac_cv_func_regexec" != x"yes"; then
-
-diff --git a/docs/man5/Makefile.in b/docs/man5/Makefile.in
-index eac9e6f..eb2a887 100644
---- a/docs/man5/Makefile.in
-+++ b/docs/man5/Makefile.in
-@@ -194,7 +194,7 @@ MAN5_FILES = \
-
- A2X_ARGS = \
- -d manpage \
-- -f manpage
-+ -f manpage -L
-
- man_MANS = \
- $(MAN5_FILES:.txt=.5)
-diff --git a/docs/man8/Makefile.in b/docs/man8/Makefile.in
-index b51e93b..8957ccc 100644
---- a/docs/man8/Makefile.in
-+++ b/docs/man8/Makefile.in
-@@ -194,7 +194,7 @@ MAN8_FILES = \
-
- A2X_ARGS = \
- -d manpage \
-- -f manpage
-+ -f manpage -L
-
- man_MANS = \
- $(MAN8_FILES:.txt=.8)