diff options
author | Sam James <sam@gentoo.org> | 2022-09-09 09:58:56 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-09-09 09:58:56 +0200 |
commit | 949b1fb4fa3a26ff53a8ae4f0e82a21c58574ef0 (patch) | |
tree | 537024a60b36b0b4d5983650ebfa3827501be620 /dev-libs/liboil/liboil-0.3.17-r4.ebuild | |
parent | dev-libs/libmspack: drop multilib, static-libs, EAPI 8 (diff) | |
download | gentoo-949b1fb4fa3a26ff53a8ae4f0e82a21c58574ef0.tar.gz gentoo-949b1fb4fa3a26ff53a8ae4f0e82a21c58574ef0.tar.bz2 gentoo-949b1fb4fa3a26ff53a8ae4f0e82a21c58574ef0.zip |
dev-libs/liboil: drop multilib
No multilib reverse dependencies.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/liboil/liboil-0.3.17-r4.ebuild')
-rw-r--r-- | dev-libs/liboil/liboil-0.3.17-r4.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-libs/liboil/liboil-0.3.17-r4.ebuild b/dev-libs/liboil/liboil-0.3.17-r4.ebuild new file mode 100644 index 000000000000..aa2946547264 --- /dev/null +++ b/dev-libs/liboil/liboil-0.3.17-r4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +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() { + [[ ${CHOST} == *x32 ]] && 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 + + default +} + +src_install() { + default + + 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 +} |