From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 32004139694 for ; Sun, 7 May 2017 07:06:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58417E0CC9; Sun, 7 May 2017 07:06:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F819E0CC9 for ; Sun, 7 May 2017 07:06:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 86A4F3416D3 for ; Sun, 7 May 2017 07:06:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 862E37447 for ; Sun, 7 May 2017 07:06:11 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1494140746.5060e662d951f292c8aec27400d4c3ef9c339e4c.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libfaketime/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild X-VCS-Directories: sys-libs/libfaketime/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 5060e662d951f292c8aec27400d4c3ef9c339e4c X-VCS-Branch: master Date: Sun, 7 May 2017 07:06:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8d7762dd-0e98-4c1a-98a6-f133f5d03c76 X-Archives-Hash: 1c282b19b4e9a8190e15907468fbe20c commit: 5060e662d951f292c8aec27400d4c3ef9c339e4c Author: Thomas Deutschmann gentoo org> AuthorDate: Sun May 7 07:05:46 2017 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun May 7 07:05:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5060e662 sys-libs/libfaketime: Rev bump to add multilib support and GCC-6 compatibility Gentoo-Bug: https://bugs.gentoo.org/617624 Gentoo-Bug: https://bugs.gentoo.org/617634 Package-Manager: Portage-2.3.5, Repoman-2.3.2 sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild b/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild new file mode 100644 index 00000000000..ebfd4525a43 --- /dev/null +++ b/sys-libs/libfaketime/libfaketime-0.9.6-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs multilib-minimal + +DESCRIPTION="Report faked system time to programs" +HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime" +SRC_URI="http://www.code-wizards.com/projects/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" + +src_prepare() { + sed -i 's/-Werror //' "${S}/src/Makefile" || die + + # Bug #617624 (GCC-6 compatibility) + sed -i 's/-Wno-nonnull-compare //' "${S}/src/Makefile" || die + + eapply_user + + multilib_copy_sources +} + +multilib_src_compile() { + local target=all + + pushd src > /dev/null || die + multilib_is_native_abi || target="${PN}.so.1 ${PN}MT.so.1" + # ${target} is intentionally not quoted + emake CC="$(tc-getCC)" LIBDIRNAME="/$(get_libdir)" PREFIX=/usr ${target} + popd > /dev/null || die +} + +multilib_src_install() { + multilib_is_native_abi && dobin src/faketime + exeinto /usr/$(get_libdir) + doexe src/${PN}*.so.* + dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so + dosym ${PN}MT.so.1 /usr/$(get_libdir)/${PN}MT.so +} + +multilib_src_install_all() { + doman man/faketime.1 + dodoc NEWS README TODO +}