Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/mold/
Date: Sat, 01 Jan 2022 01:26:28
Message-Id: 1641000273.f41ae63353c90f7f499fbd2f360a80d4e1348c64.sam@gentoo
1 commit: f41ae63353c90f7f499fbd2f360a80d4e1348c64
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Fri Dec 31 18:24:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 1 01:24:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41ae633
7
8 sys-devel/mold: bump to 1.0.1
9
10 This release actually has supports for --defsym, plus other
11 useful things (see https://github.com/rui314/mold/releases/tag/v1.0.1)
12
13 Package-Manager: Portage-3.0.30, Repoman-3.0.3
14 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 sys-devel/mold/Manifest | 1 +
18 sys-devel/mold/mold-1.0.1.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++
19 2 files changed, 70 insertions(+)
20
21 diff --git a/sys-devel/mold/Manifest b/sys-devel/mold/Manifest
22 index a5d35e75f69c..79667690384d 100644
23 --- a/sys-devel/mold/Manifest
24 +++ b/sys-devel/mold/Manifest
25 @@ -1 +1,2 @@
26 DIST mold-1.0.0.tar.gz 3482927 BLAKE2B 56ebc267370548a2f91a71ebeed87871cede6f564c29dc7d44a499b95fe570f6e9c8a717baf2d9e235c7057c41e735b315493bd23d3b44574d2a44b14aaf5ef8 SHA512 99ffd0b9e2ff7157cc8b26808675c9d3147bf88961155ae19ed9b99990ac647b7ec31ee78d05062decc6d41e66d99aa0fdc398d119803929b8dbff51eb3d077c
27 +DIST mold-1.0.1.tar.gz 3675262 BLAKE2B 0e40860d3c0a221d368c94b9f58c20b245ee61de6f9eb6d1454ed3b6f103933c79ddd7358049e2aacf497221232d952c2117ba2b3371cbe37fb8ad4ae42461c2 SHA512 cc03a7db395362b97879c28942397d4443d12b72e067b6f979b1ece4d8aab06154b4c1a0f4c57d6ac505bcd4f892bf9a355ad281d628d4d544d8f70edaf34b72
28
29 diff --git a/sys-devel/mold/mold-1.0.1.ebuild b/sys-devel/mold/mold-1.0.1.ebuild
30 new file mode 100644
31 index 000000000000..9751b231a53f
32 --- /dev/null
33 +++ b/sys-devel/mold/mold-1.0.1.ebuild
34 @@ -0,0 +1,69 @@
35 +# Copyright 2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +inherit toolchain-funcs
41 +
42 +DESCRIPTION="A Modern Linker"
43 +HOMEPAGE="https://github.com/rui314/mold"
44 +if [[ ${PV} == 9999 ]] ; then
45 + EGIT_REPO_URI="https://github.com/rui314/mold.git"
46 + inherit git-r3
47 +else
48 + SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~amd64"
50 +fi
51 +
52 +LICENSE="AGPL-3"
53 +SLOT="0"
54 +
55 +# Try again after 1.0 (nearly there, but path-related issues)
56 +# https://github.com/rui314/mold/issues/137
57 +RESTRICT="test"
58 +
59 +RDEPEND=">=dev-cpp/tbb-2021.4.0:=
60 + dev-libs/xxhash:=
61 + sys-libs/zlib
62 + !kernel_Darwin? (
63 + >=dev-libs/mimalloc-2:=
64 + dev-libs/openssl:=
65 + )"
66 +DEPEND="${RDEPEND}"
67 +
68 +src_prepare() {
69 + default
70 +
71 + # Needs unpackaged dwarfdump
72 + rm test/elf/{compress-debug-sections,compressed-debug-info}.sh || die
73 +}
74 +
75 +src_compile() {
76 + tc-export CC CXX
77 +
78 + emake \
79 + SYSTEM_TBB=1 \
80 + SYSTEM_MIMALLOC=1 \
81 + SYSTEM_XXHASH=1 \
82 + STRIP="true" \
83 + LIBDIR="${EPREFIX}/usr/$(get_libdir)"
84 +}
85 +
86 +src_test() {
87 + emake \
88 + SYSTEM_TBB=1 \
89 + SYSTEM_MIMALLOC=1 \
90 + check
91 +}
92 +
93 +src_install() {
94 + emake \
95 + SYSTEM_TBB=1 \
96 + SYSTEM_MIMALLOC=1 \
97 + SYSTEM_XXHASH=1 \
98 + DESTDIR="${ED}" \
99 + PREFIX="${EPREFIX}/usr" \
100 + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
101 + STRIP="true" \
102 + install
103 +}