1 |
commit: 49a602a7cad61d1d17b7a6900c84d4f8545472fd |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 7 20:45:57 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 20:46:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a602a7 |
7 |
|
8 |
dev-libs/libffi: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libffi/libffi-3.3-r1.ebuild | 77 ------------------------------------ |
14 |
1 file changed, 77 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/libffi/libffi-3.3-r1.ebuild b/dev-libs/libffi/libffi-3.3-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 996855591ae..00000000000 |
19 |
--- a/dev-libs/libffi/libffi-3.3-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,77 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
-inherit multilib multilib-minimal toolchain-funcs |
27 |
- |
28 |
-MY_PV=${PV/_rc/-rc} |
29 |
-MY_P=${PN}-${MY_PV} |
30 |
- |
31 |
-DESCRIPTION="a portable, high level programming interface to various calling conventions" |
32 |
-HOMEPAGE="https://sourceware.org/libffi/" |
33 |
-SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" |
34 |
- |
35 |
-LICENSE="MIT" |
36 |
-SLOT="0/7" # SONAME=libffi.so.7 |
37 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 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" |
38 |
-IUSE="debug pax_kernel static-libs test" |
39 |
- |
40 |
-RESTRICT="!test? ( test )" |
41 |
- |
42 |
-RDEPEND="" |
43 |
-DEPEND="" |
44 |
-BDEPEND="test? ( dev-util/dejagnu )" |
45 |
- |
46 |
-DOCS="ChangeLog* README.md" |
47 |
- |
48 |
-PATCHES=( |
49 |
- "${FILESDIR}"/${PN}-3.2.1-o-tmpfile-eacces.patch #529044 |
50 |
- "${FILESDIR}"/${PN}-3.3_rc0-ppc-macos-go.patch |
51 |
- "${FILESDIR}"/${PN}-3.3-power7.patch |
52 |
- "${FILESDIR}"/${PN}-3.3-power7-memcpy.patch |
53 |
- "${FILESDIR}"/${PN}-3.3-power7-memcpy-2.patch |
54 |
-) |
55 |
- |
56 |
-S=${WORKDIR}/${MY_P} |
57 |
- |
58 |
-ECONF_SOURCE=${S} |
59 |
- |
60 |
-pkg_setup() { |
61 |
- # Check for orphaned libffi, see https://bugs.gentoo.org/354903 for example |
62 |
- if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then |
63 |
- local base="${T}"/conftest |
64 |
- echo 'int main() { }' > "${base}".c |
65 |
- $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null |
66 |
- if [ $? -eq 0 ]; then |
67 |
- eerror "The linker reported linking against -lffi to be working while it shouldn't have." |
68 |
- eerror "This is wrong and you should find and delete the old copy of libffi before continuing." |
69 |
- die "The system is in inconsistent state with unknown libffi installed." |
70 |
- fi |
71 |
- fi |
72 |
-} |
73 |
- |
74 |
-multilib_src_configure() { |
75 |
- use userland_BSD && export HOST="${CHOST}" |
76 |
- # --includedir= path maintains a few properties: |
77 |
- # 1. have stable name across libffi versions: some packages like |
78 |
- # dev-lang/ghc or kde-frameworks/networkmanager-qt embed |
79 |
- # ${includedir} at build-time. Don't require those to be |
80 |
- # rebuilt unless SONAME changes. bug #695788 |
81 |
- # |
82 |
- # We use /usr/.../${PN} (instead of former /usr/.../${P}). |
83 |
- # |
84 |
- # 2. have ${ABI}-specific location as ffi.h is target-dependent. |
85 |
- # |
86 |
- # We use /usr/$(get_libdir)/... to have ABI identifier. |
87 |
- econf \ |
88 |
- --includedir="${EPREFIX}"/usr/$(get_libdir)/${PN}/include \ |
89 |
- --disable-multi-os-directory \ |
90 |
- $(use_enable static-libs static) \ |
91 |
- $(use_enable pax_kernel pax_emutramp) \ |
92 |
- $(use_enable debug) |
93 |
-} |
94 |
- |
95 |
-multilib_src_install_all() { |
96 |
- find "${ED}" -name "*.la" -delete || die |
97 |
- einstalldocs |
98 |
-} |