1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
6 inherit autotools python-single-r1 vcs-snapshot
8 DESCRIPTION="A simple C language RPC framework"
9 HOMEPAGE="https://github.com/haiwen/libsearpc/ http://seafile.com/"
10 #TODO: Use commit hash tarball on next version bump.
11 SRC_URI="https://github.com/haiwen/${PN}/archive/v3.1-latest.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
17 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19 DEPEND="${PYTHON_DEPS}
20 >=dev-libs/glib-2.26.0
21 >=dev-libs/jansson-2.2.1"
23 $(python_gen_cond_dep '
24 dev-python/simplejson[${PYTHON_MULTI_USEDEP}]
29 sed -i -e "s/(DESTDIR)//" ${PN}.pc.in || die
35 # Remove unnecessary .la files, as recommended by ltprune.eclass
36 find "${ED}" -name '*.la' -delete || die
37 python_fix_shebang "${ED}"usr/bin