1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils flag-o-matic ltprune toolchain-funcs
8 MY_PV="libffcall-${PV}"
10 DESCRIPTION="Build foreign function call interfaces in embedded interpreter"
11 HOMEPAGE="https://www.gnu.org/software/libffcall/"
12 SRC_URI="mirror://gnu/libffcall/${MY_PV}.tar.gz"
14 # "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
15 # or in derivate works of GNUstep, the included parts of ffcall are
16 # under GNU LGPL." -ffcall author
19 KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
28 # The build system is a strange mix of autogenerated
29 # files and manual tweaks on top. Uses $CFLAGS / $LDFLAGS randomly.
30 # We are adding them consistently here and a bit over the top:
33 for mfi in {,*/,*/*/,}Makefile.in
35 einfo "Patching '${mfi}'"
36 # usually uses only assembler here, but -march=
37 # and -Wa, are a must to pass here.
38 sed -e 's/$(CC) /&$(CFLAGS) /g' \
49 --datadir="${EPREFIX}"/usr/share/doc/${PF} \