aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-24 19:40:54 -0600
committerJack Nagel2012-02-24 19:40:54 -0600
commit2c1a2b5d99543868db63e84efa073bba684b3069 (patch)
tree74bfa9b903446abdfac8209c105bf5018865999f /Library
parentee353780cf9bffddfb1da0c4d80fee41f9aaee43 (diff)
downloadhomebrew-2c1a2b5d99543868db63e84efa073bba684b3069.tar.bz2
aget: use MacPorts patch
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/aget.rb20
1 files changed, 4 insertions, 16 deletions
diff --git a/Library/Formula/aget.rb b/Library/Formula/aget.rb
index 1d8306de7..3511dbb83 100644
--- a/Library/Formula/aget.rb
+++ b/Library/Formula/aget.rb
@@ -6,26 +6,14 @@ class Aget < Formula
md5 'ddee95ad1d394a4751ebde24fcb36fa1'
def patches
- { :p0 => DATA }
+ { :p0 => "https://trac.macports.org/export/90173/trunk/dports/net/aget/files/patch-Head.c" }
end
def install
- system "make"
+ system "make", "CC=#{ENV.cc}",
+ "CFLAGS=#{ENV.cflags}",
+ "LDFLAGS=#{ENV.ldflags}"
bin.install "aget"
man1.install "aget.1"
end
end
-
-
-__END__
---- Head.c 2009-05-12 14:22:42.000000000 +0900
-+++ Head.c.new 2010-10-21 00:12:25.000000000 +0900
-@@ -59,7 +59,7 @@
- hstrerror(h_errno));
- exit(1);
- }
-- strncpy(req->ip, inet_ntoa(*(struct in_addr *)he->h_addr), MAXIPSIZ);
-+ strncpy(req->ip, inet_ntoa(*(struct in_addr *)he->h_addr_list[0]), MAXIPSIZ);
-
-
- time(&t_start);