1 |
commit: 87f2970ef2080143697d49e40d7c5933e3ae18ab |
2 |
Author: Moritz Schlarb <moschlar <AT> metalabs <DOT> de> |
3 |
AuthorDate: Fri Nov 3 09:10:18 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 15 22:13:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f2970e |
7 |
|
8 |
net-libs/libsearpc: installation improvements. |
9 |
|
10 |
- Remove unnecessary .la file |
11 |
- Fix shebang in searpc-codegen.py |
12 |
Closes: https://github.com/gentoo/gentoo/pull/6005 |
13 |
|
14 |
net-libs/libsearpc/libsearpc-3.0.8-r2.ebuild | 35 ++++++++++++++++++++++++++++ |
15 |
1 file changed, 35 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libsearpc/libsearpc-3.0.8-r2.ebuild b/net-libs/libsearpc/libsearpc-3.0.8-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..2b27645bfc8 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/libsearpc/libsearpc-3.0.8-r2.ebuild |
22 |
@@ -0,0 +1,35 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+PYTHON_COMPAT=( python2_7 ) |
28 |
+inherit autotools python-single-r1 vcs-snapshot |
29 |
+ |
30 |
+DESCRIPTION="A simple C language RPC framework" |
31 |
+HOMEPAGE="https://github.com/haiwen/libsearpc/ http://seafile.com/" |
32 |
+SRC_URI="https://github.com/haiwen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="Apache-2.0" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="" |
38 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
39 |
+ |
40 |
+DEPEND="${PYTHON_DEPS} |
41 |
+ >=dev-libs/glib-2.26.0 |
42 |
+ >=dev-libs/jansson-2.2.1" |
43 |
+RDEPEND="${DEPEND} |
44 |
+ dev-python/simplejson[${PYTHON_USEDEP}]" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ default |
48 |
+ sed -i -e "s/(DESTDIR)//" ${PN}.pc.in || die |
49 |
+ eautoreconf |
50 |
+} |
51 |
+ |
52 |
+src_install() { |
53 |
+ default |
54 |
+ # Remove unnecessary .la files, as recommended by ltprune.eclass |
55 |
+ find "${ED}" -name '*.la' -delete || die |
56 |
+ python_fix_shebang "${ED}"usr/bin |
57 |
+} |