From 4683b81d1174b314d5dd08573604e4a2d7595f65 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 15 May 2014 21:14:13 -0700 Subject: jove: use MacPorts patch instead of inreplace Closes #29286. --- Library/Formula/jove.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/jove.rb b/Library/Formula/jove.rb index d97acc1d7..9dd4b2435 100644 --- a/Library/Formula/jove.rb +++ b/Library/Formula/jove.rb @@ -5,9 +5,13 @@ class Jove < Formula url "ftp://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/jove4.16.0.73.tgz" sha1 "fca6f33465b08eed5b90e24cfb67e61bc5249dcf" - def install - inreplace %w{insert.c io.c io.h recover.c util.h}, "getline", "jove_getline" + # Per MacPorts, avoid clash with libc getline + patch :p0 do + url "https://trac.macports.org/export/120116/trunk/dports/editors/jove/files/patch-getline.diff" + sha1 "7d3632ddf46cece9d39c2e02b020259d8b2bf49e" + end + def install bin.mkpath man1.mkpath (lib/"jove").mkpath -- cgit v1.2.3