commit:     444036293927b42e9a91e716871af40ed8cb3160
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 26 00:43:23 2018 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Aug 29 21:56:40 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44403629

dev-libs/template-glib: New package for templating with GLib

Package-Manager: Portage-2.3.48, Repoman-2.3.10

 dev-libs/template-glib/Manifest                    |  1 +
 dev-libs/template-glib/metadata.xml                | 13 ++++++
 dev-libs/template-glib/template-glib-3.28.0.ebuild | 46 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/dev-libs/template-glib/Manifest b/dev-libs/template-glib/Manifest
new file mode 100644
index 00000000000..c5c9881f1aa
--- /dev/null
+++ b/dev-libs/template-glib/Manifest
@@ -0,0 +1 @@
+DIST template-glib-3.28.0.tar.xz 54320 BLAKE2B 
3f06857756cc49655b0289a4c0e576c681948e347112de713e0ea3c8c47db8a68efb258688afa8277362d2fb1e5a73d2f659570607d90abf6a804ea13a9467e2
 SHA512 
95d780c03567a8cc1bc02ffabfed2ef4bbe359941b326bad006aba6689686421bc25d357b574cf8ab9d9a27b7707f2f6041a9fcc90a7fcedbf02e9a0e8286860

diff --git a/dev-libs/template-glib/metadata.xml 
b/dev-libs/template-glib/metadata.xml
new file mode 100644
index 00000000000..b776041d6e2
--- /dev/null
+++ b/dev-libs/template-glib/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo GNOME Desktop</name>
+       </maintainer>
+       <longdescription>Template-GLib is a templating library for GLib. It 
includes a simple template
+               format along with integration into GObject-Introspection for 
properties and
+               methods. It separates the parsing of templates and the 
expansion of templates
+               for faster expansion. You can also define scope, custom 
functions, and more
+               with the embedded expression language.</longdescription>
+</pkgmetadata>

diff --git a/dev-libs/template-glib/template-glib-3.28.0.ebuild 
b/dev-libs/template-glib/template-glib-3.28.0.ebuild
new file mode 100644
index 00000000000..319031f57b3
--- /dev/null
+++ b/dev-libs/template-glib/template-glib-3.28.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome.org meson xdg vala
+
+DESCRIPTION="Templating library for GLib"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/template-glib";
+
+LICENSE="LGPL-2.1+"
+SLOT="0/1"
+KEYWORDS="~amd64"
+
+IUSE="gtk-doc +introspection vala"
+REQUIRED_USE="vala? ( introspection )"
+
+RDEPEND="
+       dev-libs/glib:2
+       dev-libs/gobject-introspection:=
+" # 3.28.0 depends on go-i unconditionally, USE flag controls GIR/typelib 
generation
+DEPEND="${RDEPEND}
+       vala? ( $(vala_depend) )
+       dev-util/glib-utils
+       sys-devel/bison
+       sys-devel/flex
+       sys-devel/gettext
+       virtual/pkgconfig
+       gtk-doc? ( dev-util/gtk-doc )
+"
+
+src_prepare() {
+       use vala && vala_src_prepare
+       xdg_src_prepare
+}
+
+src_configure() {
+       local emesonargs=(
+               -Denable_tracing=false # extra trace debugging that would make 
things slower
+               -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
+}

Reply via email to