mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-cpp/MEL: add subslot
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
34
dev-cpp/MEL/MEL-1.0.0-r1.ebuild
Normal file
34
dev-cpp/MEL/MEL-1.0.0-r1.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/${PV}"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user