commit: 329dda68ebb992d37af1c332fbd68b1e6d577db4 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> AuthorDate: Sun Dec 21 16:48:34 2025 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Dec 21 17:08:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=329dda68
net-libs/rest: add 0.10.2 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> net-libs/rest/Manifest | 1 + net-libs/rest/rest-0.10.2.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/net-libs/rest/Manifest b/net-libs/rest/Manifest index 5c72975c2de7..25b10b95b379 100644 --- a/net-libs/rest/Manifest +++ b/net-libs/rest/Manifest @@ -1 +1,2 @@ +DIST librest-0.10.2.tar.bz2 72754 BLAKE2B 14bd8b6c2d11fc79c10062882ee71b37a3d46b0c3671e78902644f92322f75c5afd40a77f4ef0671f4a7b032d60f3b051a5d2bb4f609958e8dce12359f75dd07 SHA512 51a9563ca77262683d99d99b4f924bd3ac97dd1522bac5edc09c44c6477443d885042311e955cdbf0556b5284b365e3f09a09562e276a7e0bc8fbad1188b4860 DIST rest-0.9.1.tar.xz 71136 BLAKE2B 696a43db8a05d90cd2cb86cb2ffe22a817c7b0565c1e90e2508b0dffd3824fa46afef78c039d8911dc50f93c0afe1efbc783676c677b71bb7a2b5ad9ac5a1a26 SHA512 7fb219f571aec2b8d09d71e257e2b230bfb5c862e7e425fd540c96f6e2a22457df7d3df32838d71beec00ba54c7adbd0301d744bb0497c46b3a1413949304462 diff --git a/net-libs/rest/rest-0.10.2.ebuild b/net-libs/rest/rest-0.10.2.ebuild new file mode 100644 index 000000000000..23f5c636e034 --- /dev/null +++ b/net-libs/rest/rest-0.10.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson vala + +DESCRIPTION="Helper library for RESTful services" +HOMEPAGE="https://gnome.pages.gitlab.gnome.org/librest/" +SRC_URI="https://gitlab.gnome.org/GNOME/librest/-/archive/${PV}/lib${P}.tar.bz2" +S="${WORKDIR}/lib${P}" + +LICENSE="LGPL-2.1" +SLOT="1.0" # librest_soversion +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +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.82.0-r2:= ) +" +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 +}
