Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-libs/libtirpc/
Date: Wed, 26 Feb 2020 11:44:10
Message-Id: 1582717436.8ee55df6768d90b93fb57f6172bcd457eedcc9e8.blueness@gentoo
1 commit: 8ee55df6768d90b93fb57f6172bcd457eedcc9e8
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 26 11:43:56 2020 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 11:43:56 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=8ee55df6
7
8 net-libs/libtirpc: sync with tree
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 RepoMan-Options: --force
12 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
13
14 net-libs/libtirpc/Manifest | 1 +
15 net-libs/libtirpc/libtirpc-1.2.5.ebuild | 64 +++++++++++++++++++++++++++++++++
16 2 files changed, 65 insertions(+)
17
18 diff --git a/net-libs/libtirpc/Manifest b/net-libs/libtirpc/Manifest
19 index 2919a0c..3d4f7dc 100644
20 --- a/net-libs/libtirpc/Manifest
21 +++ b/net-libs/libtirpc/Manifest
22 @@ -1,3 +1,4 @@
23 DIST libtirpc-1.0.3.tar.bz2 509831 BLAKE2B 3f908471b3e10f88329793db2c832754b9bb838d115235d7c25256da883960de8d8c94a6941fc9c2a3cc4dca9a77c32b5cb85bb347cc182e5a6255636b79b06e SHA512 1f1cf7dd6f30ddddc919e4caf6db926f1d532f78d5a93e8aaa2acde6b046be0650c4c46549da0ffd5fa7fb9e550af1a871ed6e02ededf504c6667d2e82eba2cc
24 DIST libtirpc-1.1.4.tar.bz2 510924 BLAKE2B 1780f9bb0543583c01b60bda681add0ec2f8718eda4ce4653883c772466178e37d0a3fb47004109f81de470129458561fac4f109f45154c64b6fb729f0212c90 SHA512 392f391f9fc1bd68d81dc44e4058831a64b32790b5c8c37338b0ab416fad2ae4d16389e632596734dba09780347918cc65c6f134e0c1afd09e81ec250785ed23
25 +DIST libtirpc-1.2.5.tar.bz2 513146 BLAKE2B 732e4832f3440d9fa08c45c01c56135ff1b96564c55d33e9b3f16c8361a4f02e49a35638b73110bb72da4bfb78107ccb1b4d475d1ecbdd62dcc156529a372c3e SHA512 d31cd4e22301abe1baddd7e8f45aaaf056a40799e961646691d071084fed50563b5eecdd9b78062fe378be8db7a6d4b87597e21cb81ac925e447148684a2b002
26 DIST libtirpc-glibc-nfs.tar.xz 8948 BLAKE2B 7316623d9f2b6928e296137fe2bf6794b208d549c2ffba9e4a35b47f7b04bf023798a09f38c02d039debf6adc466d7689cf3c8274d71a22eaff08729642c0a28 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba
27
28 diff --git a/net-libs/libtirpc/libtirpc-1.2.5.ebuild b/net-libs/libtirpc/libtirpc-1.2.5.ebuild
29 new file mode 100644
30 index 0000000..56c9342
31 --- /dev/null
32 +++ b/net-libs/libtirpc/libtirpc-1.2.5.ebuild
33 @@ -0,0 +1,64 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit autotools multilib-minimal toolchain-funcs usr-ldscript
40 +
41 +DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
42 +HOMEPAGE="https://sourceforge.net/projects/libtirpc/"
43 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
44 + mirror://gentoo/${PN}-glibc-nfs.tar.xz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0/3" # subslot matches SONAME major
48 +KEYWORDS="amd64 arm arm64 ~mips ppc x86"
49 +IUSE="ipv6 kerberos static-libs"
50 +
51 +RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
52 +DEPEND="${RDEPEND}"
53 +BDEPEND="
54 + elibc_musl? ( sys-libs/queue-standalone )
55 + app-arch/xz-utils
56 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
57 +
58 +src_prepare() {
59 + cp -r "${WORKDIR}"/tirpc "${S}"/ || die
60 + local PATCHES=(
61 + "${FILESDIR}"/libtirpc-1.2.5-avoid-multiple-definition.patch
62 + )
63 + default
64 + eautoreconf
65 +}
66 +
67 +multilib_src_configure() {
68 + local myeconfargs=(
69 + $(use_enable ipv6)
70 + $(use_enable kerberos gssapi)
71 + $(use_enable static-libs static)
72 + )
73 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
74 +}
75 +
76 +multilib_src_install() {
77 + default
78 +
79 + # libtirpc replaces rpc support in glibc, so we need it in /
80 + gen_usr_ldscript -a tirpc
81 +}
82 +
83 +multilib_src_install_all() {
84 + einstalldocs
85 +
86 + insinto /etc
87 + doins doc/netconfig
88 +
89 + insinto /usr/include/tirpc
90 + doins -r "${WORKDIR}"/tirpc/*
91 +
92 + # makes sure that the linking order for nfs-utils is proper, as
93 + # libtool would inject a libgssglue dependency in the list.
94 + if ! use static-libs ; then
95 + find "${ED}" -name "*.la" -delete || die
96 + fi
97 +}