mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 10:18:08 -07:00
Introduce USE=dot since upstream made it optional when building documentation. Copied the exact use flag description from dev-libs/cutlass's metadata.xml file. Signed-off-by: Lukas Schmelting <lschmelting@posteo.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1373 Merges: https://codeberg.org/gentoo/gentoo/pulls/1373 Signed-off-by: Sam James <sam@gentoo.org>
55 lines
1.4 KiB
Bash
55 lines
1.4 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-multilib python-any-r1
|
|
|
|
DESCRIPTION="C++ interface for pango"
|
|
HOMEPAGE="https://gtkmm.gnome.org/en/index.html"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="2.48"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
IUSE="dot gtk-doc"
|
|
|
|
RDEPEND="
|
|
>=dev-cpp/cairomm-1.16.0:1.16[gtk-doc?,${MULTILIB_USEDEP}]
|
|
>=dev-cpp/glibmm-2.68.0:2.68[gtk-doc?,${MULTILIB_USEDEP}]
|
|
>=dev-libs/libsigc++-3:3[gtk-doc?,${MULTILIB_USEDEP}]
|
|
>=x11-libs/pango-1.56.0[${MULTILIB_USEDEP}]
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
gtk-doc? (
|
|
>=dev-cpp/mm-common-1.0.4
|
|
app-text/doxygen
|
|
dot? ( app-text/doxygen[dot] )
|
|
dev-libs/libxslt
|
|
)
|
|
${PYTHON_DEPS}
|
|
"
|
|
|
|
multilib_src_configure() {
|
|
local emesonargs=(
|
|
-Dmaintainer-mode=false
|
|
$(meson_native_use_bool gtk-doc build-documentation)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
multilib_src_install(){
|
|
meson_src_install
|
|
if use gtk-doc; then
|
|
mkdir -p "${ED}"/usr/share/gtk-doc/ || die
|
|
mv "${ED}"/usr/share/doc/pangomm-*/reference/html/ "${ED}"/usr/share/gtk-doc/ || die
|
|
# remove leftovers in doc folder:
|
|
# - pangomm-${SLOT}/images contains multiple gif files
|
|
# - pangomm-${SLOT}/reference contains compressed pango-${SLOT}.tag file
|
|
# - pangomm-${PV} contains compressed Changelog, NEWS, README.md, README.win32.md
|
|
rm -r "${ED}"/usr/share/doc/* || die
|
|
fi
|
|
}
|