Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/languagetool/files/, app-vim/languagetool/
Date: Sat, 24 Sep 2016 01:38:23
Message-Id: 1474681046.305326add45814ebf347d4de9a0f7387bee246c7.radhermit@gentoo
1 commit: 305326add45814ebf347d4de9a0f7387bee246c7
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 01:36:20 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 01:37:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=305326ad
7
8 app-vim/languagetool: initial import
9
10 app-vim/languagetool/Manifest | 1 +
11 .../files/languagetool-1.29-script.patch | 38 ++++++++++++++++++++++
12 app-vim/languagetool/languagetool-1.29.ebuild | 18 ++++++++++
13 app-vim/languagetool/metadata.xml | 8 +++++
14 4 files changed, 65 insertions(+)
15
16 diff --git a/app-vim/languagetool/Manifest b/app-vim/languagetool/Manifest
17 new file mode 100644
18 index 00000000..51de5d0
19 --- /dev/null
20 +++ b/app-vim/languagetool/Manifest
21 @@ -0,0 +1 @@
22 +DIST languagetool-1.29.tar.bz2 8059 SHA256 92fd4bf94c65828f1c309da5257336a2287c07cae7ab6a4709ae1b79dcbbbcca SHA512 09b5bdc1d3590afe26578f687064a7a62493a11fafca903759dc1e9048cb22a04c6352127b13e4a63acb867d73d943b56fcae7f733350626f05b66a6d1f1626d WHIRLPOOL d5c8d411b465fdad629493e834d154e7e3a25898b20bc009c4ff9977593ab46ca6e0f6f57ae7933da08b9f7283ebc793106a4eb31a17d670050a94f27a2f2af5
23
24 diff --git a/app-vim/languagetool/files/languagetool-1.29-script.patch b/app-vim/languagetool/files/languagetool-1.29-script.patch
25 new file mode 100644
26 index 00000000..f2737fe
27 --- /dev/null
28 +++ b/app-vim/languagetool/files/languagetool-1.29-script.patch
29 @@ -0,0 +1,38 @@
30 +Use launcher script instead of directly running from the jar file.
31 +
32 +--- languagetool-1.29/plugin/LanguageTool.vim
33 ++++ languagetool-1.29/plugin/LanguageTool.vim
34 +@@ -162,23 +162,6 @@
35 + endif
36 + endif
37 + endif
38 +-
39 +- let s:languagetool_jar = exists("g:languagetool_jar")
40 +- \ ? g:languagetool_jar
41 +- \ : $HOME . '/languagetool/languagetool-commandline.jar'
42 +-
43 +- if !filereadable(s:languagetool_jar)
44 +- " Hmmm, can't find the jar file. Try again with expand() in case user
45 +- " set it up as: let g:languagetool_jar = '$HOME/languagetool-commandline.jar'
46 +- let l:languagetool_jar = expand(s:languagetool_jar)
47 +- if !filereadable(expand(l:languagetool_jar))
48 +- echomsg "LanguageTool cannot be found at: " . s:languagetool_jar
49 +- echomsg "You need to install LanguageTool and/or set up g:languagetool_jar"
50 +- echomsg "to indicate the location of the languagetool-commandline.jar file."
51 +- return -1
52 +- endif
53 +- let s:languagetool_jar = l:languagetool_jar
54 +- endif
55 + return 0
56 + endfunction
57 +
58 +@@ -242,8 +225,7 @@
59 + let l:range = a:line1 . ',' . a:line2
60 + silent exe l:range . 'w!' . l:tmpfilename
61 +
62 +- let l:languagetool_cmd = 'java'
63 +- \ . ' -jar ' . s:languagetool_jar
64 ++ let l:languagetool_cmd = 'languagetool'
65 + \ . ' -c ' . s:languagetool_encoding
66 + \ . (empty(s:languagetool_disable_rules) ? '' : ' -d '.s:languagetool_disable_rules)
67 + \ . ' -l ' . s:languagetool_lang
68
69 diff --git a/app-vim/languagetool/languagetool-1.29.ebuild b/app-vim/languagetool/languagetool-1.29.ebuild
70 new file mode 100644
71 index 00000000..3dcbcc7
72 --- /dev/null
73 +++ b/app-vim/languagetool/languagetool-1.29.ebuild
74 @@ -0,0 +1,18 @@
75 +# Copyright 1999-2016 Gentoo Foundation
76 +# Distributed under the terms of the GNU General Public License v2
77 +# $Id$
78 +
79 +EAPI=6
80 +inherit vim-plugin eutils
81 +
82 +MY_PN=LanguageTool
83 +DESCRIPTION="grammar checker for various languages"
84 +HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=3223"
85 +LICENSE="vim"
86 +KEYWORDS="~amd64 ~x86"
87 +
88 +VIM_PLUGIN_HELPFILES="${MY_PN}"
89 +
90 +RDEPEND="app-text/languagetool"
91 +
92 +PATCHES=( "${FILESDIR}"/${P}-script.patch )
93
94 diff --git a/app-vim/languagetool/metadata.xml b/app-vim/languagetool/metadata.xml
95 new file mode 100644
96 index 00000000..84f8f1c
97 --- /dev/null
98 +++ b/app-vim/languagetool/metadata.xml
99 @@ -0,0 +1,8 @@
100 +<?xml version="1.0" encoding="UTF-8"?>
101 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
102 +<pkgmetadata>
103 + <maintainer type="project">
104 + <email>vim@g.o</email>
105 + <name>Gentoo Vim Project</name>
106 + </maintainer>
107 +</pkgmetadata>