tzutils: update to 2023d.

This commit is contained in:
Đoàn Trần Công Danh 2023-12-23 21:21:27 +07:00
parent d989670185
commit 8aa70a684a
3 changed files with 18 additions and 16 deletions

View file

@ -1,11 +1,11 @@
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -768,7 +768,7 @@ tzselect: tzselect.ksh version @@ -827,7 +827,7 @@ check: check_back check_mild
check_mild: check_character_set check_white_space check_links \
check: check_character_set check_white_space check_links \ check_name_lengths check_now \
check_name_lengths check_slashed_abbrs check_sorted \ check_slashed_abbrs check_sorted \
- check_tables check_web check_ziguard check_zishrink check_tzs - check_tables check_web check_ziguard check_zishrink check_tzs
+ check_tables check_ziguard check_zishrink check_tzs + check_tables check_ziguard check_zishrink check_tzs
check_character_set: $(ENCHILADA) # True if UTF8_LOCALE does not work;
test ! '$(UTF8_LOCALE)' || \ # otherwise, false but with LC_ALL set to $(UTF8_LOCALE).

View file

@ -1,15 +1,17 @@
Avoid dependencies to bash, in order to reduce the bootstrap chain, Avoid dependencies to bash, in order to reduce the bootstrap chain,
However, this utility works better with bash because of select builtin However, this utility works better with bash because of select builtin
Index: tzutils-2021b/tzselect.ksh --- a/tzselect.ksh
=================================================================== +++ b/tzselect.ksh
--- tzutils-2021b.orig/tzselect.ksh @@ -2,6 +2,14 @@
+++ tzutils-2021b/tzselect.ksh
@@ -2,6 +2,10 @@
# Ask the user about the time zone, and output the resulting TZ value to stdout. # Ask the user about the time zone, and output the resulting TZ value to stdout.
# Interact with the user via stderr and stdin. # Interact with the user via stderr and stdin.
+if [ -z "$BASH_VERSION" ] && [ -x /bin/bash ]; then +if [ -z "$BASH_VERSION$KSH_VERSION" ]; then
+ exec /bin/bash "$0" "$@" + if [ -x /bin/ksh ]; then
+ exec /bin/ksh "$0" "$@"
+ elif [ -x /bin/bash ]; then
+ exec /bin/bash "$0" "$@"
+ fi
+fi +fi
+ +
PKGVERSION='(tzcode) ' PKGVERSION='(tzcode) '

View file

@ -1,14 +1,14 @@
# Template file for 'tzutils' # Template file for 'tzutils'
pkgname=tzutils pkgname=tzutils
version=2023c version=2023d
revision=2 revision=1
bootstrap=yes bootstrap=yes
short_desc="Time zone and daylight-saving time utilities" short_desc="Time zone and daylight-saving time utilities"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>" maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="Public Domain" license="Public Domain"
homepage="https://www.iana.org/time-zones" homepage="https://www.iana.org/time-zones"
distfiles="https://www.iana.org/time-zones/repository/releases/tzdb-${version}.tar.lz" distfiles="https://www.iana.org/time-zones/repository/releases/tzdb-${version}.tar.lz"
checksum=08fd090f1a16d522ae4e9247445056f4155002239e5be760b31ba0376d2e632c checksum=696849b454176ea8f52dd7e9001999d01f5bb594344190a0c4084aeaf7f86bd8
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
hostmakedepends="tzutils" hostmakedepends="tzutils"