mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-cpp/MEL: new package, add 1.0.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
34
dev-cpp/MEL/MEL-1.0.0.ebuild
Normal file
34
dev-cpp/MEL/MEL-1.0.0.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Math Expression Library"
|
||||
HOMEPAGE="https://github.com/pcarruscag/MEL"
|
||||
SRC_URI="https://github.com/pcarruscag/MEL/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_compile() {
|
||||
tc-export CXX
|
||||
if use test; then
|
||||
"${CXX}" ${CXXFLAGS} ${LDFLAGS} -fPIE -std=c++11 -I. ./tests.cpp -o ./tests || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/include/${PN}"
|
||||
doins mel.hpp definitions.hpp
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./tests || die
|
||||
}
|
||||
1
dev-cpp/MEL/Manifest
Normal file
1
dev-cpp/MEL/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST MEL-1.0.0.tar.gz 13466 BLAKE2B e9ba12697cecd38c52c0013db6bec69e009b0847cf4157a06effb390d99d72fe6c64db20aaad46ebd49ba6664c1ebaafcff3c70de03f56d0e8cc4e40df319c88 SHA512 59a957ddfc7c79a50999f75d8a5be64fe15767ad4f3aba5e423144c099d263f2407c694af22a561a40e65f22f71c554c6712624f6c1f9d81af86c398b9fb591f
|
||||
13
dev-cpp/MEL/metadata.xml
Normal file
13
dev-cpp/MEL/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">MEL is a small (~500 loc) header-only C++11 library to parse strings into math expression objects that can be evaluated at runtime, by substituting symbols (e.g. x) by runtime values. It can be used, for example, to implement user-defined functions (UDF) in a larger code, in a self-contained way.</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/pcarruscag/MEL/issues</bugs-to>
|
||||
<remote-id type="github">pcarruscag/MEL</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user