s6-linux-utils-2.0.2.3.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit multilib
  5. DESCRIPTION="Set of tiny linux utilities"
  6. HOMEPAGE="http://www.skarnet.org/software/s6-linux-utils/"
  7. SRC_URI="http://www.skarnet.org/software/${PN}/${P}.tar.gz"
  8. LICENSE="ISC"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="static"
  12. DEPEND="
  13. static? ( >=dev-libs/skalibs-2.3.8.0[static-libs] )
  14. !static? ( >=dev-libs/skalibs-2.3.8.0 )
  15. "
  16. RDEPEND="
  17. !static? ( >=dev-libs/skalibs-2.3.8.0 )
  18. "
  19. HTML_DOCS="doc/."
  20. src_prepare()
  21. {
  22. # Remove QA warning about LDFLAGS addition
  23. sed -i "s~tryldflag LDFLAGS_AUTO -Wl,--hash-style=both~:~" "${S}/configure" || die
  24. eapply_user
  25. }
  26. src_configure()
  27. {
  28. econf \
  29. $(use_enable !static shared) \
  30. $(use_enable static allstatic) \
  31. $(use_enable static) \
  32. --bindir=/bin \
  33. --sbindir=/sbin \
  34. --dynlibdir=/$(get_libdir) \
  35. --libdir=/usr/$(get_libdir)/${PN} \
  36. --datadir=/etc \
  37. --sysdepdir=/usr/$(get_libdir)/${PN} \
  38. --with-dynlib=/$(get_libdir) \
  39. --with-sysdeps=/usr/$(get_libdir)/skalibs
  40. }