summaryrefslogtreecommitdiff
path: root/homebrew/scalariform
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/scalariform
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/scalariform')
-rw-r--r--homebrew/scalariform/.beer28
-rw-r--r--homebrew/scalariform/.make.sh-auto8
-rw-r--r--homebrew/scalariform/_metadata/description1
-rw-r--r--homebrew/scalariform/_metadata/homepage1
-rw-r--r--homebrew/scalariform/_metadata/name1
-rw-r--r--homebrew/scalariform/_metadata/version1
-rwxr-xr-xhomebrew/scalariform/download.sh1
7 files changed, 41 insertions, 0 deletions
diff --git a/homebrew/scalariform/.beer b/homebrew/scalariform/.beer
new file mode 100644
index 000000000..40f0f5304
--- /dev/null
+++ b/homebrew/scalariform/.beer
@@ -0,0 +1,28 @@
+{
+ "name": "Scalariform",
+ "description": "Scala source code formatter",
+ "url": "https://github.com/scala-ide/scalariform/releases/download/0.2.7/scalariform.jar",
+ "mirror": null,
+ "homepage": "https://github.com/scala-ide/scalariform",
+ "depends": [
+ {
+ "depend": "sbt",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "if build.head?",
+ "system \"sbt\", \"project cli\", \"assembly\"",
+ "libexec.install Dir[\"cli/target/scala-*/cli-assembly-*.jar\"]",
+ "bin.write_jar_script Dir[libexec/\"cli-assembly-*.jar\"][0], \"scalariform\"",
+ "else",
+ "libexec.install \"scalariform.jar\"",
+ "bin.write_jar_script libexec/\"scalariform.jar\", \"scalariform\"",
+ "end"
+ ],
+ "version": "0.2.7",
+ "file": "scalariform.rb"
+} \ No newline at end of file
diff --git a/homebrew/scalariform/.make.sh-auto b/homebrew/scalariform/.make.sh-auto
new file mode 100644
index 000000000..5de2a6d49
--- /dev/null
+++ b/homebrew/scalariform/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+sbt project cli assembly
+libexec.install Dir["cli/target/scala-*/cli-assembly-*.jar"]
+bin.write_jar_script Dir[libexec/"cli-assembly-*.jar"][0], "scalariform"
+else
+libexec.install "scalariform.jar"
+bin.write_jar_script libexec/"scalariform.jar", "scalariform"
+end
diff --git a/homebrew/scalariform/_metadata/description b/homebrew/scalariform/_metadata/description
new file mode 100644
index 000000000..d1587cd29
--- /dev/null
+++ b/homebrew/scalariform/_metadata/description
@@ -0,0 +1 @@
+Scala source code formatter
diff --git a/homebrew/scalariform/_metadata/homepage b/homebrew/scalariform/_metadata/homepage
new file mode 100644
index 000000000..597b46473
--- /dev/null
+++ b/homebrew/scalariform/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/scala-ide/scalariform
diff --git a/homebrew/scalariform/_metadata/name b/homebrew/scalariform/_metadata/name
new file mode 100644
index 000000000..6c57b56f0
--- /dev/null
+++ b/homebrew/scalariform/_metadata/name
@@ -0,0 +1 @@
+Scalariform
diff --git a/homebrew/scalariform/_metadata/version b/homebrew/scalariform/_metadata/version
new file mode 100644
index 000000000..b0032849c
--- /dev/null
+++ b/homebrew/scalariform/_metadata/version
@@ -0,0 +1 @@
+0.2.7
diff --git a/homebrew/scalariform/download.sh b/homebrew/scalariform/download.sh
new file mode 100755
index 000000000..bba0064bd
--- /dev/null
+++ b/homebrew/scalariform/download.sh
@@ -0,0 +1 @@
+wget https://github.com/scala-ide/scalariform/releases/download/0.2.7/scalariform.jar \ No newline at end of file