net-libs/libsearpc: initial import

This commit is contained in:
Julian Ospald 2018-06-09 04:05:55 +02:00
parent bd6304f15b
commit 9bf56439a6
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# 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
}