summaryrefslogtreecommitdiff
path: root/homebrew/crystal/.beer
blob: 3ff16414a7ad66eef88898bc731efbd62ede2160 (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
{
    "name": "Crystal",
    "description": "Fast and statically typed, compiled language with Ruby-like syntax",
    "url": "https://github.com/crystal-lang/crystal/archive/0.27.2.tar.gz",
    "mirror": null,
    "homepage": "https://crystal-lang.org/",
    "depends": [
        {
            "depend": "libatomic_ops",
            "build-depend": false
        },
        {
            "depend": "bdw-gc",
            "build-depend": false
        },
        {
            "depend": "gmp",
            "build-depend": false
        },
        {
            "depend": "libevent",
            "build-depend": false
        },
        {
            "depend": "libyaml",
            "build-depend": false
        },
        {
            "depend": "llvm@6",
            "build-depend": false
        },
        {
            "depend": "pcre",
            "build-depend": false
        },
        {
            "depend": "pkg-config",
            "build-depend": false
        }
    ],
    "resource": [
        {
            "name": "shards",
            "url": "https://github.com/crystal-lang/shards/archive/v0.8.1.tar.gz"
        },
        {
            "name": "shards",
            "url": "https://github.com/crystal-lang/shards.git"
        },
        {
            "name": "boot",
            "url": "https://github.com/crystal-lang/crystal/releases/download/0.27.1/crystal-0.27.1-1-darwin-x86_64.tar.gz"
        }
    ],
    "conflicts": [],
    "patches": [],
    "install": [
        "(buildpath/\"boot\").install resource(\"boot\")",
        "if build.head?",
        "ENV[\"CRYSTAL_CONFIG_BUILD_COMMIT\"] = Utils.popen_read(\"git rev-parse --short HEAD\").strip",
        "end",
        "ENV[\"CRYSTAL_CONFIG_PATH\"] = prefix/\"src:lib\"",
        "ENV.append_path \"PATH\", \"boot/bin\"",
        "system \"make\", \"deps\"",
        "(buildpath/\".build\").mkpath",
        "system \"bin/crystal\", \"build\",",
        "\"-D\", \"without_openssl\",",
        "\"-D\", \"without_zlib\",",
        "\"-D\", \"preview_overflow\",",
        "\"-o\", \".build/crystal\",",
        "\"src/compiler/crystal.cr\",",
        "\"--release\", \"--no-debug\"",
        "resource(\"shards\").stage do",
        "system buildpath/\"bin/crystal\", \"build\", \"-o\", buildpath/\".build/shards\", \"src/shards.cr\""
    ],
    "version": "0.27.2",
    "file": "crystal.rb"
}