1 |
commit: 5060e662d951f292c8aec27400d4c3ef9c339e4c |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 7 07:05:46 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 7 07:05:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5060e662 |
7 |
|
8 |
sys-libs/libfaketime: Rev bump to add multilib support and GCC-6 compatibility |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/617624 |
11 |
Gentoo-Bug: https://bugs.gentoo.org/617634 |
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild | 48 ++++++++++++++++++++++++ |
15 |
1 file changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild b/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..ebfd4525a43 |
20 |
--- /dev/null |
21 |
+++ b/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild |
22 |
@@ -0,0 +1,48 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI="6" |
27 |
+ |
28 |
+inherit toolchain-funcs multilib-minimal |
29 |
+ |
30 |
+DESCRIPTION="Report faked system time to programs" |
31 |
+HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime" |
32 |
+SRC_URI="http://www.code-wizards.com/projects/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" |
37 |
+ |
38 |
+src_prepare() { |
39 |
+ sed -i 's/-Werror //' "${S}/src/Makefile" || die |
40 |
+ |
41 |
+ # Bug #617624 (GCC-6 compatibility) |
42 |
+ sed -i 's/-Wno-nonnull-compare //' "${S}/src/Makefile" || die |
43 |
+ |
44 |
+ eapply_user |
45 |
+ |
46 |
+ multilib_copy_sources |
47 |
+} |
48 |
+ |
49 |
+multilib_src_compile() { |
50 |
+ local target=all |
51 |
+ |
52 |
+ pushd src > /dev/null || die |
53 |
+ multilib_is_native_abi || target="${PN}.so.1 ${PN}MT.so.1" |
54 |
+ # ${target} is intentionally not quoted |
55 |
+ emake CC="$(tc-getCC)" LIBDIRNAME="/$(get_libdir)" PREFIX=/usr ${target} |
56 |
+ popd > /dev/null || die |
57 |
+} |
58 |
+ |
59 |
+multilib_src_install() { |
60 |
+ multilib_is_native_abi && dobin src/faketime |
61 |
+ exeinto /usr/$(get_libdir) |
62 |
+ doexe src/${PN}*.so.* |
63 |
+ dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so |
64 |
+ dosym ${PN}MT.so.1 /usr/$(get_libdir)/${PN}MT.so |
65 |
+} |
66 |
+ |
67 |
+multilib_src_install_all() { |
68 |
+ doman man/faketime.1 |
69 |
+ dodoc NEWS README TODO |
70 |
+} |