[arch-commits] Commit in languagetool/repos/community-any (6 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Sun Jun 28 17:52:45 UTC 2020
Date: Sunday, June 28, 2020 @ 17:52:44
Author: aginiewicz
Revision: 655145
archrelease: copy trunk to community-any
Added:
languagetool/repos/community-any/PKGBUILD
(from rev 655144, languagetool/trunk/PKGBUILD)
languagetool/repos/community-any/languagetool.service
(from rev 655144, languagetool/trunk/languagetool.service)
languagetool/repos/community-any/languagetool.sh
(from rev 655144, languagetool/trunk/languagetool.sh)
Deleted:
languagetool/repos/community-any/PKGBUILD
languagetool/repos/community-any/languagetool.service
languagetool/repos/community-any/languagetool.sh
----------------------+
PKGBUILD | 72 ++++++++++++------------
languagetool.service | 28 ++++-----
languagetool.sh | 142 ++++++++++++++++++++++++-------------------------
3 files changed, 121 insertions(+), 121 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-28 17:52:34 UTC (rev 655144)
+++ PKGBUILD 2020-06-28 17:52:44 UTC (rev 655145)
@@ -1,36 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Julien MISCHKOWITZ <wain at archlinux.fr>
-# Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
-
-pkgname=languagetool
-pkgver=4.9.1
-pkgrel=1
-pkgdesc="An open source language checker"
-arch=('any')
-url="https://www.languagetool.org"
-license=("LGPL")
-depends=('java-runtime-headless>=8')
-makedepends=('unzip')
-optdepends=('java-runtime: needed for the GUI version'
- 'libxtst: needed for the GUI version'
- 'gtk2: needed for the GUI version')
-source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh" "$pkgname.service")
-noextract=($pkgname-$pkgver.zip)
-sha256sums=('79d10fc225d66005360de292fae4c2b27bfd122a1419d8d9ce16e2b14cb7517b'
- '009c0a65a978ad11ac097edd4be64688a2c80281b201495eff9ab667c5b0f0fe'
- 'c1bc7bc6336cbd988fb2e54610693886a20bc4bff48b499617ff4f6fc5b09052')
-
-package() {
- cd "$srcdir"
- install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
- unzip -q LanguageTool-$pkgver.zip -d "$pkgdir"/usr/share
- cd "$pkgdir"/usr/share/
- mv LanguageTool-$pkgver $pkgname
- cd $pkgname
- mv *.jar "$pkgdir"/usr/share/java/$pkgname
- mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname
- rm -rf libs
- install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
- mkdir -p "$pkgdir"/usr/lib/systemd/system
- install -m644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
-}
Copied: languagetool/repos/community-any/PKGBUILD (from rev 655144, languagetool/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-28 17:52:44 UTC (rev 655145)
@@ -0,0 +1,36 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Julien MISCHKOWITZ <wain at archlinux.fr>
+# Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
+
+pkgname=languagetool
+pkgver=5.0
+pkgrel=1
+pkgdesc="An open source language checker"
+arch=('any')
+url="https://www.languagetool.org"
+license=("LGPL")
+depends=('java-runtime-headless>=8')
+makedepends=('unzip')
+optdepends=('java-runtime: needed for the GUI version'
+ 'libxtst: needed for the GUI version'
+ 'gtk2: needed for the GUI version')
+source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh" "$pkgname.service")
+noextract=($pkgname-$pkgver.zip)
+sha256sums=('212eb275cf9df8b6f49d8ce2bb386246081be7f01d907577fbd09a9f27055628'
+ '009c0a65a978ad11ac097edd4be64688a2c80281b201495eff9ab667c5b0f0fe'
+ 'c1bc7bc6336cbd988fb2e54610693886a20bc4bff48b499617ff4f6fc5b09052')
+
+package() {
+ cd "$srcdir"
+ install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
+ unzip -q LanguageTool-$pkgver.zip -d "$pkgdir"/usr/share
+ cd "$pkgdir"/usr/share/
+ mv LanguageTool-$pkgver $pkgname
+ cd $pkgname
+ mv *.jar "$pkgdir"/usr/share/java/$pkgname
+ mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname
+ rm -rf libs
+ install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
+ mkdir -p "$pkgdir"/usr/lib/systemd/system
+ install -m644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+}
Deleted: languagetool.service
===================================================================
--- languagetool.service 2020-06-28 17:52:34 UTC (rev 655144)
+++ languagetool.service 2020-06-28 17:52:44 UTC (rev 655145)
@@ -1,14 +0,0 @@
-[Unit]
-Description=Languagetool HTTP server
-
-[Service]
-Type=simple
-PIDFile=/run/language-tool.pid
-User=nobody
-Restart=always
-ExecStart=/usr/bin/languagetool --http --allow-origin "*"
-ExecReload=/bin/kill -HUP $MAINPID
-ExecStop=/bin/kill -QUIT $MAINPID
-
-[Install]
-WantedBy=multi-user.target
Copied: languagetool/repos/community-any/languagetool.service (from rev 655144, languagetool/trunk/languagetool.service)
===================================================================
--- languagetool.service (rev 0)
+++ languagetool.service 2020-06-28 17:52:44 UTC (rev 655145)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Languagetool HTTP server
+
+[Service]
+Type=simple
+PIDFile=/run/language-tool.pid
+User=nobody
+Restart=always
+ExecStart=/usr/bin/languagetool --http --allow-origin "*"
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -QUIT $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Deleted: languagetool.sh
===================================================================
--- languagetool.sh 2020-06-28 17:52:34 UTC (rev 655144)
+++ languagetool.sh 2020-06-28 17:52:44 UTC (rev 655145)
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-file_present=false
-asked_for_help=false
-start_server=false
-http_server=false
-
-declare -a argv=("$@")
-
-i=0
-for arg in "$@"; do
- if [[ $arg != -* ]]; then
- file_present=true
- fi
- if [[ $arg == --config* ]]; then
- start_server=true
- fi
- if [[ $arg == --http ]]; then
- start_server=true
- http_server=true
- unset argv[$i]
- fi
- if [[ $arg == -h ]]; then
- asked_for_help=true
- unset argv[$i]
- fi
- if [[ $arg == --help ]]; then
- asked_for_help=true
- unset argv[$i]
- fi
- ((i++))
-done
-
-CP=/usr/share/languagetool
-for name in /usr/share/java/languagetool/*.jar ; do
- CP=$CP:$name
-done
-
-CLI_command='org.languagetool.commandline.Main'
-GUI_command='org.languagetool.gui.Main'
-NSRV_command='org.languagetool.server.HTTPServer'
-SSRV_command='org.languagetool.server.HTTPSServer'
-
-if $asked_for_help; then
- echo "Command-line interface (CLI) help:"
- "$JAVA_HOME/bin/java" -cp $CP $CLI_command -h | sed "s/java -jar languagetool-commandline.jar/languagetool/"
- echo
- echo "Graphical user interface (GUI) help:"
- "$JAVA_HOME/bin/java" -cp $CP $GUI_command -h | sed "s/java org.languagetool.gui.Main/languagetool/"
- echo
- echo "HTTP server help:"
- "$JAVA_HOME/bin/java" -cp $CP $NSRV_command -h | sed "s/HTTPServer/languagetool --http/"
- echo
- echo "HTTPS server help:"
- "$JAVA_HOME/bin/java" -cp $CP $SSRV_command -h | sed "s/HTTPSServer/languagetool/"
-else
- if $start_server; then
- if $http_server; then
- "$JAVA_HOME/bin/java" -cp $CP $NSRV_command "${argv[@]}"
- else
- "$JAVA_HOME/bin/java" -cp $CP $SSRV_command "${argv[@]}"
- fi
- else
- if $file_present; then
- "$JAVA_HOME/bin/java" -cp $CP $CLI_command "${argv[@]}"
- else
- "$JAVA_HOME/bin/java" -cp $CP $GUI_command "${argv[@]}"
- fi
- fi
-fi
-
Copied: languagetool/repos/community-any/languagetool.sh (from rev 655144, languagetool/trunk/languagetool.sh)
===================================================================
--- languagetool.sh (rev 0)
+++ languagetool.sh 2020-06-28 17:52:44 UTC (rev 655145)
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+file_present=false
+asked_for_help=false
+start_server=false
+http_server=false
+
+declare -a argv=("$@")
+
+i=0
+for arg in "$@"; do
+ if [[ $arg != -* ]]; then
+ file_present=true
+ fi
+ if [[ $arg == --config* ]]; then
+ start_server=true
+ fi
+ if [[ $arg == --http ]]; then
+ start_server=true
+ http_server=true
+ unset argv[$i]
+ fi
+ if [[ $arg == -h ]]; then
+ asked_for_help=true
+ unset argv[$i]
+ fi
+ if [[ $arg == --help ]]; then
+ asked_for_help=true
+ unset argv[$i]
+ fi
+ ((i++))
+done
+
+CP=/usr/share/languagetool
+for name in /usr/share/java/languagetool/*.jar ; do
+ CP=$CP:$name
+done
+
+CLI_command='org.languagetool.commandline.Main'
+GUI_command='org.languagetool.gui.Main'
+NSRV_command='org.languagetool.server.HTTPServer'
+SSRV_command='org.languagetool.server.HTTPSServer'
+
+if $asked_for_help; then
+ echo "Command-line interface (CLI) help:"
+ "$JAVA_HOME/bin/java" -cp $CP $CLI_command -h | sed "s/java -jar languagetool-commandline.jar/languagetool/"
+ echo
+ echo "Graphical user interface (GUI) help:"
+ "$JAVA_HOME/bin/java" -cp $CP $GUI_command -h | sed "s/java org.languagetool.gui.Main/languagetool/"
+ echo
+ echo "HTTP server help:"
+ "$JAVA_HOME/bin/java" -cp $CP $NSRV_command -h | sed "s/HTTPServer/languagetool --http/"
+ echo
+ echo "HTTPS server help:"
+ "$JAVA_HOME/bin/java" -cp $CP $SSRV_command -h | sed "s/HTTPSServer/languagetool/"
+else
+ if $start_server; then
+ if $http_server; then
+ "$JAVA_HOME/bin/java" -cp $CP $NSRV_command "${argv[@]}"
+ else
+ "$JAVA_HOME/bin/java" -cp $CP $SSRV_command "${argv[@]}"
+ fi
+ else
+ if $file_present; then
+ "$JAVA_HOME/bin/java" -cp $CP $CLI_command "${argv[@]}"
+ else
+ "$JAVA_HOME/bin/java" -cp $CP $GUI_command "${argv[@]}"
+ fi
+ fi
+fi
+
More information about the arch-commits
mailing list