diff options
Diffstat (limited to 'app-text/vale')
-rw-r--r-- | app-text/vale/Manifest | 2 | ||||
-rw-r--r-- | app-text/vale/vale-3.5.0.ebuild | 45 |
2 files changed, 47 insertions, 0 deletions
diff --git a/app-text/vale/Manifest b/app-text/vale/Manifest index a7652a874..c4d9bf23d 100644 --- a/app-text/vale/Manifest +++ b/app-text/vale/Manifest @@ -4,3 +4,5 @@ DIST vale-3.4.1-deps.tar.xz 151263460 BLAKE2B 828348dc5e0447ba54cf9b4e369c4e2c63 DIST vale-3.4.1.tar.gz 10528911 BLAKE2B 1975806a212c9bf61f92ec5b4a12f625a7a1d0242ead91b602e57500126c8e635b725ed1072b5cb2907838d73822d8fa66266cf40df1f62f0dd50b678f083423 SHA512 93a70954fa67e8f1a7c3c3c8681784b06c32388c70eb6c75ae90292ae3a913dbb89a0539361b689470ee6a77fd9e0419312a98f64af4d1236d32dc436e3a4d9d DIST vale-3.4.2-gentoo-deps.tar.xz 146710436 BLAKE2B 62b1f122f6f29c9037762675e6efd2783317400ee18ae030c6346a14e614aaaa5a96157eab82881204602da6daf09496b06067de971cb0e4107897234968ea57 SHA512 0261b5c69ab095540077f084fccf96c22f81eb53070daf3425ded5c2716b197dc268e420429b89dd5ab87323c1c7ad3832e33bcee4ed9f19a032ff8683187a75 DIST vale-3.4.2.tar.gz 10528649 BLAKE2B ddad91adc3a132d583df305501f0b80af7267ce249c17f54abe57c013e03463bd3a143a789148637a393cc479da257aabf06597fb9f70a1e961f8854d21cb9f3 SHA512 e6d6ec06d968ac35abf7f08eb5938b46f2e0162c511acef89f0307ba8a917cd7b9b9c3e0ddee50b720e845252991a88a5fa52f9cc3f9415130147db7c2256dac +DIST vale-3.5.0-deps.tar.xz 163145008 BLAKE2B 03c657708096bccfb3fe478f70a46dd8ee7d75193f3422641c74b34f44b790f6f809514b0d4fe3e2b1a02719f620d747104ac8b4165592490b288e348bea586e SHA512 ed1c66fbf879abded56d18b1d6ec87ecd8eee6bbf5a048eb7fde3a2ae5e42b99f1ca4acb56cc791dfb0f0ebc2f925cebdd3a6080fc30999fd0cba403d8332241 +DIST vale-3.5.0.tar.gz 10535020 BLAKE2B 35808c41569a75bdcc32c6339e56adbdf44bfbcf9a52f8447f10d706c91ee097948a12264406891701911d7ce5a910f5fc7bdce3e486a6103eeb2f093735a544 SHA512 131f102033090e81afabf883068f96d30c81b4dd24fac51e86fa71ce76a81b9da23063837e3cee2464394f6af5f5ef2153ef1effceb3ca1554b04639b8aad109 diff --git a/app-text/vale/vale-3.5.0.ebuild b/app-text/vale/vale-3.5.0.ebuild new file mode 100644 index 000000000..c61b0b9fb --- /dev/null +++ b/app-text/vale/vale-3.5.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module optfeature + +DESCRIPTION="A syntax-aware linter for prose built with speed and extensibility in mind" +HOMEPAGE="https://vale.sh/docs/ https://github.com/errata-ai/vale" + +SRC_URI=" + https://github.com/errata-ai/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://gentoo.aur.im/distfiles/${P}-deps.tar.xz +" + +LICENSE="Apache-2.0 BSD BSD-2 MIT public-domain" +SLOT="0" +KEYWORDS="~amd64" + +# tests require: +# - various ruby gems: see testdata/Gemfile +# - packaged optional runtime dependencies: asciidoctor, rst2html, xsltproc +# - unpackaged optional runtime dependency: dita (may be removed in a patch) +# - network access: sync subcommand tests (may be removed in a patch) +RESTRICT="test" + +src_prepare() { + sed -i "s/\$(LAST_TAG)/v${PV}/" Makefile || die 'sed failed' + default +} + +src_compile() { + emake build os=linux +} + +src_install() { + dobin bin/vale + default_src_install +} + +pkg_postinst() { + optfeature "AsciiDoc support" dev-ruby/asciidoctor + optfeature "reStructuredText support" dev-python/docutils + optfeature "XML support" dev-libs/libxslt +} |