aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-05-25 14:48:34 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-05-25 14:49:14 +0900
commit1e5dfcf72314f60fb5a0375e4222fe856cc079e0 (patch)
tree681e08d1f7fd0846a2cb8a5fffe74948bbb77ef5 /gui-libs
parentgui-libs/gtk-session-lock: add missing dev-libs/glib (diff)
downloadguru-1e5dfcf72314f60fb5a0375e4222fe856cc079e0.tar.gz
guru-1e5dfcf72314f60fb5a0375e4222fe856cc079e0.tar.bz2
guru-1e5dfcf72314f60fb5a0375e4222fe856cc079e0.zip
gui-libs/mir: new package, add 2.17.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'gui-libs')
-rw-r--r--gui-libs/mir/Manifest1
-rw-r--r--gui-libs/mir/metadata.xml11
-rw-r--r--gui-libs/mir/mir-2.17.0.ebuild77
3 files changed, 89 insertions, 0 deletions
diff --git a/gui-libs/mir/Manifest b/gui-libs/mir/Manifest
new file mode 100644
index 000000000..21fdaaa68
--- /dev/null
+++ b/gui-libs/mir/Manifest
@@ -0,0 +1 @@
+DIST mir-2.17.0.tar.gz 6674122 BLAKE2B ad6694da4ed8c55e365674811a490347cbe191c4d88976cdf42d3c8371c894c0de0bd0ae2587141cd5a9177b37bf2e86b88f2e160c32f4196ffc1bb552c9f04b SHA512 de6c919f3685280053f17c6da2f8ca9f729bdccf404a27f3ebb7233564b3d6facd130c7aa8f10283b95d815970233dd1c27bcc15120427ddd1c028896b00aec6
diff --git a/gui-libs/mir/metadata.xml b/gui-libs/mir/metadata.xml
new file mode 100644
index 000000000..7ae8fbe71
--- /dev/null
+++ b/gui-libs/mir/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pastalian46@gmail.com</email>
+ <name>Takuya Wakazono</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">canonical/mir</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/gui-libs/mir/mir-2.17.0.ebuild b/gui-libs/mir/mir-2.17.0.ebuild
new file mode 100644
index 000000000..30e0fda31
--- /dev/null
+++ b/gui-libs/mir/mir-2.17.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="Set of libraries for building Wayland based shells"
+HOMEPAGE="https://mir-server.io/"
+SRC_URI="https://github.com/canonical/mir/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 ) || ( LGPL-2.1 LGPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ 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/libepoxy
+ media-libs/libglvnd
+ media-libs/mesa
+ x11-libs/libdrm
+ x11-libs/libXcursor
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon
+"
+DEPEND="
+ ${RDEPEND}
+ media-libs/glm
+"
+BDEPEND="
+ dev-util/gdbus-codegen
+ virtual/pkgconfig
+ examples? ( dev-util/wayland-scanner )
+ test? (
+ dev-cpp/gtest
+ dev-util/umockdev
+ x11-base/xwayland
+ )
+"
+
+src_prepare() {
+ cmake_src_prepare
+ use examples || cmake_comment_add_subdirectory examples/
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # wlcs is not packaged
+ -DMIR_ENABLE_WLCS_TESTS=OFF
+ -DMIR_ENABLE_TESTS="$(usex test)"
+ )
+ 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_install() {
+ cmake_src_install
+
+ if use test; then
+ # remove dummy libraries
+ rm -f "${ED}/usr/$(get_libdir)/mir/server-platform/"{graphics-dummy.so,input-stub.so} || die
+ fi
+}