1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Generates an init binary for s6-based init systems"
8 HOMEPAGE="http://www.skarnet.org/software/s6-linux-init/"
9 SRC_URI="http://www.skarnet.org/software/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86 ~arm"
17 static? ( >=dev-libs/skalibs-2.3.8.0[static-libs] )
18 !static? ( >=dev-libs/skalibs-2.3.8.0 )
21 !static? ( >=dev-libs/skalibs-2.3.8.0 )
24 DOCS=(INSTALL examples/)
29 # Remove QA warning about LDFLAGS addition
30 sed -i "s~tryldflag LDFLAGS_AUTO -Wl,--hash-style=both~:~" "${S}/configure" || die
38 $(use_enable !static shared) \
39 $(use_enable static) \
40 $(use_enable static allstatic) \
43 --dynlibdir=/$(get_libdir) \
44 --libdir=/usr/$(get_libdir)/${PN} \
46 --sysdepdir=/usr/$(get_libdir)/${PN} \
47 --with-dynlib=/$(get_libdir) \
48 --with-sysdeps=/usr/$(get_libdir)/skalibs
53 einfo "The generated init script requires additional packages."
54 einfo "Read ${ROOT}usr/share/doc/${PF}/INSTALL for details."