commit:     556f33aa9fa4fb59252dd38ec1502697f0686faa
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Mon May 12 11:23:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 21:43:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=556f33aa

net-misc/getdate: bump EAPI

also
- remove empty IUSE
- fix variable order

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Part-of: https://github.com/gentoo/gentoo/pull/42049
Closes: https://github.com/gentoo/gentoo/pull/42049
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/getdate/getdate-1.2-r3.ebuild | 41 ++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/net-misc/getdate/getdate-1.2-r3.ebuild 
b/net-misc/getdate/getdate-1.2-r3.ebuild
new file mode 100644
index 000000000000..665107433fd6
--- /dev/null
+++ b/net-misc/getdate/getdate-1.2-r3.ebuild
@@ -0,0 +1,41 @@
+# 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
+}

Reply via email to