2023-05-24 17:37:19 +02:00
|
|
|
# Copyright 2022-2023 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
|
|
inherit gnome.org meson python-any-r1 vala virtualx
|
|
|
|
|
|
|
|
DESCRIPTION="Building blocks for modern adaptive GNOME applications"
|
|
|
|
HOMEPAGE="https://gnome.pages.gitlab.gnome.org/libadwaita/ https://gitlab.gnome.org/GNOME/libadwaita"
|
2023-05-24 17:37:57 +02:00
|
|
|
SRC_URI="https://gitlab.gnome.org/GNOME/libadwaita/-/archive/f0dd780a40707044edc45fc4c6129e4c88fe2d38/libadwaita-f0dd780a40707044edc45fc4c6129e4c88fe2d38.tar.gz"
|
2023-05-24 17:37:19 +02:00
|
|
|
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
|
|
SLOT="1"
|
|
|
|
IUSE="+introspection test +vala"
|
|
|
|
REQUIRED_USE="vala? ( introspection )"
|
|
|
|
|
2023-05-25 12:43:31 +02:00
|
|
|
KEYWORDS="~arm ~arm64"
|
2023-05-24 17:37:19 +02:00
|
|
|
|
|
|
|
S="${WORKDIR}/libadwaita-f0dd780a40707044edc45fc4c6129e4c88fe2d38"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-libs/glib-2.72:2
|
2023-05-24 19:55:16 +02:00
|
|
|
>=gui-libs/gtk-4.11.2:4[introspection?]
|
2023-05-24 17:37:19 +02:00
|
|
|
dev-libs/fribidi
|
|
|
|
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
2023-05-24 19:46:35 +02:00
|
|
|
dev-lang/sassc
|
2023-05-24 17:37:19 +02:00
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
${PYTHON_DEPS}
|
|
|
|
vala? ( $(vala_depend) )
|
|
|
|
dev-util/glib-utils
|
|
|
|
sys-devel/gettext
|
|
|
|
virtual/pkgconfig
|
|
|
|
test? ( dev-libs/appstream-glib )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
use vala && vala_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
# Never use gi-docgen subproject
|
|
|
|
--wrap-mode nofallback
|
|
|
|
|
|
|
|
-Dprofiling=false
|
|
|
|
$(meson_feature introspection)
|
|
|
|
$(meson_use vala vapi)
|
|
|
|
-Dgtk_doc=false # we ship pregenerated docs
|
|
|
|
$(meson_use test tests)
|
|
|
|
-Dexamples=false
|
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
virtx meson_src_test --timeout-multiplier 2
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
|
|
|
|
|
|
|
insinto /usr/share/gtk-doc/html
|
|
|
|
# This will install libadwaita API docs unconditionally, but this is intentional
|
|
|
|
doins -r "${S}"/doc/libadwaita-1
|
|
|
|
}
|