diff options
Diffstat (limited to 'app-vim/languagetool')
-rw-r--r-- | app-vim/languagetool/Manifest | 6 | ||||
-rw-r--r-- | app-vim/languagetool/files/languagetool-1.29-script.patch | 38 | ||||
-rw-r--r-- | app-vim/languagetool/languagetool-1.29.ebuild | 17 | ||||
-rw-r--r-- | app-vim/languagetool/languagetool-1.30.ebuild | 17 | ||||
-rw-r--r-- | app-vim/languagetool/metadata.xml | 8 |
5 files changed, 86 insertions, 0 deletions
diff --git a/app-vim/languagetool/Manifest b/app-vim/languagetool/Manifest new file mode 100644 index 000000000000..3339a06c9bd2 --- /dev/null +++ b/app-vim/languagetool/Manifest @@ -0,0 +1,6 @@ +AUX languagetool-1.29-script.patch 1413 BLAKE2B 23aa4adc8c59689fcb18ff9b6fa0068035eaf212aedc9920d87a729cc7e4b34a32e11524cec1785d23cb08cbf9b1fe5ec5315ef4c7fdc2eb96324f06caac5c3b SHA512 b4e25e527a8af3ea5fe649bd31aa0ecf0f073a0852f1f155ecf2cbdc58d105ce114db8a12dc56ee086a9076cb15e5bde61e7340e570fff59093ed2f266247564 +DIST languagetool-1.29.tar.bz2 8059 BLAKE2B 0779ada2bfa80de9ca6e8237d5fc1891d2b99b06a438d16290cd2c6cc8c88a5202fe66f9754e98bc6519e6c24a2264e8bad7510dc43d53ae703c7e659c82c3bd SHA512 09b5bdc1d3590afe26578f687064a7a62493a11fafca903759dc1e9048cb22a04c6352127b13e4a63acb867d73d943b56fcae7f733350626f05b66a6d1f1626d +DIST languagetool-1.30.tar.bz2 8089 BLAKE2B 518036b68b80bbc083718a23c3aa07e9d118b8c6dc4f69cfa289566924ac2bd218b45ca53e850244676351b1566b580c6fac909376087d8274c289ab20727e49 SHA512 c04115752f8a601e85b718ea8d68cbdaa7628d14c252b4bb5bd11449ae2c5558ddee3d0f3a1bc2db84364e127fc211a0c4fe51e4ff9b442ebe99aa4f9d1db935 +EBUILD languagetool-1.29.ebuild 419 BLAKE2B 628ccee730308e4069687b81600aa548d2d7cb0a267e7e54219ad1a617109152c44050734d84bec256e93a33649885c14bf009c0aaebbc748538112afe0ebebe SHA512 f22e67f2930e6f5a8de39af57dd0e36c1a4dc9bfefd48ddf4c5fd8ee8e0479a58c667558cb5bec6f251158bbad1a7b243f3eb133eec3852452fa96b9b57b2fdc +EBUILD languagetool-1.30.ebuild 425 BLAKE2B 92c776abdd10fadb34e7b53ced866252cfe93e091f3d12d9413fcaee9769a5024fc25ff2fb3c89b60e5482db5f2c825bb54e85ccdd1056e151c023b086a887b4 SHA512 da2177d7f99694a11d5d2b820109c4016e8c872754717f9168da7c78a18d3f58c4fe7c8eadcbc927134c8c36e5adc81e5e90f1ee944d1279b100eba36cd27a14 +MISC metadata.xml 255 BLAKE2B c3c51ff357cdf3ea565d7f4bf7cb236342061e471b67eacc0a436c26d52532ce7499657a76fc92a845321318a65f9eb877573104341ddae66dc3a554a35f7362 SHA512 305ae93d2bb3da79ee181cf36bb0ca2bbac016c20555967d7281cd5c0edfc26c1450dacd7a7de57078650dab0e815be9169c0b25a24d71488185f71ae8834167 diff --git a/app-vim/languagetool/files/languagetool-1.29-script.patch b/app-vim/languagetool/files/languagetool-1.29-script.patch new file mode 100644 index 000000000000..f2737feca8c9 --- /dev/null +++ b/app-vim/languagetool/files/languagetool-1.29-script.patch @@ -0,0 +1,38 @@ +Use launcher script instead of directly running from the jar file. + +--- languagetool-1.29/plugin/LanguageTool.vim ++++ languagetool-1.29/plugin/LanguageTool.vim +@@ -162,23 +162,6 @@ + endif + endif + endif +- +- let s:languagetool_jar = exists("g:languagetool_jar") +- \ ? g:languagetool_jar +- \ : $HOME . '/languagetool/languagetool-commandline.jar' +- +- if !filereadable(s:languagetool_jar) +- " Hmmm, can't find the jar file. Try again with expand() in case user +- " set it up as: let g:languagetool_jar = '$HOME/languagetool-commandline.jar' +- let l:languagetool_jar = expand(s:languagetool_jar) +- if !filereadable(expand(l:languagetool_jar)) +- echomsg "LanguageTool cannot be found at: " . s:languagetool_jar +- echomsg "You need to install LanguageTool and/or set up g:languagetool_jar" +- echomsg "to indicate the location of the languagetool-commandline.jar file." +- return -1 +- endif +- let s:languagetool_jar = l:languagetool_jar +- endif + return 0 + endfunction + +@@ -242,8 +225,7 @@ + let l:range = a:line1 . ',' . a:line2 + silent exe l:range . 'w!' . l:tmpfilename + +- let l:languagetool_cmd = 'java' +- \ . ' -jar ' . s:languagetool_jar ++ let l:languagetool_cmd = 'languagetool' + \ . ' -c ' . s:languagetool_encoding + \ . (empty(s:languagetool_disable_rules) ? '' : ' -d '.s:languagetool_disable_rules) + \ . ' -l ' . s:languagetool_lang diff --git a/app-vim/languagetool/languagetool-1.29.ebuild b/app-vim/languagetool/languagetool-1.29.ebuild new file mode 100644 index 000000000000..271bff06b7cb --- /dev/null +++ b/app-vim/languagetool/languagetool-1.29.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit vim-plugin + +MY_PN=LanguageTool +DESCRIPTION="grammar checker for various languages" +HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=3223" +LICENSE="vim" +KEYWORDS="~amd64 ~x86" + +VIM_PLUGIN_HELPFILES="${MY_PN}" + +RDEPEND="app-text/languagetool" + +PATCHES=( "${FILESDIR}"/${P}-script.patch ) diff --git a/app-vim/languagetool/languagetool-1.30.ebuild b/app-vim/languagetool/languagetool-1.30.ebuild new file mode 100644 index 000000000000..b3e96c572a45 --- /dev/null +++ b/app-vim/languagetool/languagetool-1.30.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit vim-plugin + +MY_PN=LanguageTool +DESCRIPTION="grammar checker for various languages" +HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=3223" +LICENSE="vim" +KEYWORDS="~amd64 ~x86" + +VIM_PLUGIN_HELPFILES="${MY_PN}" + +RDEPEND="app-text/languagetool" + +PATCHES=( "${FILESDIR}"/${PN}-1.29-script.patch ) diff --git a/app-vim/languagetool/metadata.xml b/app-vim/languagetool/metadata.xml new file mode 100644 index 000000000000..84f8f1cf6bcb --- /dev/null +++ b/app-vim/languagetool/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>vim@gentoo.org</email> + <name>Gentoo Vim Project</name> + </maintainer> +</pkgmetadata> |