From 1bc9c3b9d5a8c51b67f6ea2f57bdd76ff5073097 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Sep 2022 03:11:19 +0100 Subject: gentoo auto-resync : 28:09:2022 - 03:11:19 --- net-libs/rest/rest-0.9.1.ebuild | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 net-libs/rest/rest-0.9.1.ebuild (limited to 'net-libs/rest/rest-0.9.1.ebuild') diff --git a/net-libs/rest/rest-0.9.1.ebuild b/net-libs/rest/rest-0.9.1.ebuild new file mode 100644 index 000000000000..dfbc3e3bca1f --- /dev/null +++ b/net-libs/rest/rest-0.9.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org meson vala + +DESCRIPTION="Helper library for RESTful services" +HOMEPAGE="https://wiki.gnome.org/Projects/Librest" + +LICENSE="LGPL-2.1" +SLOT="1.0" # librest_soversion +KEYWORDS="~amd64" +IUSE="gtk-doc +introspection test vala" +REQUIRED_USE=" + gtk-doc? ( introspection ) + vala? ( introspection ) +" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.44.0:2 + >=net-libs/libsoup-2.99.2:3.0 + dev-libs/json-glib:0[introspection?] + dev-libs/libxml2:2 + app-misc/ca-certificates + introspection? ( >=dev-libs/gobject-introspection-1.74.0:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/glib-utils + gtk-doc? ( >=dev-util/gi-docgen-2021.6 ) + vala? ( $(vala_depend) ) +" + +src_prepare() { + default + vala_setup + + # The only two tests from the rest-extras suite (flickr and lastfm) require + # network access + if has network-sandbox ${FEATURES}; then + sed -i -e '/flickr/d' -e '/lastfm/d' tests/meson.build + fi +} + +src_configure() { + local emesonargs=( + -Dca_certificates=true + -Dca_certificates_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt + $(meson_use introspection) + $(meson_use vala vapi) + -Dexamples=false + $(meson_use gtk-doc gtk_doc) + -Dsoup2=false + $(meson_use test tests) + ) + meson_src_configure +} -- cgit v1.2.3