summaryrefslogtreecommitdiff
path: root/homebrew/h2
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/h2
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/h2')
-rw-r--r--homebrew/h2/.beer22
-rw-r--r--homebrew/h2/.make.sh-auto8
-rw-r--r--homebrew/h2/_metadata/description1
-rw-r--r--homebrew/h2/_metadata/homepage1
-rw-r--r--homebrew/h2/_metadata/name1
-rw-r--r--homebrew/h2/_metadata/version1
-rwxr-xr-xhomebrew/h2/download.sh1
7 files changed, 35 insertions, 0 deletions
diff --git a/homebrew/h2/.beer b/homebrew/h2/.beer
new file mode 100644
index 000000000..3a675549b
--- /dev/null
+++ b/homebrew/h2/.beer
@@ -0,0 +1,22 @@
+{
+ "name": "H2",
+ "description": "Java SQL database",
+ "url": "https://www.h2database.com/h2-2018-03-18.zip",
+ "mirror": null,
+ "homepage": "https://www.h2database.com/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "rm_f Dir[\"bin/*.bat\"]",
+ "#",
+ "h2_script = File.read(\"bin/h2.sh\").gsub(\"\\r\\n\", \"\\n\")",
+ "File.open(\"bin/h2.sh\", \"w\") { |f| f.write h2_script }",
+ "chmod 0755, \"bin/h2.sh\"",
+ "libexec.install Dir[\"*\"]",
+ "(bin+\"h2\").write script"
+ ],
+ "version": "2018",
+ "file": "h2.rb"
+} \ No newline at end of file
diff --git a/homebrew/h2/.make.sh-auto b/homebrew/h2/.make.sh-auto
new file mode 100644
index 000000000..ac92c8269
--- /dev/null
+++ b/homebrew/h2/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+rm_f Dir["bin/*.bat"]
+#
+h2_script = File.read("bin/h2.sh").gsub("\r\n", "\n")
+File.open("bin/h2.sh", "w") { |f| f.write h2_script }
+chmod 0755, "bin/h2.sh"
+libexec.install Dir["*"]
+(bin+"h2").write script
diff --git a/homebrew/h2/_metadata/description b/homebrew/h2/_metadata/description
new file mode 100644
index 000000000..2eba2d1d1
--- /dev/null
+++ b/homebrew/h2/_metadata/description
@@ -0,0 +1 @@
+Java SQL database
diff --git a/homebrew/h2/_metadata/homepage b/homebrew/h2/_metadata/homepage
new file mode 100644
index 000000000..887dda866
--- /dev/null
+++ b/homebrew/h2/_metadata/homepage
@@ -0,0 +1 @@
+https://www.h2database.com/
diff --git a/homebrew/h2/_metadata/name b/homebrew/h2/_metadata/name
new file mode 100644
index 000000000..1ec57dd49
--- /dev/null
+++ b/homebrew/h2/_metadata/name
@@ -0,0 +1 @@
+H2
diff --git a/homebrew/h2/_metadata/version b/homebrew/h2/_metadata/version
new file mode 100644
index 000000000..b39a36a7c
--- /dev/null
+++ b/homebrew/h2/_metadata/version
@@ -0,0 +1 @@
+2018
diff --git a/homebrew/h2/download.sh b/homebrew/h2/download.sh
new file mode 100755
index 000000000..56867332a
--- /dev/null
+++ b/homebrew/h2/download.sh
@@ -0,0 +1 @@
+wget https://www.h2database.com/h2-2018-03-18.zip \ No newline at end of file