1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="skarnet.org general-purpose libraries"
9 HOMEPAGE="https://www.skarnet.org/software/skalibs/"
10 SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz"
13 SLOT="0/$(get_version_component_range 1-2)"
14 KEYWORDS="~amd64 ~arm ~x86"
15 IUSE="doc ipv6 static-libs"
17 DEPEND=">=sys-devel/make-3.81"
25 # Remove QA warning about LDFLAGS addition
26 sed -i "s/tryldflag LDFLAGS_AUTO -Wl,--hash-style=both/:/" "${S}/configure" || die
28 # configure overrides gentoo's -fstack-protector default
29 sed -i "/^tryflag CFLAGS -fno-stack-protector$/d" "${S}/configure" || die
35 --dynlibdir=/$(get_libdir) \
36 --libdir=/usr/$(get_libdir)/${PN} \
37 --sysdepdir=/usr/$(get_libdir)/${PN} \
40 $(use_enable static-libs static) \
45 emake DESTDIR="${D}" install
47 use doc && einstalldocs