Bug: https://bugs.gentoo.org/697274
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
inherit toolchain-funcs
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE="debug"
-src_compile() {
- local myconf
-
- if ! use debug; then
- myconf="${myconf} --disable-debug"
- fi
-
- ./configure --cc="$(tc-getCC)" --prefix="${D}"/usr \
- --disable-opts --disable-strip ${myconf} || die "configure failed."
+src_configure() {
+ # NIH configure script
+ ./configure \
+ --cc="$(tc-getCC)" \
+ --prefix="${D}"/usr \
+ --disable-opts \
+ --disable-debug \
+ --disable-strip || die "configure failed"
+}
- emake -j1 || die "emake failed."
+src_compile() {
+ emake -j1
}
src_install() {
- emake install || die "emake install failed."
+ dobin flake/flake
+ doheader libflake/flake.h
+ dolib.a libflake/libflake.a
dodoc Changelog README
}