Diff libffi-3.2.1-r3 with a libffi-3.3_rc0

/usr/portage/dev-libs/libffi/libffi-3.3_rc0.ebuild 2019-11-07 21:09:00.000000000 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5
inherit eutils libtool multilib multilib-minimal toolchain-funcs
5
inherit multilib multilib-minimal toolchain-funcs
6

  
7
MY_PV=${PV/_rc/-rc}
8
MY_P=${PN}-${MY_PV}
6 9

  
7 10
DESCRIPTION="a portable, high level programming interface to various calling conventions"
8 11
HOMEPAGE="https://sourceware.org/libffi/"
9
SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
12
SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz"
10 13

  
11 14
LICENSE="MIT"
12
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15
SLOT="0/7" # SONAME=libffi.so.7
16
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
14 17
IUSE="debug pax_kernel static-libs test"
15 18

  
16 19
RESTRICT="!test? ( test )"
17 20

  
18 21
RDEPEND=""
19
DEPEND="test? ( dev-util/dejagnu )"
22
DEPEND=""
23
BDEPEND="test? ( dev-util/dejagnu )"
20 24

  
21
DOCS="ChangeLog* README"
25
DOCS="ChangeLog* README.md"
22 26

  
23 27
PATCHES=(
24 28
	"${FILESDIR}"/${PN}-3.2.1-o-tmpfile-eacces.patch #529044
25
	"${FILESDIR}"/${PN}-3.2.1-complex_alpha.patch
26
	"${FILESDIR}"/${PN}-3.1-darwin-x32.patch
27
	"${FILESDIR}"/${PN}-3.2.1-complex-ia64.patch
28
	"${FILESDIR}"/${PN}-3.2.1-include-path.patch
29
	"${FILESDIR}"/${PN}-3.2.1-include-path-autogen.patch
30
	"${FILESDIR}"/${PN}-3.2.1-ia64-small-struct.patch #634190
31
	"${FILESDIR}"/${PN}-3.2.1-musl-emutramp.patch #694916
29
	"${FILESDIR}"/${PN}-3.3_rc0-hppa-no-TEXTREL.patch
30
	"${FILESDIR}"/${PN}-3.3_rc0-ppc-macos-go.patch
32 31
)
33 32

  
33
S=${WORKDIR}/${MY_P}
34

  
34 35
ECONF_SOURCE=${S}
35 36

  
36 37
pkg_setup() {
......
47 48
	fi
48 49
}
49 50

  
50
src_prepare() {
51
	default
52

  
53
	sed -i -e 's:@toolexeclibdir@:$(libdir):g' Makefile.in || die #462814
54
	elibtoolize
55
}
56

  
57 51
multilib_src_configure() {
58 52
	use userland_BSD && export HOST="${CHOST}"
59
	# python does not like miltilib-wrapped headers: bug #643582
60
	# thus we install includes into ABI-specific paths
61
	local includes="${EPREFIX}"/usr/$(get_libdir)/${P}/include/
62 53
	econf \
54
		--includedir="${EPREFIX}"/usr/$(get_libdir)/${P}/include \
55
		--disable-multi-os-directory \
63 56
		$(use_enable static-libs static) \
64 57
		$(use_enable pax_kernel pax_emutramp) \
65
		$(use_enable debug) \
66
		--includedir="${includes}"
58
		$(use_enable debug)
67 59
}
68 60

  
69 61
multilib_src_install_all() {
70
	prune_libtool_files
62
	find "${ED}" -name "*.la" -delete || die
71 63
	einstalldocs
72 64
}
Thank you!