From 02b3840e1986d7ffe9717482b1b757b57220f28e Mon Sep 17 00:00:00 2001 From: Erich Ritz Date: Tue, 14 Feb 2023 14:48:36 -0600 Subject: system/bat: Switch dependency to rust16. Signed-off-by: Erich Ritz Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- system/bat/README | 15 +++++++++++++-- system/bat/bat.SlackBuild | 11 +++++++++-- system/bat/bat.info | 2 +- 3 files changed, 23 insertions(+), 5 deletions(-) (limited to 'system/bat') diff --git a/system/bat/README b/system/bat/README index 22e5e908b72a..caedaf1c7b02 100644 --- a/system/bat/README +++ b/system/bat/README @@ -1,4 +1,15 @@ bat is a cat clone with syntax highlighting and Git integration. -Rust 1.60 or newer is a compile-time dependency, which is available from -the Slackware tree in extra/rust-for-mozilla/. +bat prints the syntax-highlighted content of a collection of FILEs to +the terminal. If no FILE is specified, or when FILE is '-', it reads +from standard input. + +bat supports a large number of programming and markup languages. It also +communicates with git(1) to show modifications with respect to the git +index. bat automatically pipes its output through a pager (by default: +less). + +Whenever the output of bat goes to a non-interactive terminal, i.e. when +the output is piped into another process or into a file, bat will act as +a drop-in replacement for cat(1) and fall back to printing the plain +file contents. diff --git a/system/bat/bat.SlackBuild b/system/bat/bat.SlackBuild index 982f5df0b07b..c26b53c0d648 100644 --- a/system/bat/bat.SlackBuild +++ b/system/bat/bat.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for bat # Copyright 2019-2021 Benjamin Trigona-Harany -# Copyright 2021-2022 Erich Ritz, Jenks, Oklahoma, USA +# Copyright 2021-2023 Erich Ritz, Jenks, Oklahoma, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bat VERSION=${VERSION:-0.22.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -152,6 +152,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +export PATH="/opt/rust16/bin:$PATH" +if [ -z "$LD_LIBRARY_PATH" ]; then + export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX" +else + export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH" +fi + CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/system/bat/bat.info b/system/bat/bat.info index 260bcb73ea79..f9ea9ee37ecf 100644 --- a/system/bat/bat.info +++ b/system/bat/bat.info @@ -295,6 +295,6 @@ MD5SUM="079a00e594fcd588bfaa6c21fc16a05f \ 331d07cdd036d528ede2f69c7ff0beb6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="%README%" +REQUIRES="rust16" MAINTAINER="Erich Ritz" EMAIL="erich.public@protonmail.com" -- cgit v1.2.3