commit:     9bfed3733a2016baf53bbf4b8beccb23867400e5
Author:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
AuthorDate: Tue Nov 15 21:59:42 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Nov 23 17:55:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bfed373

net-libs/libsearpc: version bump to 3.3.0

Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-libs/libsearpc/Manifest               |  1 +
 net-libs/libsearpc/libsearpc-3.3.0.ebuild | 42 +++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/net-libs/libsearpc/Manifest b/net-libs/libsearpc/Manifest
index fb2501075b90..864895d38003 100644
--- a/net-libs/libsearpc/Manifest
+++ b/net-libs/libsearpc/Manifest
@@ -1,2 +1,3 @@
 DIST libsearpc-3.2.0.tar.gz 52303 BLAKE2B 
34707b504b4e63017549e5ed04e8e1e8d1e98b873aebe2ad3f675fe88e209bb73d8b56d1aef137bc4bead2a2fbcf7410dfdf1d02a92a8f37efbaaf0d56d79a4c
 SHA512 
071784b6d34f6ddf947748474c210f0f803e3451373e351b6a768b0cf4a17ddcdaf415ff4ce5f020f1a68df3f6f0a0e53a78ad9e2df286fafea870e303c8f6dd
 DIST libsearpc-3.2.0_p1.tar.gz 54011 BLAKE2B 
9bdfa72b207eb57d1242384e5581eea9083f4f30616a9bc8da1255b281c0a847ec1fc6d23db7510dc7988a67d7c836762b8343ac4fdffe07ce6296b65d9cf8c8
 SHA512 
2e1580ffa54e233b078385a94d2d9a7e080bfb2f8ccbaf96645c94f86d0eda686bd84277341cff39840afa03fc67abd05cb2f57a81d117fff4773280f9da265a
+DIST libsearpc-3.3.0.tar.gz 54140 BLAKE2B 
6645a7e4c14c9d50b59ce8ebaecd13bb247d16d66449b0d251d27d12d46507cc2e4b8468e87f6f1b222da2243b59fc01b69349eb06e96b5cd0d6aabd1aeff72b
 SHA512 
0fd07dcd417b540cb8ed53f1103a03bc6b1a2b9bbb8ca0858aef44a352e3d5d2b6ad51901a29ac6be27acfe25f93233530003982315d0f6e268fa43992f04240

diff --git a/net-libs/libsearpc/libsearpc-3.3.0.ebuild 
b/net-libs/libsearpc/libsearpc-3.3.0.ebuild
new file mode 100644
index 000000000000..7702156b977b
--- /dev/null
+++ b/net-libs/libsearpc/libsearpc-3.3.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+# Upstream is moving tags repeatedly, then we use commit hash.
+RELEASE_COMMIT="15f6f0b9f451b9ecf99dedab72e9242e54e124eb" #tag v3.3-latest
+
+inherit autotools python-single-r1
+
+DESCRIPTION="A simple C language RPC framework"
+HOMEPAGE="https://github.com/haiwen/libsearpc/ http://seafile.com/";
+SRC_URI="https://github.com/haiwen/${PN}/archive/${RELEASE_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+       >=dev-libs/glib-2.26.0
+       >=dev-libs/jansson-2.2.1:="
+RDEPEND="${DEPEND}
+       $(python_gen_cond_dep '
+               dev-python/simplejson[${PYTHON_USEDEP}]
+       ')"
+
+S="${WORKDIR}/${PN}-${RELEASE_COMMIT}"
+
+src_prepare() {
+       default
+       sed -i -e "s/(DESTDIR)//" ${PN}.pc.in || die
+       eautoreconf
+}
+
+src_install() {
+       default
+       # Remove unnecessary .la files
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to