mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
66 lines
1.3 KiB
Bash
66 lines
1.3 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
inherit gnome.org meson python-any-r1 virtualx
|
|
|
|
DESCRIPTION="C++ interface for GTK+"
|
|
HOMEPAGE="https://gtkmm.gnome.org/en/index.html"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="4.0"
|
|
KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc ~x86"
|
|
IUSE="gtk-doc test vulkan"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/MR-101.patch
|
|
)
|
|
|
|
RDEPEND="
|
|
>=dev-cpp/glibmm-2.75.0:2.68[gtk-doc?]
|
|
>=gui-libs/gtk-4.22.0:4[vulkan?]
|
|
>=dev-cpp/cairomm-1.15.4:1.16[gtk-doc?]
|
|
>=dev-cpp/pangomm-2.50.0:2.48[gtk-doc?]
|
|
>=x11-libs/gdk-pixbuf-2.35.5:2
|
|
>=media-libs/libepoxy-1.2
|
|
vulkan? ( media-libs/vulkan-loader )
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
gtk-doc? ( dev-libs/libsigc++:3 )
|
|
"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
gtk-doc? (
|
|
app-text/doxygen[dot]
|
|
dev-lang/perl
|
|
dev-libs/libxslt
|
|
)
|
|
${PYTHON_DEPS}
|
|
"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
-Dbuild-demos=false
|
|
$(meson_use gtk-doc build-documentation)
|
|
$(meson_use test build-tests)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_test() {
|
|
virtx meson_src_test
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
if use gtk-doc; then
|
|
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
|
mv "${ED}"/usr/share/doc/gtkmm-4.0 "${ED}"/usr/share/gtk-doc/html/ || die
|
|
fi
|
|
}
|