From 3a4506d71232f3adc3d037b24fe145cd8effa8b3 Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Tue, 3 Jun 2025 00:17:46 +0300 Subject: [PATCH] i'll make this one work later, maybe --- dev-util/buildcache/Manifest | 1 + dev-util/buildcache/buildcache-0.31.3.ebuild | 50 ++++++++++++++++++++ dev-util/buildcache/files/00.test.patch | 7 +++ 3 files changed, 58 insertions(+) create mode 100644 dev-util/buildcache/Manifest create mode 100644 dev-util/buildcache/buildcache-0.31.3.ebuild create mode 100644 dev-util/buildcache/files/00.test.patch diff --git a/dev-util/buildcache/Manifest b/dev-util/buildcache/Manifest new file mode 100644 index 0000000..48a159e --- /dev/null +++ b/dev-util/buildcache/Manifest @@ -0,0 +1 @@ +DIST buildcache-0.31.3.tar.gz 1522631 BLAKE2B b24329d7452612f91b17990e2909d84c61a2fc5e211899f7e87cbcf97679c4fdcf9581469dec2919eb7ab026fbacd768f6dba6a3ed91dc1499b4e0337e48c0bd SHA512 cdd53fd829190e26bc0a9a4e2bd3e9cd39eb9abf98e621b07f4a749c24e7f1288d68dc1f2e550e49ebbf511a12b89d7c05b68e695510df881b54f54982879267 diff --git a/dev-util/buildcache/buildcache-0.31.3.ebuild b/dev-util/buildcache/buildcache-0.31.3.ebuild new file mode 100644 index 0000000..6efb774 --- /dev/null +++ b/dev-util/buildcache/buildcache-0.31.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A compiler wrapper that caches compilation results for faster recompilation" +HOMEPAGE="https://gitlab.com/bits-n-bites/buildcache" +SRC_URI="https://gitlab.com/bits-n-bites/buildcache/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-v${PV}" + +LICENSE="zlib" #"MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc lz4 test" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/doxygen ) + test? ( dev-cpp/gtest ) +" + +DEPEND=" + app-arch/zstd:= + sys-libs/zlib:= + lz4? ( app-arch/lz4:= ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + cd "${S}" + mv ./src/* ./ + + epatch "${FILES}/00.test.patch" + + default + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( +# -DBUILDCACHE_ENABLE_LZ4=$(usex lz4) +# -DBUILDCACHE_ENABLE_LZFSE=OFF # macOS-only +# -DBUILDCACHE_ENABLE_TESTS=$(usex test) + -DBUILD_SHARED_LIBS=ON + ) + cmake_src_configure +} diff --git a/dev-util/buildcache/files/00.test.patch b/dev-util/buildcache/files/00.test.patch new file mode 100644 index 0000000..7e2ca01 --- /dev/null +++ b/dev-util/buildcache/files/00.test.patch @@ -0,0 +1,7 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,0 +22,2 @@ + compressor.hpp ++ configuration.cpp ++ configuration.hpp + debug_utils.cpp