mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-07-26 03:02:12 -04:00
d2a8b3c50e
Closes: https://bugs.gentoo.org/977184 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1138 Merges: https://codeberg.org/gentoo/gentoo/pulls/1138 Signed-off-by: Sam James <sam@gentoo.org>
46 lines
848 B
Bash
46 lines
848 B
Bash
# Copyright 2025-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit edo toolchain-funcs
|
|
|
|
DESCRIPTION="C++ Mathematical Expression Parsing And Evaluation Library"
|
|
HOMEPAGE="
|
|
https://www.partow.net/programming/exprtk/index.html
|
|
https://github.com/ArashPartow/exprtk/
|
|
"
|
|
SRC_URI="
|
|
https://github.com/ArashPartow/exprtk/archive/refs/tags/${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv x86"
|
|
|
|
DOCS=( readme.txt )
|
|
|
|
src_prepare () {
|
|
default
|
|
|
|
# bug #977184
|
|
sed -e '/^BASE_OPTIONS/ s/-Werror //' -i Makefile || die
|
|
}
|
|
|
|
src_compile() { :; }
|
|
|
|
src_test() {
|
|
emake \
|
|
COMPILER="$(tc-getCXX)" \
|
|
OPTIMIZATION_OPT="${CXXFLAGS}" \
|
|
LINKER_OPT="-lm ${LDFLAGS}" \
|
|
exprtk_test
|
|
edo ./exprtk_test
|
|
}
|
|
|
|
src_install() {
|
|
doheader exprtk.hpp
|
|
einstalldocs
|
|
}
|