mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
app-text/vale: new package, add 2.27.0
Signed-off-by: Ferenc Erki <erkiferenc@gmail.com>
This commit is contained in:
2
app-text/vale/Manifest
Normal file
2
app-text/vale/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST vale-2.27.0-gentoo-deps.tar.xz 137327640 BLAKE2B 384bc73f222b7abddaa77329411ab9f8fcf5712a031d0f3e793239c2d21bda5dfc6ab9e3e920a3d302cdd1fb82ab909c5824929e4884471a4f213cd15a9817dc SHA512 d5ba4f77154f1e8ab5b017bcdcf1965797d3e4f8289d8446cb795ae1d6871189d149de02e258195fc6c2a144acb3e3e18d0edda8e878ba71bd8079724876261e
|
||||
DIST vale-2.27.0.tar.gz 9654797 BLAKE2B 9c601a4e7bc877a8a2706d5a3e6374921abb59e71dee46ad30921d687aef7c13de83a936ac6da0a7267c0eaa1102c23024cf7ac37141dee778675cb399b28429 SHA512 759552fd0a794accf9de74d87e3bc3c31aa0d6ea99a9a60bf884112398a719321cd1596d0573111d19c28a6eea3aea3ff28e7f919117f0b6f31cec31c177de37
|
||||
11
app-text/vale/metadata.xml
Normal file
11
app-text/vale/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>erkiferenc@gmail.com</email>
|
||||
<name>Ferenc Erki</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">errata-ai/vale</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
45
app-text/vale/vale-2.27.0.ebuild
Normal file
45
app-text/vale/vale-2.27.0.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