1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="a non-interactive scripting language"
9 HOMEPAGE="https://www.skarnet.org/software/execline/"
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="static static-libs"
17 DEPEND=">=sys-devel/make-3.81
19 >=dev-libs/skalibs-2.6.0.1[static-libs]
22 >=dev-libs/skalibs-2.6.0.1
27 >=dev-libs/skalibs-2.6.0.1:=
36 # Remove QA warning about LDFLAGS addition
37 sed -i "s/tryldflag LDFLAGS_AUTO -Wl,--hash-style=both/:/" "${S}/configure" || die
39 # configure overrides gentoo's -fstack-protector default
40 sed -i "/^tryflag CFLAGS -fno-stack-protector$/d" "${S}/configure" || die
46 --dynlibdir=/$(get_libdir) \
47 --libdir=/usr/$(get_libdir)/${PN} \
48 --with-dynlib=/$(get_libdir) \
49 --with-lib=/usr/$(get_libdir)/skalibs \
50 --with-sysdeps=/usr/$(get_libdir)/skalibs \
51 $(use_enable !static shared) \
52 $(use_enable static allstatic) \
53 $(use_enable static static-libc) \
54 $(use_enable static-libs static)