diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/nethacked | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/nethacked')
-rw-r--r-- | homebrew/nethacked/.beer | 37 | ||||
-rw-r--r-- | homebrew/nethacked/.make.sh-auto | 12 | ||||
-rw-r--r-- | homebrew/nethacked/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/nethacked/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/nethacked/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/nethacked/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/nethacked/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/nethacked/patches.sh | 1 |
8 files changed, 55 insertions, 0 deletions
diff --git a/homebrew/nethacked/.beer b/homebrew/nethacked/.beer new file mode 100644 index 000000000..2c16dba42 --- /dev/null +++ b/homebrew/nethacked/.beer @@ -0,0 +1,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" +}
\ No newline at end of file diff --git a/homebrew/nethacked/.make.sh-auto b/homebrew/nethacked/.make.sh-auto new file mode 100644 index 000000000..eaea83d59 --- /dev/null +++ b/homebrew/nethacked/.make.sh-auto @@ -0,0 +1,12 @@ +pkg:setup +ENV.deparallelize +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" +make +%w[perm logfile].each do |f| +touch f +libexec.install f diff --git a/homebrew/nethacked/_metadata/description b/homebrew/nethacked/_metadata/description new file mode 100644 index 000000000..84fef4460 --- /dev/null +++ b/homebrew/nethacked/_metadata/description @@ -0,0 +1 @@ +Bugfixed and interface-patched Nethack diff --git a/homebrew/nethacked/_metadata/homepage b/homebrew/nethacked/_metadata/homepage new file mode 100644 index 000000000..ee49a9fdc --- /dev/null +++ b/homebrew/nethacked/_metadata/homepage @@ -0,0 +1 @@ +https://nethacked.github.io/ diff --git a/homebrew/nethacked/_metadata/name b/homebrew/nethacked/_metadata/name new file mode 100644 index 000000000..d35d7ab19 --- /dev/null +++ b/homebrew/nethacked/_metadata/name @@ -0,0 +1 @@ +Nethacked diff --git a/homebrew/nethacked/_metadata/version b/homebrew/nethacked/_metadata/version new file mode 100644 index 000000000..d3827e75a --- /dev/null +++ b/homebrew/nethacked/_metadata/version @@ -0,0 +1 @@ +1.0 diff --git a/homebrew/nethacked/download.sh b/homebrew/nethacked/download.sh new file mode 100755 index 000000000..1c707bef7 --- /dev/null +++ b/homebrew/nethacked/download.sh @@ -0,0 +1 @@ +wget https://github.com/nethacked/nethacked/archive/1.0.tar.gz
\ No newline at end of file diff --git a/homebrew/nethacked/patches.sh b/homebrew/nethacked/patches.sh new file mode 100755 index 000000000..96ff1ebf9 --- /dev/null +++ b/homebrew/nethacked/patches.sh @@ -0,0 +1 @@ +wget https://raw.githubusercontent.com/Homebrew/formula-patches/b40e459/nethacked/1.0.patch |