summaryrefslogtreecommitdiff
path: root/homebrew/nethacked/.beer
blob: 2c16dba4239ae53f814c6db1c367a35fc5f7a099 (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
{
    "name": "Nethacked",
    "description": "Bugfixed and interface-patched Nethack",
    "url": "https://github.com/nethacked/nethacked/archive/1.0.tar.gz",
    "mirror": null,
    "homepage": "https://nethacked.github.io/",
    "depends": [],
    "resource": [],
    "conflicts": [],
    "patches": [
        {
            "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/b40e459/nethacked/1.0.patch",
            "strip": "1"
        }
    ],
    "install": [
        "ENV.deparallelize",
        "system \"sh\", \"sys/unix/setup.sh\"",
        "inreplace \"include/config.h\",",
        "/^#\\s*define HACKDIR.*$/,",
        "\"#define HACKDIR \\\"#{libexec}\\\"\"",
        "wizard = Etc.getpwuid.name",
        "inreplace \"include/config.h\",",
        "/^#\\s*define\\s+WIZARD\\s+\"wizard\"/,",
        "\"#define WIZARD \\\"#{wizard}\\\"\"",
        "inreplace \"include/config.h\",",
        "/^#\\s*define\\s+WIZARD_NAME\\s+\"wizard\"/,",
        "\"#define WIZARD_NAME \\\"#{wizard}\\\"\"",
        "cd \"dat\" do",
        "system \"make\"",
        "%w[perm logfile].each do |f|",
        "touch f",
        "libexec.install f"
    ],
    "version": "1.0",
    "file": "nethacked.rb"
}