Skip to content

Commit d74d16d

Browse files
committed
dev-libs/mpc: Sync with Gentoo
It's from Gentoo commit 7a92b7f2e5fdea74f1c9d269c7017dbcd268e9b2.
1 parent ab2fec6 commit d74d16d

File tree

3 files changed

+38
-29
lines changed

3 files changed

+38
-29
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DIST mpc-1.2.1.tar.gz 838731 BLAKE2B 9cd03c6a71839e4cdb3c1f18d718cc4d3097c3f8ec307a5c756bd5df27c68aa013755156b3b156efee1acabfee2269602c6a3a358092ef0d522271c9c56c133d SHA512 3279f813ab37f47fdcc800e4ac5f306417d07f539593ca715876e43e04896e1d5bceccfb288ef2908a3f24b760747d0dbd0392a24b9b341bc3e12082e5c836ee
1+
DIST mpc-1.3.1.tar.gz 773573 BLAKE2B 76434e6f8830af3571836d51576bfebbc9701e9bbb5c4686f134081cd96cd90ae02f7ff42bf9e3957c7a7ba92b6b2d9cdabe18f0269271147521cd7f6a2d551c SHA512 4bab4ef6076f8c5dfdc99d810b51108ced61ea2942ba0c1c932d624360a5473df20d32b300fc76f2ba4aa2a97e1f275c9fd494a1ba9f07c4cb2ad7ceaeb1ae97

sdk_container/src/third_party/portage-stable/dev-libs/mpc/mpc-1.2.1.ebuild

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit multilib-minimal
7+
8+
DESCRIPTION="A library for multiprecision complex arithmetic with exact rounding"
9+
HOMEPAGE="https://www.multiprecision.org/mpc/ https://gitlab.inria.fr/mpc/mpc"
10+
11+
if [[ ${PV} == *_rc* ]] ; then
12+
SRC_URI="https://www.multiprecision.org/downloads/${P/_}.tar.gz"
13+
S="${WORKDIR}"/${PN}-$(ver_cut 1-3)
14+
else
15+
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
16+
17+
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
18+
fi
19+
20+
LICENSE="LGPL-3+ FDL-1.3+"
21+
SLOT="0/3" # libmpc.so.3
22+
IUSE="static-libs"
23+
24+
DEPEND="
25+
>=dev-libs/gmp-5.0.0:=[${MULTILIB_USEDEP},static-libs?]
26+
>=dev-libs/mpfr-4.1.0:=[${MULTILIB_USEDEP},static-libs?]
27+
"
28+
RDEPEND="${DEPEND}"
29+
30+
multilib_src_configure() {
31+
ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
32+
}
33+
34+
multilib_src_install_all() {
35+
einstalldocs
36+
find "${ED}" -name '*.la' -delete || die
37+
}

0 commit comments

Comments
 (0)