You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
804 B
41 lines
804 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
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"
|
|
|
|
# bug 429810
|
|
RDEPEND="${DEPEND}
|
|
!sys-fabric/dapl"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-0.4.6-unportable-sys-sysctl_h.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
[[ "${PV}" = 9999 ]] && eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf CFLAGS="${CFLAGS}"
|
|
}
|