From 9bf56439a6c712eea57c7746f868462e45338cae Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 9 Jun 2018 04:05:55 +0200 Subject: [PATCH] net-libs/libsearpc: initial import --- .../libsearpc/libsearpc-3.1.exheres-0 | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 packages/net-libs/libsearpc/libsearpc-3.1.exheres-0 diff --git a/packages/net-libs/libsearpc/libsearpc-3.1.exheres-0 b/packages/net-libs/libsearpc/libsearpc-3.1.exheres-0 new file mode 100644 index 00000000..411a2093 --- /dev/null +++ b/packages/net-libs/libsearpc/libsearpc-3.1.exheres-0 @@ -0,0 +1,37 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require python [ blacklist=3 has_bin=true multibuild=false ] +require github [ user=haiwen tag="v${PV}-latest" ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] + +SUMMARY="A simple C language RPC framework (including both server side & client side)" + +LICENCES="Apache-2.0" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build: + virtual/pkg-config + build+run: + dev-libs/glib:2 + dev-libs/jansson + run: + dev-python/simplejson[python_abis:*(-)?] +" + +BUGS_TO="hasufell@posteo.de" + +src_prepare() { + default + edo sed -i -e "s/(DESTDIR)//" ${PN}.pc.in + eautoreconf +} + +src_install() { + default + edo sed -i -e "s:env python[[:digit:].]*$:env ${PYTHON##*/}:" \ + "${IMAGE}"/usr/$(exhost --target)/bin/searpc-codegen.py +}