You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
|
inherit gnome.org meson xdg vala
|
||
|
|
||
6 years ago
|
DESCRIPTION="Templating library for GLib"
|
||
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/template-glib"
|
||
6 years ago
|
|
||
|
LICENSE="LGPL-2.1+"
|
||
|
SLOT="0/1"
|
||
6 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
6 years ago
|
|
||
6 years ago
|
IUSE="gtk-doc +introspection vala"
|
||
6 years ago
|
REQUIRED_USE="vala? ( introspection )"
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-libs/glib:2
|
||
6 years ago
|
dev-libs/gobject-introspection:=
|
||
|
" # depends on go-i unconditionally for own functionality, USE flag controls GIR/typelib generation
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
6 years ago
|
vala? ( $(vala_depend) )
|
||
6 years ago
|
dev-util/glib-utils
|
||
|
sys-devel/bison
|
||
|
sys-devel/flex
|
||
|
>=sys-devel/gettext-0.19.8
|
||
6 years ago
|
virtual/pkgconfig
|
||
|
gtk-doc? ( dev-util/gtk-doc )
|
||
|
"
|
||
|
|
||
|
src_prepare() {
|
||
|
use vala && vala_src_prepare
|
||
|
xdg_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local emesonargs=(
|
||
6 years ago
|
-Denable_tracing=false # extra trace debugging that would make things slower
|
||
6 years ago
|
-Denable_profiling=false # -pg passing
|
||
|
$(meson_use introspection with_introspection)
|
||
|
$(meson_use vala with_vapi)
|
||
|
$(meson_use gtk-doc enable_gtk_doc)
|
||
|
)
|
||
|
meson_src_configure
|
||
|
}
|