i'll make this one work later, maybe

This commit is contained in:
TheK0tYaRa 2025-06-03 00:17:46 +03:00
parent 75b3b34f27
commit 3a4506d712
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST buildcache-0.31.3.tar.gz 1522631 BLAKE2B b24329d7452612f91b17990e2909d84c61a2fc5e211899f7e87cbcf97679c4fdcf9581469dec2919eb7ab026fbacd768f6dba6a3ed91dc1499b4e0337e48c0bd SHA512 cdd53fd829190e26bc0a9a4e2bd3e9cd39eb9abf98e621b07f4a749c24e7f1288d68dc1f2e550e49ebbf511a12b89d7c05b68e695510df881b54f54982879267

View file

@ -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
}

View file

@ -0,0 +1,7 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,0 +22,2 @@
compressor.hpp
+ configuration.cpp
+ configuration.hpp
debug_utils.cpp