Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/
Date: Wed, 30 Nov 2022 07:49:04
Message-Id: 1669792939.ac6d65a9d950dc7355cb563ad152306c7d951e6b.sam@gentoo
1 commit: ac6d65a9d950dc7355cb563ad152306c7d951e6b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 07:22:19 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 07:22:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac6d65a9
7
8 dev-libs/gmp: drop 6.2.1-r1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-libs/gmp/gmp-6.2.1-r1.ebuild | 108 ---------------------------------------
13 1 file changed, 108 deletions(-)
14
15 diff --git a/dev-libs/gmp/gmp-6.2.1-r1.ebuild b/dev-libs/gmp/gmp-6.2.1-r1.ebuild
16 deleted file mode 100644
17 index 8f30f9f28ee6..000000000000
18 --- a/dev-libs/gmp/gmp-6.2.1-r1.ebuild
19 +++ /dev/null
20 @@ -1,108 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit libtool multilib-minimal toolchain-funcs
27 -
28 -MY_PV=${PV/_p*}
29 -MY_PV=${MY_PV/_/-}
30 -MANUAL_PV=${MY_PV}
31 -MANUAL_PV=6.2.1
32 -MY_P=${PN}-${MY_PV}
33 -PLEVEL=${PV/*p}
34 -DESCRIPTION="Library for arbitrary-precision arithmetic on different type of numbers"
35 -HOMEPAGE="https://gmplib.org/"
36 -SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
37 - mirror://gnu/${PN}/${MY_P}.tar.xz
38 - doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
39 -
40 -LICENSE="|| ( LGPL-3+ GPL-2+ )"
41 -# The subslot reflects the C & C++ SONAMEs.
42 -SLOT="0/10.4"
43 -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"
44 -IUSE="+asm doc +cxx pic static-libs"
45 -
46 -BDEPEND="sys-devel/m4
47 - app-arch/xz-utils"
48 -
49 -S=${WORKDIR}/${MY_P%a}
50 -
51 -DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
52 -HTML_DOCS=( doc )
53 -MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
54 -
55 -PATCHES=(
56 - "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
57 - "${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
58 -)
59 -
60 -src_prepare() {
61 - default
62 -
63 - # We cannot run autotools here as gcc depends on this package
64 - elibtoolize
65 -
66 - # bug #536894
67 - if [[ ${CHOST} == *-darwin* ]] ; then
68 - eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
69 - fi
70 -
71 - # GMP uses the "ABI" env var during configure as does Gentoo (econf).
72 - # So, to avoid patching the source constantly, wrap things up.
73 - mv configure configure.wrapped || die
74 - cat <<-\EOF > configure
75 - #!/usr/bin/env sh
76 - exec env ABI="${GMPABI}" "$0.wrapped" "$@"
77 - EOF
78 -
79 - # Patches to original configure might have lost the +x bit.
80 - chmod a+rx configure{,.wrapped} || die
81 -}
82 -
83 -multilib_src_configure() {
84 - # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
85 - # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
86 - if [[ ${CHOST} == hppa2.0-* ]] ; then
87 - GMPABI="1.0"
88 - fi
89 -
90 - # ABI mappings (needs all architectures supported)
91 - case ${ABI} in
92 - 32|x86) GMPABI=32;;
93 - 64|amd64|n64) GMPABI=64;;
94 - [onx]32) GMPABI=${ABI};;
95 - esac
96 - export GMPABI
97 -
98 - tc-export CC
99 -
100 - # --with-pic forces static libraries to be built as PIC
101 - # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
102 - ECONF_SOURCE="${S}" econf \
103 - CC_FOR_BUILD="$(tc-getBUILD_CC)" \
104 - --localstatedir="${EPREFIX}"/var/state/gmp \
105 - --enable-shared \
106 - $(use_enable asm assembly) \
107 - $(use_enable cxx) \
108 - $(use pic && echo --with-pic) \
109 - $(use_enable static-libs static)
110 -}
111 -
112 -multilib_src_install() {
113 - emake DESTDIR="${D}" install
114 -
115 - # Should be a standalone lib
116 - rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
117 -
118 - # This requires libgmp
119 - local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
120 - if ! use static-libs ; then
121 - rm -f "${la}"
122 - fi
123 -}
124 -
125 -multilib_src_install_all() {
126 - einstalldocs
127 - use doc && cp "${DISTDIR}"/gmp-man-${MANUAL_PV}.pdf "${ED}"/usr/share/doc/${PF}/
128 -}