blob: 47410dd3e76793cb05de83519dd39557c57aa3f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/"
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
}
|