mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
bat: update to 0.24.0
This commit is contained in:
parent
38eb546f46
commit
683922a63c
3 changed files with 24 additions and 40 deletions
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/Cargo.toml b/Cargo.toml
|
|
||||||
index 44460e0..78dfbde 100644
|
|
||||||
--- a/Cargo.toml
|
|
||||||
+++ b/Cargo.toml
|
|
||||||
@@ -68,7 +68,7 @@ walkdir = { version = "2.0", optional = true }
|
|
||||||
bytesize = { version = "1.1.0" }
|
|
||||||
|
|
||||||
[dependencies.git2]
|
|
||||||
-version = "0.16"
|
|
||||||
+version = "0.17"
|
|
||||||
optional = true
|
|
||||||
default-features = false
|
|
||||||
|
|
13
srcpkgs/bat/patches/downgrade-git2.patch
Normal file
13
srcpkgs/bat/patches/downgrade-git2.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/Cargo.toml b/Cargo.toml
|
||||||
|
index e31fbc3..cc4cdf9 100644
|
||||||
|
--- a/Cargo.toml
|
||||||
|
+++ b/Cargo.toml
|
||||||
|
@@ -69,7 +69,7 @@ os_str_bytes = { version = "~6.4", optional = true }
|
||||||
|
run_script = { version = "^0.10.0", optional = true}
|
||||||
|
|
||||||
|
[dependencies.git2]
|
||||||
|
-version = "0.18"
|
||||||
|
+version = "0.17"
|
||||||
|
optional = true
|
||||||
|
default-features = false
|
||||||
|
|
|
@ -1,45 +1,29 @@
|
||||||
# Template file for 'bat'
|
# Template file for 'bat'
|
||||||
pkgname=bat
|
pkgname=bat
|
||||||
version=0.23.0
|
version=0.24.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
hostmakedepends="cmake llvm clang pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libcurl-devel libgit2-devel libssh2-devel oniguruma-devel"
|
makedepends="libgit2-devel oniguruma-devel"
|
||||||
short_desc="Cat(1) clone with syntax highlighting and Git integration"
|
short_desc="Cat(1) clone with syntax highlighting and Git integration"
|
||||||
maintainer="John <me@johnnynator.dev>"
|
maintainer="John <me@johnnynator.dev>"
|
||||||
license="Apache-2.0, MIT"
|
license="Apache-2.0, MIT"
|
||||||
homepage="https://github.com/sharkdp/bat"
|
homepage="https://github.com/sharkdp/bat"
|
||||||
changelog="https://raw.githubusercontent.com/sharkdp/bat/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/sharkdp/bat/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/sharkdp/bat/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/sharkdp/bat/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=30b6256bea0143caebd08256e0a605280afbbc5eef7ce692f84621eb232a9b31
|
checksum=907554a9eff239f256ee8fe05a922aad84febe4fe10a499def72a4557e9eedfb
|
||||||
|
|
||||||
# skip problematic doctests on i686
|
export BAT_ASSETS_GEN_DIR="${XBPS_BUILDDIR}/${pkgname}-${version}"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
i686) make_check_args="--tests";;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
cargo update --package git2@0.16.1 --precise 0.17.2
|
cargo update --package git2@0.18.0 --precise 0.17.2
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"
|
|
||||||
export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
local manpage
|
|
||||||
vlicense LICENSE-MIT
|
vlicense LICENSE-MIT
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
# The manual page is hidden somewhere deep in the build tree
|
vman assets/manual/bat.1
|
||||||
manpage=$(find ${wrksrc}/target -name bat.1 | head -n1)
|
vcompletion assets/completions/bat.fish fish
|
||||||
vman ${manpage}
|
vcompletion assets/completions/bat.zsh zsh
|
||||||
# Completions are also hidden somewhere deep in the build tree
|
vcompletion assets/completions/bat.bash bash
|
||||||
fish_completion=$(find ${wrksrc}/target -name bat.fish -print -quit)
|
|
||||||
vcompletion ${fish_completion} fish
|
|
||||||
zsh_completion=$(find ${wrksrc}/target -name bat.zsh -print -quit)
|
|
||||||
vcompletion ${zsh_completion} zsh
|
|
||||||
bash_completion=$(find ${wrksrc}/target -name bat.bash -print -quit)
|
|
||||||
vcompletion ${bash_completion} bash
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue