diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-07 22:48:18 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-07 22:48:54 +0100 |
commit | 910e61b822801e3be2702a5b205bd218457815a9 (patch) | |
tree | e79ee62bf4c953e8ae6030fdf4b7c4a1b95fcba2 /dev-libs/libffi | |
parent | sys-devel/gcc: restore ~arch KEYWORDS for 11.1.0-r2 (diff) | |
download | gentoo-910e61b822801e3be2702a5b205bd218457815a9.tar.gz gentoo-910e61b822801e3be2702a5b205bd218457815a9.tar.bz2 gentoo-910e61b822801e3be2702a5b205bd218457815a9.zip |
dev-libs/libffi: bump up to 3.4_rc1, SOVERSION=8 (take 2)
Without KEYWORDS this time.
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-libs/libffi')
-rw-r--r-- | dev-libs/libffi/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libffi/libffi-3.4.2.ebuild | 69 | ||||
-rw-r--r-- | dev-libs/libffi/metadata.xml | 1 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/libffi/Manifest b/dev-libs/libffi/Manifest index a1c499b413f7..6351b7c81d9d 100644 --- a/dev-libs/libffi/Manifest +++ b/dev-libs/libffi/Manifest @@ -1 +1,2 @@ DIST libffi-3.3.tar.gz 1305466 BLAKE2B cddc40729a30a9bd34d675809f51f8d1b4ccaffa54bc6dd6f7e965f4e260edd34754719f9f6247c8957aeb7cf154d56ce1fe16a54c3f1ad39afbebdf41d23caa SHA512 61513801a156f11420f541d325de697131846487122d6bdcf5491b18b4da788589f5c0bb07e88e396495d3be5830d74e9135595e2b8ddbfe95c448d8597fbd6f +DIST libffi-3.4.2.tar.gz 1351355 BLAKE2B a8137bc895b819f949fd7705e405be627219c6d1fdef280253330f7407d4a548bb057d7bb0e9225d1767d42f9bf5f0ab3c455db1c3470d7cc876bb7b7d55d308 SHA512 31bad35251bf5c0adb998c88ff065085ca6105cf22071b9bd4b5d5d69db4fadf16cadeec9baca944c4bb97b619b035bb8279de8794b922531fddeb0779eb7fb1 diff --git a/dev-libs/libffi/libffi-3.4.2.ebuild b/dev-libs/libffi/libffi-3.4.2.ebuild new file mode 100644 index 000000000000..55fcfb49624c --- /dev/null +++ b/dev-libs/libffi/libffi-3.4.2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit multilib-minimal + +MY_PV=${PV/_rc/-rc} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="a portable, high level programming interface to various calling conventions" +HOMEPAGE="https://sourceware.org/libffi/" +SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0/8" # SONAME=libffi.so.8 +#unkeyworded for initial testing +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug exec-static-trampoline pax-kernel pax_kernel static-libs test" + +RESTRICT="!test? ( test )" +# If you are USE=pax_kernel user you really want USE=pax-kernel as well. +# That's a flag rename: https://archives.gentoo.org/gentoo-dev/message/273f5ec9ebc8075f6ee8d8cdda9e759e +REQUIRED_USE="pax_kernel? ( pax-kernel )" + +RDEPEND="" +DEPEND="" +BDEPEND="test? ( dev-util/dejagnu )" + +DOCS="ChangeLog* README.md" + +S=${WORKDIR}/${MY_P} + +ECONF_SOURCE=${S} + +src_prepare() { + default + if [[ ${CHOST} == arm64-*-darwin* ]] ; then + # ensure we use aarch64 asm, not x86 on arm64 + sed -i -e 's/aarch64\*-\*-\*/arm64*-*-*|&/' \ + configure configure.host || die + fi +} + +multilib_src_configure() { + use userland_BSD && export HOST="${CHOST}" + # --includedir= path maintains a few properties: + # 1. have stable name across libffi versions: some packages like + # dev-lang/ghc or kde-frameworks/networkmanager-qt embed + # ${includedir} at build-time. Don't require those to be + # rebuilt unless SONAME changes. bug #695788 + # + # We use /usr/.../${PN} (instead of former /usr/.../${P}). + # + # 2. have ${ABI}-specific location as ffi.h is target-dependent. + # + # We use /usr/$(get_libdir)/... to have ABI identifier. + econf \ + --includedir="${EPREFIX}"/usr/$(get_libdir)/${PN}/include \ + --disable-multi-os-directory \ + $(use_enable static-libs static) \ + $(use_enable exec-static-trampoline exec-static-tramp) \ + $(use_enable pax-kernel pax_emutramp) \ + $(use_enable debug) +} + +multilib_src_install_all() { + find "${ED}" -name "*.la" -delete || die + einstalldocs +} diff --git a/dev-libs/libffi/metadata.xml b/dev-libs/libffi/metadata.xml index 85b52eeb3e01..1846097c8bc2 100644 --- a/dev-libs/libffi/metadata.xml +++ b/dev-libs/libffi/metadata.xml @@ -34,6 +34,7 @@ between the two languages. </longdescription> <use> + <flag name="exec-static-trampoline">Don't rely on dynamic code generation for trampolines.</flag> <flag name="pax-kernel">Use PaX emulated trampolines, for we can't use PROT_EXEC</flag> <flag name="pax_kernel">DEPRECATED alias for 'pax-kernel'. Do not use.</flag> </use> |