summaryrefslogtreecommitdiff
path: root/homebrew/erlangat18/.beer
blob: 6cbe92e71cf75f7afdd47ae81b54bfe67c97c88c (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
    "name": "ErlangAT18",
    "description": "Programming language for highly scalable real-time systems",
    "url": "https://github.com/erlang/otp/archive/OTP-18.3.4.11.tar.gz",
    "mirror": null,
    "homepage": "https://www.erlang.org/",
    "depends": [
        {
            "depend": "autoconf",
            "build-depend": true
        },
        {
            "depend": "automake",
            "build-depend": true
        },
        {
            "depend": "libtool",
            "build-depend": true
        },
        {
            "depend": "openssl",
            "build-depend": false
        },
        {
            "depend": "wxmac",
            "build-depend": false
        }
    ],
    "resource": [
        {
            "name": "man",
            "url": "https://www.erlang.org/download/otp_doc_man_18.3.tar.gz"
        },
        {
            "name": "html",
            "url": "https://www.erlang.org/download/otp_doc_html_18.3.tar.gz"
        }
    ],
    "conflicts": [],
    "patches": [
        {
            "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/774ad1f/erlang%4018/boring-ssl-high-sierra.patch",
            "strip": "1"
        },
        {
            "url": "https://github.com/erlang/otp/commit/a64c4d806fa54848c35632114585ad82b98712e8.diff?full_index=1",
            "strip": "1"
        }
    ],
    "install": [
        "if MacOS.version == \"10.11\" && MacOS::Xcode.version >= \"8.0\"",
        "ENV[\"erl_cv_clock_gettime_monotonic_default_resolution\"] = \"no\"",
        "ENV[\"erl_cv_clock_gettime_monotonic_try_find_pthread_compatible\"] = \"no\"",
        "ENV[\"erl_cv_clock_gettime_wall_default_resolution\"] = \"no\"",
        "end",
        "%w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete(\"ERL_#{k}\") }",
        "system \"./otp_build\", \"autoconf\" if File.exist? \"otp_build\"",
        "args = %W[",
        "--disable-debug",
        "--disable-silent-rules",
        "--prefix=#{prefix}",
        "--enable-kernel-poll",
        "--enable-threads",
        "--enable-sctp",
        "--enable-dynamic-ssl-lib",
        "--with-ssl=#{Formula[\"openssl\"].opt_prefix}",
        "--enable-shared-zlib",
        "--enable-smp-support",
        "--enable-hipe",
        "--enable-wx",
        "--without-javac",
        "--enable-darwin-64bit",
        "]",
        "args << \"--with-dynamic-trace=dtrace\" if MacOS::CLT.installed?",
        "system \"./configure\", *args",
        "system \"make\"",
        "ENV.deparallelize ",
        "system \"make\", \"install\"",
        "(lib/\"erlang\").install resource(\"man\").files(\"man\")",
        "doc.install resource(\"html\")"
    ],
    "version": "18.3.4.11",
    "file": "erlang@18.rb"
}