blob: 37776e97aeba07f3ce8c06177f4097ded117ef02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 2025 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 ~ppc64 ~riscv ~x86"
DOCS=( readme.txt )
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
}
|