summaryrefslogtreecommitdiff
path: root/homebrew/instead
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/instead
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (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/instead')
-rw-r--r--homebrew/instead/.beer51
-rw-r--r--homebrew/instead/.make.sh-auto4
-rw-r--r--homebrew/instead/_metadata/description1
-rw-r--r--homebrew/instead/_metadata/homepage1
-rw-r--r--homebrew/instead/_metadata/name1
-rw-r--r--homebrew/instead/_metadata/version1
-rwxr-xr-xhomebrew/instead/download.sh1
-rwxr-xr-xhomebrew/instead/patches.sh1
8 files changed, 61 insertions, 0 deletions
diff --git a/homebrew/instead/.beer b/homebrew/instead/.beer
new file mode 100644
index 000000000..353de597d
--- /dev/null
+++ b/homebrew/instead/.beer
@@ -0,0 +1,51 @@
+{
+ "name": "Instead",
+ "description": "Interpreter of simple text adventures",
+ "url": "https://github.com/instead-hub/instead/archive/3.3.0.tar.gz",
+ "mirror": null,
+ "homepage": "https://instead.syscall.ru/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "lua",
+ "build-depend": false
+ },
+ {
+ "depend": "sdl2",
+ "build-depend": false
+ },
+ {
+ "depend": "sdl2_image",
+ "build-depend": false
+ },
+ {
+ "depend": "sdl2_mixer",
+ "build-depend": false
+ },
+ {
+ "depend": "sdl2_ttf",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://github.com/instead-hub/instead/commit/e00be1e2.patch?full_index=1",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", \"-DWITH_GTK2=OFF\",",
+ "\"-DLUA_INCLUDE_DIR=#{Formula[\"lua\"].opt_include}/lua\",",
+ "\"-DLUA_LIBRARY=#{Formula[\"lua\"].opt_lib}/liblua.dylib\",",
+ "*std_cmake_args",
+ "system \"make\", \"install\""
+ ],
+ "version": "3.3.0",
+ "file": "instead.rb"
+} \ No newline at end of file
diff --git a/homebrew/instead/.make.sh-auto b/homebrew/instead/.make.sh-auto
new file mode 100644
index 000000000..4b48cebdb
--- /dev/null
+++ b/homebrew/instead/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+mkdir "build" && cd build
+cmake .. -DWITH_GTK2=OFF -DLUA_INCLUDE_DIR=#{Formula[lua"].opt_include}/lua" -DLUA_LIBRARY=#{Formula[lua"].opt_lib}/liblua.dylib" -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/instead/_metadata/description b/homebrew/instead/_metadata/description
new file mode 100644
index 000000000..3cbf16753
--- /dev/null
+++ b/homebrew/instead/_metadata/description
@@ -0,0 +1 @@
+Interpreter of simple text adventures
diff --git a/homebrew/instead/_metadata/homepage b/homebrew/instead/_metadata/homepage
new file mode 100644
index 000000000..86ce8575d
--- /dev/null
+++ b/homebrew/instead/_metadata/homepage
@@ -0,0 +1 @@
+https://instead.syscall.ru/
diff --git a/homebrew/instead/_metadata/name b/homebrew/instead/_metadata/name
new file mode 100644
index 000000000..a00bf155a
--- /dev/null
+++ b/homebrew/instead/_metadata/name
@@ -0,0 +1 @@
+Instead
diff --git a/homebrew/instead/_metadata/version b/homebrew/instead/_metadata/version
new file mode 100644
index 000000000..15a279981
--- /dev/null
+++ b/homebrew/instead/_metadata/version
@@ -0,0 +1 @@
+3.3.0
diff --git a/homebrew/instead/download.sh b/homebrew/instead/download.sh
new file mode 100755
index 000000000..9a8029a87
--- /dev/null
+++ b/homebrew/instead/download.sh
@@ -0,0 +1 @@
+wget https://github.com/instead-hub/instead/archive/3.3.0.tar.gz \ No newline at end of file
diff --git a/homebrew/instead/patches.sh b/homebrew/instead/patches.sh
new file mode 100755
index 000000000..048c63b1f
--- /dev/null
+++ b/homebrew/instead/patches.sh
@@ -0,0 +1 @@
+wget https://github.com/instead-hub/instead/commit/e00be1e2.patch?full_index=1