Diff rpc2-2.14-r1 with a rpc2-2.37
/usr/portage/net-libs/rpc2/rpc2-2.37.ebuild 2025-07-29 16:22:17.268467478 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2025 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
LUA_COMPAT=( lua5-1 ) |
|
7 | ||
8 |
inherit autotools flag-o-matic lua-single |
|
9 | ||
6 | 10 |
DESCRIPTION="Remote procedure call package for IP/UDP (used by Coda)" |
7 | 11 |
HOMEPAGE="http://www.coda.cs.cmu.edu/" |
8 |
SRC_URI="http://www.coda.cs.cmu.edu/pub/rpc2/src/${P}.tar.xz" |
|
12 |
SRC_URI="https://github.com/cmusatyalab/coda/archive/refs/tags/${P}.tar.gz" |
|
13 |
S="${WORKDIR}/coda-${P}/lib-src/rpc2" |
|
9 | 14 | |
10 | 15 |
LICENSE="LGPL-2.1" |
11 | 16 |
SLOT="1" |
12 | 17 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc x86" |
18 |
IUSE="codatunneld lua" |
|
19 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
|
13 | 20 | |
14 |
RDEPEND=">=sys-libs/lwp-2.5" |
|
21 |
RDEPEND=" |
|
22 |
codatunneld? ( |
|
23 |
dev-libs/libuv:= |
|
24 |
net-libs/gnutls:= |
|
25 |
) |
|
26 |
lua? ( |
|
27 |
${LUA_DEPS} |
|
28 |
) |
|
29 |
>=sys-libs/lwp-2.5:1 |
|
30 |
" |
|
15 | 31 |
DEPEND="${RDEPEND}" |
32 |
BDEPEND="virtual/pkgconfig" |
|
16 | 33 | |
17 | 34 |
PATCHES=( |
18 |
"${FILESDIR}"/${P}-respect-flags.patch |
|
19 |
"${FILESDIR}"/${P}-include.patch |
|
35 |
"${FILESDIR}"/rpc2-2.37-respect-flags.patch |
|
36 |
"${FILESDIR}"/rpc2-2.14-include.patch |
|
37 |
"${FILESDIR}"/rpc2-2.37-gcc15.patch |
|
38 |
"${FILESDIR}"/rpc2-2.37-lua.patch |
|
20 | 39 |
) |
21 | 40 | |
41 |
pkg_setup() { |
|
42 |
use lua && lua-single_pkg_setup |
|
43 |
} |
|
44 | ||
45 |
src_prepare() { |
|
46 |
default |
|
47 |
eautoreconf |
|
48 | ||
49 |
# https://bugs.gentoo.org/947850 |
|
50 |
append-cflags -std=gnu17 |
|
51 |
} |
|
52 | ||
53 |
src_configure() { |
|
54 |
econf \ |
|
55 |
$(use_with codatunneld libuv) \ |
|
56 |
$(use_with lua) |
|
57 |
} |
|
58 | ||
22 | 59 |
src_install() { |
23 | 60 |
default |
24 | 61 |