Files
guru/app-text/vale/vale-3.5.0.ebuild
Aliaksei Urbanski cd3e1061a5 app-text/vale: add 3.5.0
Release:
  - https://github.com/errata-ai/vale/releases/tag/v3.5.0

These changes also:
  - extend the HOMEPAGE

Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
Closes: https://github.com/gentoo/guru/pull/199
Signed-off-by: Julien Roy <julien@jroy.ca>
2024-06-14 18:55:51 -04:00

46 lines
1.1 KiB
Bash

# 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
}