diff options
author | Erich Ritz <erich.public@protonmail.com> | 2023-02-14 14:48:36 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:06:38 +0700 |
commit | 02b3840e1986d7ffe9717482b1b757b57220f28e (patch) | |
tree | 83dc449205dce656845033911a4f40957ee0086c /system | |
parent | a69f82a0ddafce005e899838a8a8f6a96758e96e (diff) |
system/bat: Switch dependency to rust16.
Signed-off-by: Erich Ritz <erich.public@protonmail.com>
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/bat/README | 15 | ||||
-rw-r--r-- | system/bat/bat.SlackBuild | 11 | ||||
-rw-r--r-- | system/bat/bat.info | 2 |
3 files changed, 23 insertions, 5 deletions
diff --git a/system/bat/README b/system/bat/README index 22e5e908b72a6..caedaf1c7b020 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 982f5df0b07b7..c26b53c0d6485 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 <slackbuilds@jaxartes.net> -# 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 260bcb73ea79f..f9ea9ee37ecfe 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" |