From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/scalariform/.beer | 28 ++++++++++++++++++++++++++++ homebrew/scalariform/.make.sh-auto | 8 ++++++++ homebrew/scalariform/_metadata/description | 1 + homebrew/scalariform/_metadata/homepage | 1 + homebrew/scalariform/_metadata/name | 1 + homebrew/scalariform/_metadata/version | 1 + homebrew/scalariform/download.sh | 1 + 7 files changed, 41 insertions(+) create mode 100644 homebrew/scalariform/.beer create mode 100644 homebrew/scalariform/.make.sh-auto create mode 100644 homebrew/scalariform/_metadata/description create mode 100644 homebrew/scalariform/_metadata/homepage create mode 100644 homebrew/scalariform/_metadata/name create mode 100644 homebrew/scalariform/_metadata/version create mode 100755 homebrew/scalariform/download.sh (limited to 'homebrew/scalariform') 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 -- cgit v1.2.3