diff --git a/files/closure-compiler-linter b/files/closure-compiler-linter deleted file mode 100644 --- a/files/closure-compiler-linter +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if [ -z "$JAVA_HOME" ]; then - export JAVA_HOME=/usr/lib64/openjdk-11 -fi - -exec $JAVA_HOME/bin/java -jar /usr/share/java/closure-compiler/closure-compiler-linter.jar $@ diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,8 +1,8 @@ name : closure-compiler -version : '20200517' -release : 2 +version : '20210202' +release : 3 source : - - https://github.com/google/closure-compiler/archive/v20200517.tar.gz : 6be4e078fc707eff4a39bdbce9e9462973bb9a32d2b65426f2d77c5e9c68aa76 + - https://github.com/google/closure-compiler/archive/v20210202.tar.gz : de4a41fa6cfd524548f508a4b078677a6cac351dc665233473c1dc5bef102800 license : Apache-2.0 homepage : https://developers.google.com/closure/compiler/ component : programming.java @@ -11,18 +11,19 @@ The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. networking : yes builddeps : - - apache-maven + - bazel + - git + - python-docutils rundeps : - openjdk-11 +setup : | + rm .bazelrc build : | export JAVA_HOME=/usr/lib64/openjdk-11 - mvn -Dmaven.repo.local=../local-repo -DskipTests -T%YJOBS% \ - -pl externs/pom.xml,pom-main.xml,pom-main-shaded.xml,pom-linter.xml \ + bazel build //:compiler_shaded --define=COMPILER_VERSION=%version%.0.0 install : | - pushd closure-compiler-%version% - install -Dm00644 target/closure-compiler-1.0-SNAPSHOT.jar \ - $installdir/usr/share/java/closure-compiler/closure-compiler.jar - install -Dm00644 target/closure-compiler-linter-1.0-SNAPSHOT.jar \ - $installdir/usr/share/java/closure-compiler/closure-compiler-linter.jar + install -Dm00644 bazel-bin/compiler_shaded.jar $installdir/usr/share/java/closure-compiler/closure-compiler.jar install -Dm00755 $pkgfiles/closure-compiler $installdir/usr/bin/closure-compiler - install -Dm00755 $pkgfiles/closure-compiler-linter $installdir/usr/bin/closure-compiler-linter + rst2man debian/closure-compiler.1.txt > debian/closure-compiler.1.tmp + cat debian/manpage_encoding_declaration.UTF-8 debian/closure-compiler.1.tmp > debian/closure-compiler.1 + install -Dm00644 debian/closure-compiler.1 $installdir/usr/share/man/man1/closure-compiler.1 diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -3,8 +3,8 @@ closure-compiler https://developers.google.com/closure/compiler/ - Campbell Jones - dev@serebit.com + Martin Reboredo + yakoyoku@gmail.com Apache-2.0 programming.java @@ -21,18 +21,17 @@ programming.java /usr/bin/closure-compiler - /usr/bin/closure-compiler-linter - /usr/share/java/closure-compiler/closure-compiler-linter.jar /usr/share/java/closure-compiler/closure-compiler.jar + /usr/share/man/man1/closure-compiler.1 - - 2020-06-12 - 20200517 + + 2021-02-22 + 20210202 Packaging update - Campbell Jones - dev@serebit.com + Martin Reboredo + yakoyoku@gmail.com \ No newline at end of file