s6-linux-init-0.0.1.4.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. DESCRIPTION="Generates an init binary for s6-based init systems"
  5. HOMEPAGE="http://www.skarnet.org/software/s6-linux-init/"
  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="
  12. static? ( >=dev-libs/skalibs-2.3.8.0[static-libs] )
  13. !static? ( >=dev-libs/skalibs-2.3.8.0 )
  14. "
  15. RDEPEND="
  16. !static? ( >=dev-libs/skalibs-2.3.8.0 )
  17. "
  18. DOCS=(INSTALL examples/)
  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) \
  31. $(use_enable static allstatic) \
  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. }
  41. pkg_postinst()
  42. {
  43. einfo "The generated init script requires additional packages."
  44. einfo "Read ${ROOT}usr/share/doc/${PF}/INSTALL for details."
  45. }