mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
55 lines
1.0 KiB
Bash
55 lines
1.0 KiB
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake systemd
|
|
|
|
DESCRIPTION="Tiling Wayland compositor based on Mir"
|
|
HOMEPAGE="https://github.com/miracle-wm-org/miracle-wm"
|
|
SRC_URI="https://github.com/miracle-wm-org/miracle-wm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3+ MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="systemd test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
dev-cpp/yaml-cpp:=
|
|
dev-cpp/nlohmann_json
|
|
dev-libs/glib:2
|
|
dev-libs/json-c:=
|
|
dev-libs/libevdev
|
|
dev-libs/libpcre2:=
|
|
gui-libs/mir:=
|
|
media-libs/libglvnd
|
|
x11-base/xwayland
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
media-libs/glm
|
|
"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
test? ( dev-cpp/gtest )
|
|
"
|
|
|
|
src_prepare() {
|
|
cmake_src_prepare
|
|
use test || cmake_comment_add_subdirectory tests/
|
|
|
|
sed -i "s| /usr/lib/systemd/user| $(systemd_get_userunitdir)|" CMakeLists.txt || die
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DSYSTEMD_INTEGRATION=$(usex systemd)
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
"${BUILD_DIR}/bin/miracle-wm-tests" || die
|
|
}
|