dev-libs/jsonrpc-glib: New package for JSON-RPC with GLib
authorMart Raudsepp <leio@gentoo.org>
Sun, 26 Aug 2018 00:34:52 +0000 (03:34 +0300)
committerMart Raudsepp <leio@gentoo.org>
Wed, 29 Aug 2018 21:56:37 +0000 (00:56 +0300)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

dev-libs/jsonrpc-glib/Manifest [new file with mode: 0644]
dev-libs/jsonrpc-glib/jsonrpc-glib-3.28.1.ebuild [new file with mode: 0644]
dev-libs/jsonrpc-glib/metadata.xml [new file with mode: 0644]

diff --git a/dev-libs/jsonrpc-glib/Manifest b/dev-libs/jsonrpc-glib/Manifest
new file mode 100644 (file)
index 0000000..bda018d
--- /dev/null
@@ -0,0 +1 @@
+DIST jsonrpc-glib-3.28.1.tar.xz 40328 BLAKE2B 36b512e27c46836fc8285bf4d6a6f8e39bdd748a09475af151d9a07f05e92dafe269d7675f8ff0253b21485405776d9348b38b067d73f75d6bdc3203fb876ea1 SHA512 874791c898d8fd6f8c6401b8ae219dc08e34e207ba214add1f14bb28b407581dc372487398d276395ddbe2f349d5b04f2ffb78fc73398d85975df40d3409f352
diff --git a/dev-libs/jsonrpc-glib/jsonrpc-glib-3.28.1.ebuild b/dev-libs/jsonrpc-glib/jsonrpc-glib-3.28.1.ebuild
new file mode 100644 (file)
index 0000000..1a70d33
--- /dev/null
@@ -0,0 +1,44 @@
+# 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="JSON-RPC library for GLib"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/jsonrpc-glib"
+
+LICENSE="LGPL-2.1+"
+SLOT="0/1"
+KEYWORDS="~amd64"
+
+IUSE="gtk-doc +introspection test vala"
+REQUIRED_USE="vala? ( introspection )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/glib:2
+       dev-libs/json-glib[introspection?]
+       introspection? ( dev-libs/gobject-introspection:= )
+"
+DEPEND="${RDEPEND}
+       vala? ( $(vala_depend) )
+       virtual/pkgconfig
+       gtk-doc? ( dev-util/gtk-doc )
+"
+
+src_prepare() {
+       use vala && vala_src_prepare
+       xdg_src_prepare
+}
+
+src_configure() {
+       local emesonargs=(
+               -Denable_profiling=false # -pg passing
+               $(meson_use introspection with_introspection)
+               $(meson_use vala with_vapi)
+               $(meson_use gtk-doc enable_gtk_doc)
+               $(meson_use test enable_tests)
+       )
+       meson_src_configure
+}
diff --git a/dev-libs/jsonrpc-glib/metadata.xml b/dev-libs/jsonrpc-glib/metadata.xml
new file mode 100644 (file)
index 0000000..15582ff
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>gnome@gentoo.org</email>
+               <name>Gentoo GNOME Desktop</name>
+       </maintainer>
+       <longdescription>Jsonrpc-GLib is a JSON-RPC library for GLib. It includes support for
+               communicating as both a JSON-RPC client and server. Additionally, it
+               supports upgrating connections to use GVariant for less runtime overhead.</longdescription>
+</pkgmetadata>