1
Fork 0

dev-lang/gprolog: EAPI8 bump, minor improvements

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/35933
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger 2024-03-26 19:58:33 +01:00 committed by Arthur Zamarin
parent 25c40796cf
commit b45d8bedc6
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
1 changed files with 16 additions and 14 deletions

View File

@ -1,11 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=8
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="A native Prolog compiler with constraint solving over finite domains (FD)"
DESCRIPTION="Native Prolog compiler with constraint solving over finite domains (FD)"
HOMEPAGE="http://www.gprolog.org/"
SRC_URI="http://www.gprolog.org/${P}.tar.gz"
S="${WORKDIR}"/${P}
@ -25,12 +25,12 @@ PATCHES=(
src_prepare() {
default
cd "${S}"/src
cd "${S}"/src || die
eautoconf
}
src_configure() {
CFLAGS_MACHINE="`get-flag -march` `get-flag -mcpu` `get-flag -mtune`"
CFLAGS_MACHINE="$(get-flag -march) $(get-flag -mcpu) $(get-flag -mtune)"
use debug && append-flags -DDEBUG
@ -52,16 +52,18 @@ src_configure() {
fi
cd "${S}"/src || die
econf \
AS="${AS}" \
CFLAGS_MACHINE="${CFLAGS_MACHINE}" \
--with-c-flags="${CFLAGS}" \
--with-install-dir="${EPREFIX}"/usr/$(get_libdir)/${P} \
--with-links-dir="${EPREFIX}"/usr/bin \
--enable-regs=${gprolog_use_regs} \
$(use_with doc doc-dir "${EPREFIX}"/usr/share/doc/${PF}) \
$(use_with doc html-dir "${EPREFIX}"/usr/share/doc/${PF}/html) \
local myeconfargs=(
AS="${AS}"
CFLAGS_MACHINE="${CFLAGS_MACHINE}"
--with-c-flags="${CFLAGS}"
--with-install-dir="${EPREFIX}"/usr/$(get_libdir)/${P}
--with-links-dir="${EPREFIX}"/usr/bin
--enable-regs=${gprolog_use_regs}
$(use_with doc doc-dir "${EPREFIX}"/usr/share/doc/${PF})
$(use_with doc html-dir "${EPREFIX}"/usr/share/doc/${PF}/html)
$(use_with examples examples-dir "${EPREFIX}"/usr/share/doc/${PF}/examples)
)
econf "${myeconfargs[@]}"
}
src_compile() {