aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-06-11 14:24:16 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-06-11 14:24:52 +0200
commit497ce96115cc4dd139e88c05245a8ded701c2c8e (patch)
treedc729061068a85e6ca7ece01fd1c183542d68058 /dev-libs
parentdev-libs/libdwarf: EAPI 8 (diff)
downloadguru-497ce96115cc4dd139e88c05245a8ded701c2c8e.tar.gz
guru-497ce96115cc4dd139e88c05245a8ded701c2c8e.tar.bz2
guru-497ce96115cc4dd139e88c05245a8ded701c2c8e.zip
dev-libs/cubelib: add R useflag
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/cubelib/cubelib-4.7-r1.ebuild (renamed from dev-libs/cubelib/cubelib-4.7.ebuild)28
-rw-r--r--dev-libs/cubelib/metadata.xml3
2 files changed, 26 insertions, 5 deletions
diff --git a/dev-libs/cubelib/cubelib-4.7.ebuild b/dev-libs/cubelib/cubelib-4.7-r1.ebuild
index 56f15aa3b..4b53db2bb 100644
--- a/dev-libs/cubelib/cubelib-4.7.ebuild
+++ b/dev-libs/cubelib/cubelib-4.7-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools
+inherit autotools toolchain-funcs
DESCRIPTION="General purpose C++ library and tools"
HOMEPAGE="https://www.scalasca.org/scalasca/software/cube-4.x"
@@ -12,8 +12,24 @@ SRC_URI="https://apps.fz-juelich.de/scalasca/releases/cube/${PV}/dist/${P}.tar.g
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
-
-DEPEND="dev-cpp/gtest"
+IUSE="R"
+
+RDEPEND="
+ sys-libs/zlib
+ R? (
+ dev-lang/R
+ dev-R/Rcpp
+ dev-R/RInside
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/gtest
+"
+BDEPEND="
+ sys-devel/flex
+ virtual/yacc
+"
src_prepare() {
rm -r vendor/googletest || die
@@ -24,8 +40,9 @@ src_prepare() {
src_configure() {
local myconf=(
--disable-platform-mic
+ $(use_with R cube_dump_r)
)
- econf "${myconf[@]}"
+ econf CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" "${myconf[@]}"
}
src_install() {
@@ -33,6 +50,7 @@ src_install() {
mv "${ED}/usr/share/doc/cubelib/example" "${ED}/usr/share/doc/${PF}/" || die
rm -r "${ED}/usr/share/doc/cubelib" || die
dodoc OPEN_ISSUES README
- docompress -x "${ED}/usr/share/doc/${PF}/example"
+ docompress -x "/usr/share/doc/${PF}/example"
find "${ED}" -name '*.a' -delete || die
+ find "${ED}" -name '*.la' -delete || die
}
diff --git a/dev-libs/cubelib/metadata.xml b/dev-libs/cubelib/metadata.xml
index 6c0bdfd68..cdac0cffd 100644
--- a/dev-libs/cubelib/metadata.xml
+++ b/dev-libs/cubelib/metadata.xml
@@ -5,4 +5,7 @@
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
+ <use>
+ <flag name="R">Use R for cube_dump</flag>
+ </use>
</pkgmetadata>