gentoo-ebuilds/app-misc/dateutils/dateutils-0.4.10.ebuild
Florian Schmaus 0db1e92935
app-misc/dateutils: make PATCHES a bash array
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2025-02-09 17:58:35 +01:00

40 lines
780 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Command line date and time utilities"
HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils"
case "${PV}" in
9999)
inherit autotools git-r3
EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git"
;;
*)
SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz"
KEYWORDS="amd64 x86"
esac
LICENSE="BSD"
SLOT="0"
BDEPEND="app-arch/xz-utils"
DEPEND="sys-libs/timezone-data"
PATCHES=(
"${FILESDIR}"/${P}-gcc-14.patch
)
# bug 429810
RDEPEND="${DEPEND}
!sys-fabric/dapl"
src_prepare() {
default
[[ "${PV}" = 9999 ]] && eautoreconf
}
src_configure() {
econf CFLAGS="${CFLAGS}"
}