summaryrefslogtreecommitdiff
path: root/dev-cpp/exprtk/exprtk-0.0.3.ebuild
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2025-07-18 22:58:41 +0300
committerSam James <sam@gentoo.org>2025-07-31 08:11:36 +0100
commit23fd922c69bf8e0ec837869ec8bae1bc9857cfb9 (patch)
treee7956940feba5a4b7d17a3e34f2f5f69c245ed87 /dev-cpp/exprtk/exprtk-0.0.3.ebuild
parentf426152c8b5d2638b22490c85a99b7556cb59bcd (diff)
downloadgentoo-23fd922c69bf8e0ec837869ec8bae1bc9857cfb9.tar.gz
gentoo-23fd922c69bf8e0ec837869ec8bae1bc9857cfb9.tar.bz2
gentoo-23fd922c69bf8e0ec837869ec8bae1bc9857cfb9.zip
dev-cpp/exprtk: new package, add 0.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43244 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/exprtk/exprtk-0.0.3.ebuild')
-rw-r--r--dev-cpp/exprtk/exprtk-0.0.3.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-cpp/exprtk/exprtk-0.0.3.ebuild b/dev-cpp/exprtk/exprtk-0.0.3.ebuild
new file mode 100644
index 000000000000..fab0eb38db83
--- /dev/null
+++ b/dev-cpp/exprtk/exprtk-0.0.3.ebuild
@@ -0,0 +1,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"
+
+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
+}