summaryrefslogtreecommitdiff
path: root/homebrew/erlang/.beer
blob: 421209a2b079180f5577100a797f86a3f7d39f4e (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
{
    "name": "Erlang",
    "description": "Programming language for highly scalable real-time systems",
    "url": "https://github.com/erlang/otp/archive/OTP-21.3.6.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_21.3.tar.gz"
        },
        {
            "name": "html",
            "url": "https://www.erlang.org/download/otp_doc_html_21.3.tar.gz"
        }
    ],
    "conflicts": [],
    "patches": [],
    "install": [
        "%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-dynamic-ssl-lib",
        "--enable-hipe",
        "--enable-sctp",
        "--enable-shared-zlib",
        "--enable-smp-support",
        "--enable-threads",
        "--enable-wx",
        "--with-ssl=#{Formula[\"openssl\"].opt_prefix}",
        "--without-javac",
        "--enable-darwin-64bit",
        "]",
        "args << \"--enable-kernel-poll\" if MacOS.version > :el_capitan",
        "args << \"--with-dynamic-trace=dtrace\" if MacOS::CLT.installed?",
        "system \"./configure\", *args",
        "system \"make\"",
        "system \"make\", \"install\"",
        "(lib/\"erlang\").install resource(\"man\").files(\"man\")",
        "doc.install resource(\"html\")"
    ],
    "version": "21.3.6",
    "file": "erlang.rb"
}