mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
gui-libs/mir: new package, add 2.17.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
1
gui-libs/mir/Manifest
Normal file
1
gui-libs/mir/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST mir-2.17.0.tar.gz 6674122 BLAKE2B ad6694da4ed8c55e365674811a490347cbe191c4d88976cdf42d3c8371c894c0de0bd0ae2587141cd5a9177b37bf2e86b88f2e160c32f4196ffc1bb552c9f04b SHA512 de6c919f3685280053f17c6da2f8ca9f729bdccf404a27f3ebb7233564b3d6facd130c7aa8f10283b95d815970233dd1c27bcc15120427ddd1c028896b00aec6
|
||||
11
gui-libs/mir/metadata.xml
Normal file
11
gui-libs/mir/metadata.xml
Normal file
@@ -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>
|
||||
77
gui-libs/mir/mir-2.17.0.ebuild
Normal file
77
gui-libs/mir/mir-2.17.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user