diff options
Diffstat (limited to 'homebrew/harbour')
-rw-r--r-- | homebrew/harbour/.beer | 52 | ||||
-rw-r--r-- | homebrew/harbour/.make.sh-auto | 6 | ||||
-rw-r--r-- | homebrew/harbour/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/harbour/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/harbour/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/harbour/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/harbour/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/harbour/patches.sh | 22 |
8 files changed, 85 insertions, 0 deletions
diff --git a/homebrew/harbour/.beer b/homebrew/harbour/.beer new file mode 100644 index 000000000..5cc625aac --- /dev/null +++ b/homebrew/harbour/.beer @@ -0,0 +1,52 @@ +{ + "name": "Harbour", + "description": "Portable, xBase-compatible programming language and environment", + "url": "https://downloads.sourceforge.net/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2", + "mirror": null, + "homepage": "https://harbour.github.io", + "depends": [ + { + "depend": "pcre", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/contrib/hbcurl/core.c b/contrib/hbcurl/core.c\n", + "index 00caaa8..53618ed 100644\n", + "--- a/contrib/hbcurl/core.c\n", + "+++ b/contrib/hbcurl/core.c\n", + "@@ -53,8 +53,12 @@\n", + " */\n", + "\n", + " #include <curl/curl.h>\n", + "-#include <curl/types.h>\n", + "-#include <curl/easy.h>\n", + "+#if LIBCURL_VERSION_NUM < 0x070A03\n", + "+# include <curl/easy.h>\n", + "+#endif\n", + "+#if LIBCURL_VERSION_NUM < 0x070C00\n", + "+# include <curl/types.h>\n", + "+#endif\n", + "\n", + " #include \"hbapi.h\"\n", + " #include \"hbapiitm.h\"\n" + ] + } + ], + "install": [ + "ENV[\"HB_INSTALL_PREFIX\"] = prefix", + "ENV[\"HB_WITH_X11\"] = \"no\"", + "ENV.deparallelize", + "system \"make\", \"install\"", + "rm Dir[bin/\"hbmk2.*.hbl\"]", + "rm bin/\"contrib.hbr\" if build.head?", + "rm bin/\"harbour.ucf\" if build.head?" + ], + "version": "3.0.0", + "file": "harbour.rb" +}
\ No newline at end of file diff --git a/homebrew/harbour/.make.sh-auto b/homebrew/harbour/.make.sh-auto new file mode 100644 index 000000000..c7159b87f --- /dev/null +++ b/homebrew/harbour/.make.sh-auto @@ -0,0 +1,6 @@ +pkg:setup +ENV["HB_INSTALL_PREFIX"] = prefix +ENV["HB_WITH_X11"] = "no" +ENV.deparallelize +make DESTDIR=${PKG_DEST} install +rm Dir[bin/"hbmk2.*.hbl"] diff --git a/homebrew/harbour/_metadata/description b/homebrew/harbour/_metadata/description new file mode 100644 index 000000000..da5100d4b --- /dev/null +++ b/homebrew/harbour/_metadata/description @@ -0,0 +1 @@ +Portable, xBase-compatible programming language and environment diff --git a/homebrew/harbour/_metadata/homepage b/homebrew/harbour/_metadata/homepage new file mode 100644 index 000000000..e9f3a0b37 --- /dev/null +++ b/homebrew/harbour/_metadata/homepage @@ -0,0 +1 @@ +https://harbour.github.io diff --git a/homebrew/harbour/_metadata/name b/homebrew/harbour/_metadata/name new file mode 100644 index 000000000..c793148b0 --- /dev/null +++ b/homebrew/harbour/_metadata/name @@ -0,0 +1 @@ +Harbour diff --git a/homebrew/harbour/_metadata/version b/homebrew/harbour/_metadata/version new file mode 100644 index 000000000..4a36342fc --- /dev/null +++ b/homebrew/harbour/_metadata/version @@ -0,0 +1 @@ +3.0.0 diff --git a/homebrew/harbour/download.sh b/homebrew/harbour/download.sh new file mode 100755 index 000000000..8624dbd13 --- /dev/null +++ b/homebrew/harbour/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2
\ No newline at end of file diff --git a/homebrew/harbour/patches.sh b/homebrew/harbour/patches.sh new file mode 100755 index 000000000..176951335 --- /dev/null +++ b/homebrew/harbour/patches.sh @@ -0,0 +1,22 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +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" +EOF |