summaryrefslogtreecommitdiff
path: root/sys-devel/mold
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/mold')
-rw-r--r--sys-devel/mold/Manifest4
-rw-r--r--sys-devel/mold/mold-1.0.1.ebuild69
-rw-r--r--sys-devel/mold/mold-9999.ebuild2
3 files changed, 73 insertions, 2 deletions
diff --git a/sys-devel/mold/Manifest b/sys-devel/mold/Manifest
index 9c67c6d7c003..712f970c2d3b 100644
--- a/sys-devel/mold/Manifest
+++ b/sys-devel/mold/Manifest
@@ -1,4 +1,6 @@
DIST mold-1.0.0.tar.gz 3482927 BLAKE2B 56ebc267370548a2f91a71ebeed87871cede6f564c29dc7d44a499b95fe570f6e9c8a717baf2d9e235c7057c41e735b315493bd23d3b44574d2a44b14aaf5ef8 SHA512 99ffd0b9e2ff7157cc8b26808675c9d3147bf88961155ae19ed9b99990ac647b7ec31ee78d05062decc6d41e66d99aa0fdc398d119803929b8dbff51eb3d077c
+DIST mold-1.0.1.tar.gz 3675262 BLAKE2B 0e40860d3c0a221d368c94b9f58c20b245ee61de6f9eb6d1454ed3b6f103933c79ddd7358049e2aacf497221232d952c2117ba2b3371cbe37fb8ad4ae42461c2 SHA512 cc03a7db395362b97879c28942397d4443d12b72e067b6f979b1ece4d8aab06154b4c1a0f4c57d6ac505bcd4f892bf9a355ad281d628d4d544d8f70edaf34b72
EBUILD mold-1.0.0-r1.ebuild 1259 BLAKE2B 912f223181163deda23ecebb0f245296eb6a86fa0224faa88ff4e59d8f773bd87454d69a9e447f7374b7905c31bf539bda57cabe6607fda3b9d4072848cc8e71 SHA512 cce5444f42579f060b4842f2115b6b8c57f5f27489a19e37bdcfcada508d6a8e03a07652cf98560d97a96f57cd2e5a27eff092407b1d5d133d5716bf3f9e621b
-EBUILD mold-9999.ebuild 1300 BLAKE2B c537e1181d10d779b17edc0d8d4f1e0022bf4f436acfa6107e87baaf7aa982c57082102c2c69fb05282c3fe80b58f1c6bf2f8190817ff8c57d38c59ac0dff17c SHA512 02be4aa0c9010fb63426ff5dc67e8017371c382d94edcd816bfea05a90a1b5fc8968ed37a4c9b06232d6ddd82ec02b7f717644da8f045b9a48e49e4bc136af97
+EBUILD mold-1.0.1.ebuild 1297 BLAKE2B 320d55e239daa5d9e3932fcab349523dce7b210854dee80e5979d69b1282aae3eac602bfc8c03aa15a9eaf3cff06cb45ea98c7c3d86e5e6cb643ea99d416d59d SHA512 f319595d3a908132f384f29baf677ae89c5d9ea987e3e596fe8c3068be36da76db4188ddb2980a4b198fe320f52dbcd046d3daa8489bc194323a1bdd5f66fc85
+EBUILD mold-9999.ebuild 1297 BLAKE2B 320d55e239daa5d9e3932fcab349523dce7b210854dee80e5979d69b1282aae3eac602bfc8c03aa15a9eaf3cff06cb45ea98c7c3d86e5e6cb643ea99d416d59d SHA512 f319595d3a908132f384f29baf677ae89c5d9ea987e3e596fe8c3068be36da76db4188ddb2980a4b198fe320f52dbcd046d3daa8489bc194323a1bdd5f66fc85
MISC metadata.xml 315 BLAKE2B 985e05e19ef9d575e83c8782db1272bc8a97967f2a9caa1971867bd0906bb97a2aa5ddf3ac3c31cfd46840d830a578158d3d02ef2ef2f6160693044271deb8f1 SHA512 054f3c1c92750e957e92d8c13711a3898e807a2a950f9d2a30b4960b8f49aefd51c7a2ccb19df4ab55d1e40fd04876efc6f719a5fa4020d667fc21538165b2d2
diff --git a/sys-devel/mold/mold-1.0.1.ebuild b/sys-devel/mold/mold-1.0.1.ebuild
new file mode 100644
index 000000000000..9751b231a53f
--- /dev/null
+++ b/sys-devel/mold/mold-1.0.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A Modern Linker"
+HOMEPAGE="https://github.com/rui314/mold"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/rui314/mold.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="AGPL-3"
+SLOT="0"
+
+# Try again after 1.0 (nearly there, but path-related issues)
+# https://github.com/rui314/mold/issues/137
+RESTRICT="test"
+
+RDEPEND=">=dev-cpp/tbb-2021.4.0:=
+ dev-libs/xxhash:=
+ sys-libs/zlib
+ !kernel_Darwin? (
+ >=dev-libs/mimalloc-2:=
+ dev-libs/openssl:=
+ )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ # Needs unpackaged dwarfdump
+ rm test/elf/{compress-debug-sections,compressed-debug-info}.sh || die
+}
+
+src_compile() {
+ tc-export CC CXX
+
+ emake \
+ SYSTEM_TBB=1 \
+ SYSTEM_MIMALLOC=1 \
+ SYSTEM_XXHASH=1 \
+ STRIP="true" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_test() {
+ emake \
+ SYSTEM_TBB=1 \
+ SYSTEM_MIMALLOC=1 \
+ check
+}
+
+src_install() {
+ emake \
+ SYSTEM_TBB=1 \
+ SYSTEM_MIMALLOC=1 \
+ SYSTEM_XXHASH=1 \
+ DESTDIR="${ED}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ STRIP="true" \
+ install
+}
diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild
index 30150e5e243c..9751b231a53f 100644
--- a/sys-devel/mold/mold-9999.ebuild
+++ b/sys-devel/mold/mold-9999.ebuild
@@ -35,7 +35,7 @@ src_prepare() {
default
# Needs unpackaged dwarfdump
- rm test/elf/{compress-debug-sections.sh,compressed-debug-info.sh} || die
+ rm test/elf/{compress-debug-sections,compressed-debug-info}.sh || die
}
src_compile() {