[arch-commits] Commit in languagetool/repos/community-any (6 files)
Andrzej Giniewicz
aginiewicz at nymeria.archlinux.org
Tue Apr 2 18:01:49 UTC 2013
Date: Tuesday, April 2, 2013 @ 20:01:49
Author: aginiewicz
Revision: 87535
archrelease: copy trunk to community-any
Added:
languagetool/repos/community-any/PKGBUILD
(from rev 87534, languagetool/trunk/PKGBUILD)
languagetool/repos/community-any/languagetool.install
(from rev 87534, languagetool/trunk/languagetool.install)
languagetool/repos/community-any/languagetool.sh
(from rev 87534, languagetool/trunk/languagetool.sh)
Deleted:
languagetool/repos/community-any/PKGBUILD
languagetool/repos/community-any/languagetool.install
languagetool/repos/community-any/languagetool.sh
----------------------+
PKGBUILD | 74 +++++++++++++++++++---------------------
languagetool.install | 26 +++++++-------
languagetool.sh | 89 ++++++++++++++++++++++++++++---------------------
3 files changed, 100 insertions(+), 89 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-04-02 18:01:39 UTC (rev 87534)
+++ PKGBUILD 2013-04-02 18:01:49 UTC (rev 87535)
@@ -1,38 +0,0 @@
-# $Id$
-# 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=2.0
-pkgrel=1
-pkgdesc="An open source language checker"
-arch=('any')
-url="http://www.languagetool.org"
-license=("LGPL")
-depends=('java-runtime-headless>=6')
-makedepends=('unzip')
-optdepends=('hunspell: needed for spell checking of some languages'
- 'java-runtime: needed for the GUI version'
- 'libxtst: needed for the GUI version'
- 'gtk2: needed for the GUI version')
-install=languagetool.install
-source=(http://www.languagetool.org/download/LanguageTool-stable.zip?$pkgver languagetool.sh)
-noextract=(LanguageTool-stable.zip?$pkgver)
-md5sums=('ca4d318fd07472e1ca46a3817dac5b74'
- '17a63e5abaf8a0ed201137bc9569895e')
-
-package() {
- cd "$srcdir"
- install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
- unzip -q LanguageTool-stable.zip?$pkgver -d "$pkgdir"/usr/share
- cd "$pkgdir"/usr/share/
- mv LanguageTool $pkgname
- cd $pkgname
- rm libhunspell-linux* hunspell-darwin* hunspell-win*
- ln -s /usr/lib/libhunspell-1.3.so libhunspell-linux-x86-32.so
- ln -s /usr/lib/libhunspell-1.3.so libhunspell-linux-x86-64.so
- mv *.jar "$pkgdir"/usr/share/java/$pkgname
- install -m755 "$srcdir"/languagetool.sh "$pkgdir"/usr/bin/$pkgname
-}
-
Copied: languagetool/repos/community-any/PKGBUILD (from rev 87534, languagetool/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-04-02 18:01:49 UTC (rev 87535)
@@ -0,0 +1,36 @@
+# $Id$
+# 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=2.1
+pkgrel=1
+pkgdesc="An open source language checker"
+arch=('any')
+url="http://www.languagetool.org"
+license=("LGPL")
+depends=('java-runtime-headless>=6')
+makedepends=('unzip')
+optdepends=('java-runtime: needed for the GUI version'
+ 'libxtst: needed for the GUI version'
+ 'gtk2: needed for the GUI version')
+install=$pkgname.install
+source=($pkgname-$pkgver.zip::"http://www.languagetool.org/download/LanguageTool-stable.zip?$pkgver" "$pkgname.sh")
+noextract=($pkgname-$pkgver.zip)
+md5sums=('b8a04d5f62803691b8e26882401753f7'
+ '9d3c008ad6c0e150a29ea0be8e32a7fe')
+
+package() {
+ cd "$srcdir"
+ install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
+ unzip -q $pkgname-$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
+}
+
Deleted: languagetool.install
===================================================================
--- languagetool.install 2013-04-02 18:01:39 UTC (rev 87534)
+++ languagetool.install 2013-04-02 18:01:49 UTC (rev 87535)
@@ -1,13 +0,0 @@
-post_install() {
- cat << EOF
- - LanguageTool can be run using command
- languagetool
- - To obtain help, use
- languagetool [-h|--help]
-EOF
-}
-
-post_upgrade() {
- post_install
-}
-
Copied: languagetool/repos/community-any/languagetool.install (from rev 87534, languagetool/trunk/languagetool.install)
===================================================================
--- languagetool.install (rev 0)
+++ languagetool.install 2013-04-02 18:01:49 UTC (rev 87535)
@@ -0,0 +1,13 @@
+post_install() {
+ cat << EOF
+ - LanguageTool can be run using command
+ languagetool
+ - To obtain help, use
+ languagetool [-h|--help]
+EOF
+}
+
+post_upgrade() {
+ post_install
+}
+
Deleted: languagetool.sh
===================================================================
--- languagetool.sh 2013-04-02 18:01:39 UTC (rev 87534)
+++ languagetool.sh 2013-04-02 18:01:49 UTC (rev 87535)
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-file_present=false
-asked_for_help=false
-
-for arg in "$@"; do
- if [[ $arg != -* ]]; then
- file_present=true
- fi
- if [[ $arg == -h ]]; then
- asked_for_help=true
- fi
- if [[ $arg == --help ]]; then
- asked_for_help=true
- fi
-done
-
-CP=/usr/share/languagetool
-for name in /usr/share/java/languagetool/*.jar ; do
- CP=$CP:$name
-done
-CLI_command='org.languagetool.Main'
-GUI_command='org.languagetool.gui.Main'
-
-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.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/"
-else
- if $file_present; then
- "$JAVA_HOME/bin/java" -cp $CP $CLI_command "$@"
- else
- "$JAVA_HOME/bin/java" -cp $CP $GUI_command "$@"
- fi
-fi
-
Copied: languagetool/repos/community-any/languagetool.sh (from rev 87534, languagetool/trunk/languagetool.sh)
===================================================================
--- languagetool.sh (rev 0)
+++ languagetool.sh 2013-04-02 18:01:49 UTC (rev 87535)
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+file_present=false
+asked_for_help=false
+start_server=false
+
+for arg in "$@"; do
+ if [[ $arg != -* ]]; then
+ file_present=true
+ fi
+ if [[ $arg == --config* ]]; then
+ start_server=true
+ fi
+ if [[ $arg == -h ]]; then
+ asked_for_help=true
+ fi
+ if [[ $arg == --help ]]; then
+ asked_for_help=true
+ fi
+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'
+SRV_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.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 "HTTPS server help:"
+ "$JAVA_HOME/bin/java" -cp $CP $SRV_command -h | sed "s/HTTPSServer/languagetool/"
+else
+ if $start_server; then
+ "$JAVA_HOME/bin/java" -cp $CP $SRV_command "$@"
+ else
+ if $file_present; then
+ "$JAVA_HOME/bin/java" -cp $CP $CLI_command "$@"
+ else
+ "$JAVA_HOME/bin/java" -cp $CP $GUI_command "$@"
+ fi
+ fi
+fi
+
More information about the arch-commits
mailing list