libtirpc-0.2.5.ebuild 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit multilib-minimal toolchain-funcs
  5. DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
  6. HOMEPAGE="http://libtirpc.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
  8. mirror://gentoo/${PN}-glibc-nfs.tar.xz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
  12. IUSE="ipv6 kerberos static-libs"
  13. RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
  14. DEPEND="${RDEPEND}
  15. app-arch/xz-utils
  16. >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
  17. RDEPEND="${RDEPEND}
  18. abi_x86_32? (
  19. !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
  20. !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
  21. )"
  22. src_unpack() {
  23. unpack ${A}
  24. cp -r tirpc "${S}"/ || die
  25. }
  26. src_prepare() {
  27. epatch "${FILESDIR}"/${P}-stdarg.patch
  28. }
  29. multilib_src_configure() {
  30. ECONF_SOURCE=${S} \
  31. econf \
  32. $(use_enable ipv6) \
  33. $(use_enable kerberos gssapi) \
  34. $(use_enable static-libs static)
  35. }
  36. multilib_src_install() {
  37. default
  38. # libtirpc replaces rpc support in glibc, so we need it in /
  39. gen_usr_ldscript -a tirpc
  40. }
  41. multilib_src_install_all() {
  42. einstalldocs
  43. insinto /etc
  44. doins doc/netconfig
  45. insinto /usr/include/tirpc
  46. doins -r "${WORKDIR}"/tirpc/*
  47. # makes sure that the linking order for nfs-utils is proper, as
  48. # libtool would inject a libgssglue dependency in the list.
  49. use static-libs || prune_libtool_files
  50. }