diff options
Diffstat (limited to 'gui-libs/libadwaita/libadwaita-1.1.1.ebuild')
-rw-r--r-- | gui-libs/libadwaita/libadwaita-1.1.1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/gui-libs/libadwaita/libadwaita-1.1.1.ebuild b/gui-libs/libadwaita/libadwaita-1.1.1.ebuild new file mode 100644 index 000000000000..b70296c62fd8 --- /dev/null +++ b/gui-libs/libadwaita/libadwaita-1.1.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..10} ) +VALA_MIN_API_VERSION="0.52" +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" + +LICENSE="LGPL-2.1+" +SLOT="1" +IUSE="+introspection test +vala" +REQUIRED_USE="vala? ( introspection )" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +DEPEND=" + >=dev-libs/glib-2.66:2 + >=gui-libs/gtk-4.5.0:4[introspection?] + dev-libs/fribidi + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + vala? ( $(vala_depend) ) + >=dev-util/meson-0.59.0 + dev-util/glib-utils + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + use vala && vala_src_prepare + default +} + +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 +} |