app-misc/zk: Bump to 0.14.2
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
parent
d698240d23
commit
1c5f84a60e
@ -1,2 +1,2 @@
|
||||
DIST zk-0.14.1-deps.tar.xz 26443660 BLAKE2B 99860656b97079cfae1038be4a3d16b0e453ee97d06bcc35727d18780df64b23a554de5cc465deef35e3e1590191403c103b81a61e15a6fedab311269c5ddc1b SHA512 65b2f4ceb1f00c63470b43c3e06e2664efdd983cbc87900a192e8ba6b5d10564c585601730031513af29a4d1601ce0a646350657bdc573a0abde20e56c5d04de
|
||||
DIST zk-0.14.1.tar.gz 639890 BLAKE2B 12d88a4f13aa48fb9b7c02dcb9dd288d0ac22eac7bbb47c4a9cec7c53fc8e635a3f91b0b5f56ab43b47bfe64ad3cd7b1c78ece637790a99e340daa6d971aea07 SHA512 8bcf19454168545e53300c9d9f2cc3406c9eae8a6d7aa77eaaf03f1fe2ca5ab70d74635fa43478b93e134a379a74987da77bd7dc9bffcf10d72ee0d8752e2964
|
||||
DIST zk-0.14.2-deps.tar.xz 26567312 BLAKE2B d8e38ccae95434c5b41b8fafc9c40c54723b03a2bd82cb0a306d4c7a7a1e4d0bcbcb7225e22a89608abbb709a370d41bbc057fe0d6c960fce6ade18e5c35cfca SHA512 a4944d05c5f28928ac46599c9b25034fa9ebaed636e23045b4c4b3625dd5d50fc6b42326ccd0fb0da87d741bec0d57d58b4f716da6897611a633a4bcecca8eaa
|
||||
DIST zk-0.14.2.tar.gz 650652 BLAKE2B bdbd675b6a08cd7fe8f70a14f4bdd1d940ad38326107c5c083663a07ff28849098eaae5e34ca0247d846489f0e9c3256b5290e8f84c3e57d7e7a01a0edaacf1c SHA512 f423327cf1a2cdd7650ad20f095a450804ca1d18035f51ce4fa8a3e34db7445713957c96c97be1bbb31e1a2c03c5b8bb49f0d121a321587c101a1f8a44d357a8
|
||||
|
102
app-misc/zk/zk-0.14.2.ebuild
Normal file
102
app-misc/zk/zk-0.14.2.ebuild
Normal file
@ -0,0 +1,102 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
EGO_PN="github.com/zk-org/zk"
|
||||
inherit go-module
|
||||
COMMIT_ID="bf4800b52ceeab479a446dcb8b9ea63aad4dc36b"
|
||||
|
||||
DESCRIPTION="A plain text note-taking assistant"
|
||||
HOMEPAGE="https://github.com/zk-org/zk"
|
||||
|
||||
if [[ ${PV} == *_p* ]]; then
|
||||
SRC_URI="https://${EGO_PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT_ID}"
|
||||
else
|
||||
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
# Add the manually vendored tarball.
|
||||
# 1) Create a tar archive optimized to reproduced by other users or devs.
|
||||
# 2) Compress the archive using XZ limiting decompression memory for
|
||||
# pretty constraint systems.
|
||||
# Use something like:
|
||||
# GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
|
||||
# tar cf $P-deps.tar go-mod \
|
||||
# --mtime="1970-01-01" --sort=name --owner=portage --group=portage
|
||||
# xz -k -9eT0 --memlimit-decompress=4096M $P-deps.tar
|
||||
SRC_URI+=" https://files.holgersson.xyz/gentoo/distfiles/golang-pkg-deps/${P}-deps.tar.xz"
|
||||
|
||||
# As deps are linked into the resulting binary the licenses of all(sic!) deps
|
||||
# must be listed here. Check licenses e.g. with dev-go/lichen:
|
||||
# `lichen <path to binary> | cut -f2 -d: | cut -f1 -d'(' | sort -u`
|
||||
LICENSE="
|
||||
Apache-2.0
|
||||
BSD
|
||||
BSD-2
|
||||
GPL-3
|
||||
MIT
|
||||
MPL-2.0
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=(
|
||||
docs/automation.md
|
||||
docs/config-alias.md
|
||||
docs/config-extra.md
|
||||
docs/config-filter.md
|
||||
docs/config-group.md
|
||||
docs/config-lsp.md
|
||||
docs/config.md
|
||||
docs/config-notebook.md
|
||||
docs/config-note.md
|
||||
docs/daily-journal.md
|
||||
docs/editors-integration.md
|
||||
docs/external-call.md
|
||||
docs/external-processing.md
|
||||
docs/future-proof.md
|
||||
docs/getting-started.md
|
||||
docs/neuron.md
|
||||
docs/notebook-housekeeping.md
|
||||
docs/notebook.md
|
||||
docs/note-creation.md
|
||||
docs/note-filtering.md
|
||||
docs/note-format.md
|
||||
docs/note-frontmatter.md
|
||||
docs/note-id.md
|
||||
docs/style.md
|
||||
docs/tags.md
|
||||
docs/template-creation.md
|
||||
docs/template-format.md
|
||||
docs/template.md
|
||||
docs/tool-editor.md
|
||||
docs/tool-fzf.md
|
||||
docs/tool-pager.md
|
||||
docs/tool-shell.md
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
export CGO_ENABLE=1
|
||||
|
||||
# Flags -w, -s: Omit debugging information to reduce binary size,
|
||||
# see https://golang.org/cmd/link/.
|
||||
local mygobuildargs=(
|
||||
-buildmode=pie
|
||||
-mod readonly
|
||||
-modcacherw
|
||||
-ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w"
|
||||
-v -work -x
|
||||
-tags "fts5"
|
||||
)
|
||||
|
||||
ego build "${mygobuildargs[@]}" .
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -v -race -tags "fts5" ./...
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user