aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnderson Maia2014-04-22 11:50:04 -0300
committerMisty De Meo2014-08-16 19:20:20 -0700
commitc96714a325778e99959c242ee45ef7208c27cebc (patch)
tree41d5286f52ec77128abffc977452f4713e8bf4df
parentd0ad52ffd15ce4e0ff355fd161382ccac5af0548 (diff)
downloadhomebrew-c96714a325778e99959c242ee45ef7208c27cebc.tar.bz2
Harbour 3.0.0 (new formula).
Harbour is the free software implementation of a multi-platform, multi-threading, object-oriented, scriptable programming language, backward compatible with Clipper/xBase. Harbour consists of a compiler and runtime libraries with multiple UI and database backends, its own make system and a large collection of libraries and interfaces to many popular APIs. Harbour is a cross-platform compiler and is known to compile and run on Windows (32 & 64), GNU/Linux, OS X, Windows CE, OS/2 and MS-DOS. http://harbour-project.org/
-rw-r--r--Library/Formula/harbour.rb59
1 files changed, 59 insertions, 0 deletions
diff --git a/Library/Formula/harbour.rb b/Library/Formula/harbour.rb
new file mode 100644
index 000000000..a2a0322e3
--- /dev/null
+++ b/Library/Formula/harbour.rb
@@ -0,0 +1,59 @@
+require "formula"
+
+class Harbour < Formula
+ homepage "https://harbour.github.io"
+ url "https://downloads.sourceforge.net/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2"
+ sha1 "66c21d666ac24c45485179eeaa9f90458b552e92"
+
+ head do
+ url "https://github.com/harbour/core/archive/master.tar.gz"
+ end
+
+ depends_on "pcre"
+ depends_on :x11 => :recommended
+
+ # Missing a header that was deprecated by libcurl @ version 7.12.0 and
+ # deleted sometime after Harbour 3.0.0 release.
+ stable do
+ patch :DATA
+ end
+
+ def install
+ ENV["HB_INSTALL_PREFIX"] = prefix
+ ENV["HB_WITH_X11"] = "no" if build.without? "x11"
+
+ ENV.deparallelize
+
+ system "make", "install"
+
+ rm Dir[bin/"hbmk2.*.hbl"]
+ rm bin/"contrib.hbr" if build.head?
+ rm bin/"harbour.ucf" if build.head?
+ end
+
+ test do
+ (testpath/"hello_world.prg").write("procedure Main();?'Hello, world!';?;?OS();?Version();return")
+ system "#{bin}/hbmk2", "-run", "hello_world.prg"
+ end
+end
+
+__END__
+diff --git a/contrib/hbcurl/core.c b/contrib/hbcurl/core.c
+index 00caaa8..53618ed 100644
+--- a/contrib/hbcurl/core.c
++++ b/contrib/hbcurl/core.c
+@@ -53,8 +53,12 @@
+ */
+
+ #include <curl/curl.h>
+-#include <curl/types.h>
+-#include <curl/easy.h>
++#if LIBCURL_VERSION_NUM < 0x070A03
++# include <curl/easy.h>
++#endif
++#if LIBCURL_VERSION_NUM < 0x070C00
++# include <curl/types.h>
++#endif
+
+ #include "hbapi.h"
+ #include "hbapiitm.h"