2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class XmlrpcC < Formula
|
2010-04-26 15:49:12 +00:00
|
|
|
homepage 'http://xmlrpc-c.sourceforge.net/'
|
2012-07-28 21:58:42 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-1.16.42.tgz'
|
|
|
|
sha1 '7a71fabc652c2848a7226605432a2e420a02dff0'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2012-07-30 14:59:00 +00:00
|
|
|
def patches
|
2012-07-30 21:31:53 +00:00
|
|
|
# Backport patch for deprecated curl/types.h include, which is gone on 10.8
|
2012-07-30 14:59:00 +00:00
|
|
|
# On 10.6 and 10.7 it's empty, so could probably patch unconditionally
|
|
|
|
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636457#10
|
|
|
|
if MacOS.mountain_lion?
|
2012-07-30 21:31:53 +00:00
|
|
|
DATA
|
2012-07-30 14:59:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2012-03-10 22:29:37 +00:00
|
|
|
# --enable-libxml2-backend to lose some weight and not statically link in expat
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--enable-libxml2-backend",
|
|
|
|
"--prefix=#{prefix}"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|
2012-07-30 21:31:53 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- stable/lib/curl_transport/curltransaction.c 2011/03/26 19:32:28 2115
|
|
|
|
+++ stable/lib/curl_transport/curltransaction.c 2011/07/09 17:47:44 2150
|
|
|
|
@@ -17,7 +17,9 @@
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
+#ifdef NEED_CURL_TYPES_H
|
|
|
|
#include <curl/types.h>
|
|
|
|
+#endif
|
|
|
|
#include <curl/easy.h>
|
|
|
|
|
|
|
|
#include "curlversion.h"
|
|
|
|
--- stable/lib/curl_transport/curlmulti.c 2011/07/09 17:41:18 2149
|
|
|
|
+++ stable/lib/curl_transport/curlmulti.c 2011/07/09 17:47:44 2150
|
|
|
|
@@ -19,7 +19,9 @@
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
+#ifdef NEED_CURL_TYPES_H
|
|
|
|
#include <curl/types.h>
|
|
|
|
+#endif
|
|
|
|
#include <curl/easy.h>
|
|
|
|
#include <curl/multi.h>
|
|
|
|
|
|
|
|
--- stable/lib/curl_transport/xmlrpc_curl_transport.c 2011/07/09 17:41:18 2149
|
|
|
|
+++ stable/lib/curl_transport/xmlrpc_curl_transport.c 2011/07/09 17:47:44 2150
|
|
|
|
@@ -85,7 +85,9 @@
|
|
|
|
#include "xmlrpc-c/time_int.h"
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
+#ifdef NEED_CURL_TYPES_H
|
|
|
|
#include <curl/types.h>
|
|
|
|
+#endif
|
|
|
|
#include <curl/easy.h>
|
|
|
|
#include <curl/multi.h>
|