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/nailgun | |
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/nailgun')
-rw-r--r-- | homebrew/nailgun/.beer | 32 | ||||
-rw-r--r-- | homebrew/nailgun/.make.sh-auto | 8 | ||||
-rw-r--r-- | homebrew/nailgun/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/nailgun/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/nailgun/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/nailgun/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/nailgun/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/nailgun/patches.sh | 1 |
8 files changed, 46 insertions, 0 deletions
diff --git a/homebrew/nailgun/.beer b/homebrew/nailgun/.beer new file mode 100644 index 000000000..2f15bae72 --- /dev/null +++ b/homebrew/nailgun/.beer @@ -0,0 +1,32 @@ +{ + "name": "Nailgun", + "description": "Command-line client, protocol and server for Java programs", + "url": "https://github.com/facebook/nailgun/archive/nailgun-all-v1.0.0.tar.gz", + "mirror": null, + "homepage": "http://www.martiansoftware.com/nailgun/", + "depends": [ + { + "depend": "maven", + "build-depend": true + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": "https://github.com/martylamb/nailgun/pull/70.diff?full_index=1", + "strip": "1" + } + ], + "install": [ + "system \"make\", \"install\", \"CC=#{ENV.cc}\", \"PREFIX=#{prefix}\", \"CFLAGS=#{ENV.cflags}\"", + "require \"rexml/document\"", + "pom_xml = REXML::Document.new(File.new(\"pom.xml\"))", + "jar_version = REXML::XPath.first(pom_xml, \"string(/pom:project/pom:version)\", \"pom\" => \"http://maven.apache.org/POM/4.0.0\")", + "system \"mvn\", \"clean\", \"install\"", + "libexec.install Dir[\"nailgun-server/target/*.jar\"]", + "bin.write_jar_script libexec/\"nailgun-server-#{jar_version}.jar\", \"ng-server\", \"-server\"" + ], + "version": "1.0.0", + "file": "nailgun.rb" +}
\ No newline at end of file diff --git a/homebrew/nailgun/.make.sh-auto b/homebrew/nailgun/.make.sh-auto new file mode 100644 index 000000000..f65481588 --- /dev/null +++ b/homebrew/nailgun/.make.sh-auto @@ -0,0 +1,8 @@ +pkg:setup +make DESTDIR=${PKG_DEST} install CC=${PKG_TARG}-clang PREFIX=${PKG_TAPF} CFLAGS=${CFLAGS} +require "rexml/document" +pom_xml = REXML::Document.new(File.new("pom.xml")) +jar_version = REXML::XPath.first(pom_xml, "string(/pom:project/pom:version)", "pom" => "http://maven.apache.org/POM/4.0.0") +mvn clean install +libexec.install Dir["nailgun-server/target/*.jar"] +bin.write_jar_script libexec/"nailgun-server-#{jar_version}.jar", "ng-server", "-server" diff --git a/homebrew/nailgun/_metadata/description b/homebrew/nailgun/_metadata/description new file mode 100644 index 000000000..e02a9ef59 --- /dev/null +++ b/homebrew/nailgun/_metadata/description @@ -0,0 +1 @@ +Command-line client, protocol and server for Java programs diff --git a/homebrew/nailgun/_metadata/homepage b/homebrew/nailgun/_metadata/homepage new file mode 100644 index 000000000..7d2352ef4 --- /dev/null +++ b/homebrew/nailgun/_metadata/homepage @@ -0,0 +1 @@ +http://www.martiansoftware.com/nailgun/ diff --git a/homebrew/nailgun/_metadata/name b/homebrew/nailgun/_metadata/name new file mode 100644 index 000000000..99b4328c5 --- /dev/null +++ b/homebrew/nailgun/_metadata/name @@ -0,0 +1 @@ +Nailgun diff --git a/homebrew/nailgun/_metadata/version b/homebrew/nailgun/_metadata/version new file mode 100644 index 000000000..3eefcb9dd --- /dev/null +++ b/homebrew/nailgun/_metadata/version @@ -0,0 +1 @@ +1.0.0 diff --git a/homebrew/nailgun/download.sh b/homebrew/nailgun/download.sh new file mode 100755 index 000000000..152f9bd50 --- /dev/null +++ b/homebrew/nailgun/download.sh @@ -0,0 +1 @@ +wget https://github.com/facebook/nailgun/archive/nailgun-all-v1.0.0.tar.gz
\ No newline at end of file diff --git a/homebrew/nailgun/patches.sh b/homebrew/nailgun/patches.sh new file mode 100755 index 000000000..96fe82d93 --- /dev/null +++ b/homebrew/nailgun/patches.sh @@ -0,0 +1 @@ +wget https://github.com/martylamb/nailgun/pull/70.diff?full_index=1 |