1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="skarnet.org's small and secure supervision software suite"
7 HOMEPAGE="https://www.skarnet.org/software/s6/"
8 SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz"
11 SLOT="0/$(ver_cut 1-2)"
12 KEYWORDS="~amd64 ~arm ~x86"
13 IUSE="static static-libs"
15 REQUIRED_USE="static? ( static-libs )"
17 RDEPEND=">=dev-lang/execline-2.5.3.0:=[static-libs?]
18 >=dev-libs/skalibs-2.9.1.0:=[static-libs?]
27 # Avoid QA warning for LDFLAGS addition; avoid overriding -fstack-protector
28 sed -i -e 's/.*-Wl,--hash-style=both$/:/' -e '/-fno-stack-protector$/d' \
35 --dynlibdir=/usr/$(get_libdir) \
36 --libdir=/usr/$(get_libdir)/${PN} \
37 --with-dynlib=/usr/$(get_libdir) \
38 --with-lib=/usr/$(get_libdir)/execline \
39 --with-lib=/usr/$(get_libdir)/skalibs \
40 --with-sysdeps=/usr/$(get_libdir)/skalibs \
42 $(use_enable static allstatic) \
43 $(use_enable static static-libc) \
44 $(use_enable static-libs static)