mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
app-text/vale: add 2.28.3, drop 2.27.0
Signed-off-by: Ferenc Erki <erkiferenc@gmail.com>
This commit is contained in:
45
app-text/vale/vale-2.28.3.ebuild
Normal file
45
app-text/vale/vale-2.28.3.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 2021-2023 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/"
|
||||
|
||||
SRC_URI="
|
||||
https://github.com/errata-ai/vale/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/ferki/${PN}/releases/download/v${PV}-gentoo-deps/${P}-gentoo-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
|
||||
}
|
||||
Reference in New Issue
Block a user