add mir and sccache

This commit is contained in:
CCF_100 committed 2026-06-02 01:30:09 -05:00
1 parent bf929921e6
commit c60436826c
3 files changed
+292

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST itoa-0.3.4.crate 9921 BLAKE2B b2cc97b6b50164bfab0ccf3afb53ec827ec3247a8111814f9e2e3181394515abda1f452168d11b518d771701f6ce9a2936a0ed69e9b82e1a842c51c1e74df536 SHA512 1cecca0c6c6d9602e692e16cb6dce850c0f7c7ac5ec1defe1f5b8a17ed325abe41eaba56c1d973dc63bc476b52d436a90b266f6eff99c618b6581cbffcaa278f
+116
View File
@@ -0,0 +1,116 @@
# Copyright 2017-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.7
EAPI=8
CRATES=""
# Required for tests but not included by pycargoebuild.
CRATES+="
itoa@0.3.4
"
# https://github.com/mozilla/sccache?tab=readme-ov-file#build-requirements
RUST_MIN_VER="1.85.0"
inherit git-r3 cargo optfeature systemd
DESCRIPTION="ccache/distcc like tool with support for rust and cloud storage"
HOMEPAGE="https://github.com/mozilla/sccache"
EGIT_REPO_URI="https://github.com/CCF100/sccache.git"
SRC_URI="
${CARGO_CRATE_URIS}
"
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
Unicode-3.0 Unicode-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS=""
IUSE="azure dist-client dist-server gcs memcached redis s3 webdav"
BDEPEND="virtual/pkgconfig"
DEPEND="
app-arch/zstd:=
virtual/zlib:=
dist-server? ( dev-libs/openssl:= )
gcs? ( dev-libs/openssl:= )
"
RDEPEND="
${DEPEND}
dev-util/shadowman
"
# Needed for eselect calls in pkg_*
IDEPEND="dev-util/shadowman"
QA_FLAGS_IGNORED="usr/bin/sccache*"
pkg_setup() {
export OPENSSL_NO_VENDOR=1
export PKG_CONFIG_ALLOW_CROSS=1
export ZSTD_SYS_USE_PKG_CONFIG=1
rust_pkg_setup
}
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
src_configure() {
local myfeatures=(
$(usev azure)
$(usev dist-client)
$(usev dist-server)
$(usev gcs)
$(usev memcached)
$(usev redis)
$(usev s3)
$(usev webdav)
)
cargo_src_configure --no-default-features
}
src_install() {
cargo_src_install
keepdir /etc/sccache
insinto /usr/share/shadowman/tools
newins - sccache <<<"${EPREFIX}/usr/lib/sccache/bin"
dodoc -r docs
if use dist-server; then
newinitd "${FILESDIR}"/server.initd sccache-server
newconfd "${FILESDIR}"/server.confd sccache-server
newinitd "${FILESDIR}"/scheduler.initd sccache-scheduler
newconfd "${FILESDIR}"/scheduler.confd sccache-scheduler
systemd_dounit "${FILESDIR}"/sccache-server.service
systemd_dounit "${FILESDIR}"/sccache-scheduler.service
fi
}
pkg_postinst() {
use memcached && optfeature "memcached backend support" net-misc/memcached
use redis && optfeature "redis backend support" dev-db/redis
if [[ -z ${ROOT} ]]; then
eselect compiler-shadow update sccache
fi
}
pkg_prerm() {
if [[ -z ${REPLACE_BY_VERSION} && -z ${ROOT} ]]; then
eselect compiler-shadow remove sccache
fi
}
+175
View File
@@ -0,0 +1,175 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
anstyle@1.0.13
bitflags@2.11.0
calloop@0.14.3
cc@1.2.55
cfg-if@1.0.4
cfg_aliases@0.2.1
clap@4.5.56
clap_builder@4.5.56
clap_lex@0.7.7
codespan-reporting@0.13.1
concurrent-queue@2.5.0
crossbeam-utils@0.8.21
cxx-build@1.0.194
cxx@1.0.194
cxxbridge-cmd@1.0.194
cxxbridge-flags@1.0.194
cxxbridge-macro@1.0.194
downcast-rs@1.2.1
equivalent@1.0.2
errno@0.3.14
find-msvc-tools@0.1.9
foldhash@0.2.0
hashbrown@0.16.1
hermit-abi@0.3.9
hermit-abi@0.5.2
indexmap@2.13.0
input-sys@1.18.0
input@0.9.1
io-lifetimes@1.0.11
libc@0.2.180
libudev-sys@0.1.4
link-cplusplus@1.0.12
linux-raw-sys@0.11.0
log@0.4.29
memchr@2.7.6
nix@0.31.1
pin-project-lite@0.2.16
pkg-config@0.3.32
polling@3.11.0
prettyplease@0.2.37
proc-macro2@1.0.106
quick-xml@0.39.2
quote@1.0.45
rustix@1.1.3
scratch@1.0.9
serde@1.0.228
serde_core@1.0.228
serde_derive@1.0.228
shlex@1.3.0
slab@0.4.11
smallvec@1.15.1
strsim@0.11.1
syn@2.0.117
termcolor@1.4.1
tracing-core@0.1.36
tracing@0.1.44
udev@0.9.3
unicode-ident@1.0.22
unicode-width@0.2.2
wayland-backend@0.3.14
wayland-scanner@0.31.9
wayland-server@0.31.12
wayland-sys@0.31.10
winapi-util@0.1.11
windows-link@0.2.1
windows-sys@0.48.0
windows-sys@0.61.2
windows-targets@0.48.5
windows_aarch64_gnullvm@0.48.5
windows_aarch64_msvc@0.48.5
windows_i686_gnu@0.48.5
windows_i686_msvc@0.48.5
windows_x86_64_gnu@0.48.5
windows_x86_64_gnullvm@0.48.5
windows_x86_64_msvc@0.48.5
"
RUST_MIN_VER="1.82.0"
inherit cargo cmake xdg git-r3
DESCRIPTION="Set of libraries for building Wayland based shells"
HOMEPAGE="https://canonical.com/mir"
#SRC_URI="
# ${CARGO_CRATE_URIS}
#"
EGIT_REPO_URI="https://github.com/canonical/mir.git"
LICENSE="|| ( GPL-2 GPL-3 ) || ( LGPL-2.1 LGPL-3 )"
# Dependent crate licenses
LICENSE+=" Apache-2.0 MIT Unicode-3.0 ZLIB"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS=""
IUSE="examples test wayland X"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/glibmm:2
dev-cpp/libxmlpp:2.6
dev-cpp/yaml-cpp:=
dev-libs/boost:=
dev-libs/glib:2
dev-libs/libinput:=
dev-libs/wayland
dev-util/lttng-ust:=
media-libs/freetype
media-libs/libdisplay-info:=
media-libs/libepoxy
media-libs/libglvnd
media-libs/mesa
sys-apps/util-linux
x11-libs/libXcursor
x11-libs/libdrm
x11-libs/libxcb:=
x11-libs/libxkbcommon
x11-libs/pixman
virtual/libudev:=
X? ( x11-libs/libX11 )
"
DEPEND="
${RDEPEND}
media-libs/glm
"
BDEPEND="
dev-util/gdbus-codegen
virtual/pkgconfig
test? (
dev-cpp/gtest
dev-util/umockdev
x11-base/xwayland
)
"
PATCHES=(
# bug 932786
#"${FILESDIR}/${PN}-2.17.0-remove-debug-flags.patch"
#"${FILESDIR}/${PN}-2.20.0-remove-tests.patch"
)
src_prepare() {
cmake_src_prepare
use examples || cmake_comment_add_subdirectory examples/ examples/tests/
}
src_configure() {
local platforms=( gbm-kms atomic-kms )
use wayland && platforms+=( wayland )
use X && platforms+=( x11 )
local mycmakeargs=(
# wlcs is not packaged
-DMIR_ENABLE_WLCS_TESTS=OFF
-DMIR_ENABLE_TESTS="$(usex test)"
-DMIR_FATAL_COMPILE_WARNINGS=OFF
-DMIR_PLATFORM="$(IFS=';'; echo "${platforms[*]}")"
-DMIR_ENABLE_RUST=ON
)
use test && mycmakeargs+=(
# likely will not work in build environment
-DMIR_BUILD_PERFORMANCE_TESTS=OFF
-DMIR_BUILD_PLATFORM_TEST_HARNESS=OFF
-DMIR_BUILD_UNIT_TESTS=OFF
)
cmake_src_configure
}
src_test() {
xdg_environment_reset
cmake_src_test
}