1 |
commit: 444036293927b42e9a91e716871af40ed8cb3160 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 26 00:43:23 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 29 21:56:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44403629 |
7 |
|
8 |
dev-libs/template-glib: New package for templating with GLib |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
dev-libs/template-glib/Manifest | 1 + |
13 |
dev-libs/template-glib/metadata.xml | 13 ++++++ |
14 |
dev-libs/template-glib/template-glib-3.28.0.ebuild | 46 ++++++++++++++++++++++ |
15 |
3 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/template-glib/Manifest b/dev-libs/template-glib/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..c5c9881f1aa |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/template-glib/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST template-glib-3.28.0.tar.xz 54320 BLAKE2B 3f06857756cc49655b0289a4c0e576c681948e347112de713e0ea3c8c47db8a68efb258688afa8277362d2fb1e5a73d2f659570607d90abf6a804ea13a9467e2 SHA512 95d780c03567a8cc1bc02ffabfed2ef4bbe359941b326bad006aba6689686421bc25d357b574cf8ab9d9a27b7707f2f6041a9fcc90a7fcedbf02e9a0e8286860 |
24 |
|
25 |
diff --git a/dev-libs/template-glib/metadata.xml b/dev-libs/template-glib/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..b776041d6e2 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/template-glib/metadata.xml |
30 |
@@ -0,0 +1,13 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>gnome@g.o</email> |
36 |
+ <name>Gentoo GNOME Desktop</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription>Template-GLib is a templating library for GLib. It includes a simple template |
39 |
+ format along with integration into GObject-Introspection for properties and |
40 |
+ methods. It separates the parsing of templates and the expansion of templates |
41 |
+ for faster expansion. You can also define scope, custom functions, and more |
42 |
+ with the embedded expression language.</longdescription> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-libs/template-glib/template-glib-3.28.0.ebuild b/dev-libs/template-glib/template-glib-3.28.0.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..319031f57b3 |
48 |
--- /dev/null |
49 |
+++ b/dev-libs/template-glib/template-glib-3.28.0.ebuild |
50 |
@@ -0,0 +1,46 @@ |
51 |
+# Copyright 1999-2018 Gentoo Foundation |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=6 |
55 |
+ |
56 |
+inherit gnome.org meson xdg vala |
57 |
+ |
58 |
+DESCRIPTION="Templating library for GLib" |
59 |
+HOMEPAGE="https://gitlab.gnome.org/GNOME/template-glib" |
60 |
+ |
61 |
+LICENSE="LGPL-2.1+" |
62 |
+SLOT="0/1" |
63 |
+KEYWORDS="~amd64" |
64 |
+ |
65 |
+IUSE="gtk-doc +introspection vala" |
66 |
+REQUIRED_USE="vala? ( introspection )" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ dev-libs/glib:2 |
70 |
+ dev-libs/gobject-introspection:= |
71 |
+" # 3.28.0 depends on go-i unconditionally, USE flag controls GIR/typelib generation |
72 |
+DEPEND="${RDEPEND} |
73 |
+ vala? ( $(vala_depend) ) |
74 |
+ dev-util/glib-utils |
75 |
+ sys-devel/bison |
76 |
+ sys-devel/flex |
77 |
+ sys-devel/gettext |
78 |
+ virtual/pkgconfig |
79 |
+ gtk-doc? ( dev-util/gtk-doc ) |
80 |
+" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ use vala && vala_src_prepare |
84 |
+ xdg_src_prepare |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local emesonargs=( |
89 |
+ -Denable_tracing=false # extra trace debugging that would make things slower |
90 |
+ -Denable_profiling=false # -pg passing |
91 |
+ $(meson_use introspection with_introspection) |
92 |
+ $(meson_use vala with_vapi) |
93 |
+ $(meson_use gtk-doc enable_gtk_doc) |
94 |
+ ) |
95 |
+ meson_src_configure |
96 |
+} |