diff options
Diffstat (limited to 'gui-wm/miracle-wm/miracle-wm-0.3.6.ebuild')
-rw-r--r-- | gui-wm/miracle-wm/miracle-wm-0.3.6.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gui-wm/miracle-wm/miracle-wm-0.3.6.ebuild b/gui-wm/miracle-wm/miracle-wm-0.3.6.ebuild new file mode 100644 index 000000000..50d74eb00 --- /dev/null +++ b/gui-wm/miracle-wm/miracle-wm-0.3.6.ebuild @@ -0,0 +1,55 @@ +# 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 + >=gui-libs/mir-2.18 + dev-libs/libpcre2:= + media-libs/libglvnd + x11-base/xwayland + x11-libs/libnotify +" +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 +} |