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 810C913835A for ; Sat, 23 Jan 2021 23:38:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A285E0826; Sat, 23 Jan 2021 23:38:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B47CE0815 for ; Sat, 23 Jan 2021 23:38:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 15938340E85 for ; Sat, 23 Jan 2021 23:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9FBF48B for ; Sat, 23 Jan 2021 23:38:04 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1611445069.9cd7fd9474b4896ae1b5a7b2eadafa47ccc5eedc.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liboil/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/liboil/liboil-0.3.17-r3.ebuild X-VCS-Directories: dev-libs/liboil/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 9cd7fd9474b4896ae1b5a7b2eadafa47ccc5eedc X-VCS-Branch: master Date: Sat, 23 Jan 2021 23:38:04 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0c329caa-52f1-44ba-8951-6753c021cb43 X-Archives-Hash: 6923dad7b7a4a5eaaaf321394f2c84ea commit: 9cd7fd9474b4896ae1b5a7b2eadafa47ccc5eedc Author: David Seifert gentoo org> AuthorDate: Sat Jan 23 23:37:49 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Jan 23 23:37:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cd7fd94 dev-libs/liboil: Port to EAPI 7 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> dev-libs/liboil/liboil-0.3.17-r3.ebuild | 69 +++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/dev-libs/liboil/liboil-0.3.17-r3.ebuild b/dev-libs/liboil/liboil-0.3.17-r3.ebuild new file mode 100644 index 00000000000..73cd2854d37 --- /dev/null +++ b/dev-libs/liboil/liboil-0.3.17-r3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic multilib-minimal + +DESCRIPTION="Library of simple functions that are optimized for various CPUs" +HOMEPAGE="https://liboil.freedesktop.org/" +SRC_URI="https://liboil.freedesktop.org/download/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0.3" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+examples test" +RESTRICT="!test? ( test )" + +RDEPEND="examples? ( dev-libs/glib:2 )" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/gtk-doc-am + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-amd64-cpuid.patch ) + +src_prepare() { + has x32 $(get_all_abis) && PATCHES+=( "${FILESDIR}"/${PN}-0.3.17-x32.patch ) + default + + if ! use examples; then + sed "s/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/" \ + -i Makefile.in || die + fi + + if ! use test; then + sed "s/^\(SUBDIRS =.*\)testsuite\(.*\)$/\1\2/" \ + -i Makefile.in || die + fi +} + +src_configure() { + strip-flags + filter-flags -O? + append-flags -O2 + + # For use with Clang, which is the only compiler on OSX, bug #576646 + [[ ${CHOST} == *-darwin* ]] && append-flags -fheinous-gnu-extensions + + multilib_src_configure() { + ECONF_SOURCE="${S}" econf --disable-static + } + multilib-minimal_src_configure +} + +multilib_src_install_all() { + einstalldocs + dodoc BUG-REPORTING HACKING + + # no static archives + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + if ! use examples; then + ewarn "You have disabled examples USE flag. Beware that upstream might" + ewarn "want the output of some utilities that are only built with" + ewarn "USE='examples' if you report bugs to them." + fi +}