Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libfaketime/
Date: Mon, 01 Mar 2021 18:06:24
Message-Id: 1614620901.70df8089851b27797255f42b01a13b4d985d6252.whissi@gentoo
1 commit: 70df8089851b27797255f42b01a13b4d985d6252
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 17:48:21 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 17:48:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70df8089
7
8 sys-libs/libfaketime: bump to v0.9.9
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-libs/libfaketime/Manifest | 1 +
14 sys-libs/libfaketime/libfaketime-0.9.9.ebuild | 59 +++++++++++++++++++++++++++
15 2 files changed, 60 insertions(+)
16
17 diff --git a/sys-libs/libfaketime/Manifest b/sys-libs/libfaketime/Manifest
18 index e7b654ec774..7b1ef4bb7a3 100644
19 --- a/sys-libs/libfaketime/Manifest
20 +++ b/sys-libs/libfaketime/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libfaketime-0.9.6.tar.gz 51333 BLAKE2B b9aab3da744e250f43eca4f837322932c3260d35550171d34da851740a415bf3d2c3bfe02cdf37782058d8524008743838757ed8326384ecb36d0d9839cadd1a SHA512 ab2e9c53f4ca2b9dcd2bbcd8de3ab9e27be57547ed9b52a17f07a6fe880fd3a283a6f10018736be2a6ba4e150f54e92161959ccb887be1f78ddfc96058729860
23 DIST libfaketime-0.9.7.tar.gz 56277 BLAKE2B 62e10c4b3c33c203cde023cbc4e114c2ee1ad87298b1840bb2f7ea3610fdfd81c12a60c1c00a44409ca322e96408427fcad32f202737b75d28c5d69b85b579d6 SHA512 593e14e96dc0a49f65e93d25b7aace6e78fd2b4251f692c14bd6c6a2ac6360d997573aeac9005388bc49276078075c23a39fdaee912c2469acb8014127625537
24 DIST libfaketime-0.9.8.tar.gz 70614 BLAKE2B a10a8859c216ce4c2edae3324515507f4c2b8a284d80da5a83d1b8046262ae5e624e358c809c2d473fdc21caa0d89f675beb3adfdb401411356145fdb9a1bac3 SHA512 87081024cab10462d4ed4d4ad9c3c56ab40fee3300d3a9ff180a4d96d418b3f25d80d7d5ad0a1af2fb87204f01a506d9fa273def7a8f9cc3be4cc0e9fef42aed
25 +DIST libfaketime-0.9.9.tar.gz 78610 BLAKE2B 863e3aaf5f26a7b4d6104bdf5dd8fc0ac70547770d01cad302e476a7eeee63f0900ddc825aa75f6db7be08155d7ceb05f3b730fffb9e4928147fbdc097ee0df8 SHA512 b1aecf456753ccf771f0f80c92d57ffcd2c8349dde93a575862b4570a06812d4bce104f2efbcfd627a85a80fed99dbc37cb156dda0389892bfb4e71df816191f
26
27 diff --git a/sys-libs/libfaketime/libfaketime-0.9.9.ebuild b/sys-libs/libfaketime/libfaketime-0.9.9.ebuild
28 new file mode 100644
29 index 00000000000..b0b38382026
30 --- /dev/null
31 +++ b/sys-libs/libfaketime/libfaketime-0.9.9.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +inherit flag-o-matic toolchain-funcs multilib-minimal
39 +
40 +DESCRIPTION="Report faked system time to programs"
41 +HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime"
42 +SRC_URI="https://github.com/wolfcw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
47 +
48 +src_prepare() {
49 + default
50 +
51 + sed -i 's/-Werror //' "${S}/src/Makefile" || die
52 +
53 + sed -i 's/-Werror //' "${S}/test/Makefile" || die
54 +
55 + # Bug #617624 (GCC-6 compatibility)
56 + sed -i 's/-Wno-nonnull-compare //' "${S}/src/Makefile" || die
57 +
58 + # upstream doesn't want that we set this by default but
59 + # I didn't find a single system where libfaketime passed
60 + # CLOCK_MONOTONIC test without that
61 + append-cflags -DFORCE_MONOTONIC_FIX
62 +
63 + multilib_copy_sources
64 +}
65 +
66 +multilib_src_compile() {
67 + local target=all
68 +
69 + pushd src > /dev/null || die
70 + multilib_is_native_abi || target="${PN}.so.1 ${PN}MT.so.1"
71 + # ${target} is intentionally not quoted
72 + emake CC="$(tc-getCC)" LIBDIRNAME="/$(get_libdir)" PREFIX=/usr ${target}
73 + popd > /dev/null || die
74 +}
75 +
76 +multilib_src_test() {
77 + multilib_is_native_abi && emake CC="$(tc-getCC)" test
78 +}
79 +
80 +multilib_src_install() {
81 + multilib_is_native_abi && dobin src/faketime
82 + exeinto /usr/$(get_libdir)
83 + doexe src/${PN}*.so.*
84 + dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so
85 + dosym ${PN}MT.so.1 /usr/$(get_libdir)/${PN}MT.so
86 +}
87 +
88 +multilib_src_install_all() {
89 + doman man/faketime.1
90 + dodoc NEWS README TODO
91 +}