s6-linux-utils-2.2.0.0.ebuild 1013 B

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