summaryrefslogtreecommitdiff
path: root/homebrew/harbour/.beer
blob: 5cc625aac9ec4928e1af7179e2557aa5f80b95ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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"
}