diff options
author | Takuya Wakazono <pastalian46@gmail.com> | 2024-09-16 20:01:16 +0900 |
---|---|---|
committer | Takuya Wakazono <pastalian46@gmail.com> | 2024-09-16 20:01:16 +0900 |
commit | fde3e71f1e5f7301a7c4d69d0bcd3e0181c0d223 (patch) | |
tree | a4f5670c4931efd491e913b4521a22231239985a /gui-libs | |
parent | x11-themes/nulloy-theme-night: new package (diff) | |
download | guru-fde3e71f1e5f7301a7c4d69d0bcd3e0181c0d223.tar.gz guru-fde3e71f1e5f7301a7c4d69d0bcd3e0181c0d223.tar.bz2 guru-fde3e71f1e5f7301a7c4d69d0bcd3e0181c0d223.zip |
gui-libs/mir: add 2.17.2
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'gui-libs')
-rw-r--r-- | gui-libs/mir/Manifest | 1 | ||||
-rw-r--r-- | gui-libs/mir/mir-2.17.2.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/gui-libs/mir/Manifest b/gui-libs/mir/Manifest index 21fdaaa68..edc852173 100644 --- a/gui-libs/mir/Manifest +++ b/gui-libs/mir/Manifest @@ -1 +1,2 @@ DIST mir-2.17.0.tar.gz 6674122 BLAKE2B ad6694da4ed8c55e365674811a490347cbe191c4d88976cdf42d3c8371c894c0de0bd0ae2587141cd5a9177b37bf2e86b88f2e160c32f4196ffc1bb552c9f04b SHA512 de6c919f3685280053f17c6da2f8ca9f729bdccf404a27f3ebb7233564b3d6facd130c7aa8f10283b95d815970233dd1c27bcc15120427ddd1c028896b00aec6 +DIST mir-2.17.2.tar.gz 6675804 BLAKE2B 901408a173e0916f0309d6d579063a28eb224bbe2a968d83223fd74817cce55249a389292ade84252fcf7b34b5f76a641bb6c90997460dd05df9fa6930c081f6 SHA512 81b6aaa08b176882e93f7de399f7e1689b11219f6f848f0abf40c3cf0896266c057df121cbfdfbaf29dd09f9b6a71889d97022d8835c3f1e8715726f0cf111e0 diff --git a/gui-libs/mir/mir-2.17.2.ebuild b/gui-libs/mir/mir-2.17.2.ebuild new file mode 100644 index 000000000..7960b1949 --- /dev/null +++ b/gui-libs/mir/mir-2.17.2.ebuild @@ -0,0 +1,90 @@ +# 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="test 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/libepoxy + media-libs/libglvnd + media-libs/mesa + sys-apps/util-linux + x11-libs/libXcursor + x11-libs/libdrm + x11-libs/libxcb:= + x11-libs/libxkbcommon + 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" +) + +src_prepare() { + cmake_src_prepare + cmake_comment_add_subdirectory examples/ +} + +src_configure() { + local platforms="gbm-kms;wayland" + use X && platforms="${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="${platforms}" + ) + 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 +} |