1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="service manager for the s6 supervision suite"
9 HOMEPAGE="https://www.skarnet.org/software/s6-rc/"
10 SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz"
13 SLOT="0/$(get_version_component_range 1-2)"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="static static-libs"
17 DEPEND=">=sys-devel/make-3.81
19 >=dev-lang/execline-2.3.0.4[static-libs]
20 >=dev-libs/skalibs-2.6.3.0[static-libs]
21 >=sys-apps/s6-2.6.2.0[static-libs]
24 >=dev-lang/execline-2.3.0.4[static=]
25 >=dev-libs/skalibs-2.6.3.0
26 >=sys-apps/s6-2.6.2.0[static=]
30 >=dev-lang/execline-2.3.0.4:=[!static?]
31 >=sys-apps/s6-2.6.2.0:=[!static?]
33 >=dev-libs/skalibs-2.6.3.0:=
43 # Remove QA warning about LDFLAGS addition
44 sed -i "s/tryldflag LDFLAGS_AUTO -Wl,--hash-style=both/:/" "${S}/configure" || die
46 # configure overrides gentoo's -fstack-protector default
47 sed -i "/^tryflag CFLAGS -fno-stack-protector$/d" "${S}/configure" || die
53 --dynlibdir=/$(get_libdir) \
54 --libdir=/usr/$(get_libdir)/${PN} \
55 --with-dynlib=/$(get_libdir) \
56 --with-lib=/usr/$(get_libdir)/execline \
57 --with-lib=/usr/$(get_libdir)/s6 \
58 --with-lib=/usr/$(get_libdir)/skalibs \
59 --with-sysdeps=/usr/$(get_libdir)/skalibs \
60 $(use_enable !static shared) \
61 $(use_enable static allstatic) \
62 $(use_enable static static-libc) \
63 $(use_enable static-libs static)
67 ewarn "Databases from ${PN}-0.3.0.0 or earlier must be manually upgraded!"
68 ewarn "See the upgrade notes at ${EPREFIX}/usr/share/doc/${P}/html/upgrade.html"
69 ewarn "and the documentation for the s6-rc-format-upgrade utility."