gentoo/net-misc/getdate/getdate-1.2-r3.ebuild
Sam James e9cba1aa21
net-misc/getdate: Stabilize 1.2-r3 x86, #958762
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-23 01:18:04 +01:00

42 lines
832 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN}_rfc868"
MY_P="${MY_PN}-${PV}"
inherit toolchain-funcs
DESCRIPTION="Network Date/Time Query and Set Local Date/Time Utility"
HOMEPAGE="https://www.ibiblio.org/pub/Linux/system/network/misc/"
SRC_URI="https://www.ibiblio.org/pub/Linux/system/network/misc/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-1+"
SLOT="0"
KEYWORDS="amd64 ~mips ppc x86"
PATCHES=(
"${FILESDIR}/${PN}-glibc-2.31.patch"
"${FILESDIR}/${P}-clang16.patch"
)
src_prepare() {
sed -i -e "/errno.h/ a\#include <string.h>" getdate.c || die
# Respect CFLAGS
sed -i -e "/CFLAGS/d" Makefile || die
default
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dobin getdate
doman getdate.8
dodoc README getdate-cron
}