blob: 21c21d60ba8622d5f6c60f261268a10bff61f26a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN}_rfc868"
MY_P="${MY_PN}-${PV}"
inherit toolchain-funcs
DESCRIPTION="Network Date/Time Query and Set Local Date/Time Utility"
HOMEPAGE="http://www.ibiblio.org/pub/Linux/system/network/misc/"
SRC_URI="http://www.ibiblio.org/pub/Linux/system/network/misc/${MY_P}.tar.gz"
LICENSE="GPL-1+"
SLOT="0"
KEYWORDS="amd64 ~mips ppc x86"
IUSE=""
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}/${PN}-glibc-2.31.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
}
|