mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-libs/cubelib: improvements
Closes: https://bugs.gentoo.org/851168 Closes: https://bugs.gentoo.org/851171 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,56 +0,0 @@
|
|||||||
# Copyright 2019-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit autotools toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="General purpose C++ library and tools"
|
|
||||||
HOMEPAGE="https://www.scalasca.org/scalasca/software/cube-4.x"
|
|
||||||
SRC_URI="https://apps.fz-juelich.de/scalasca/releases/cube/${PV}/dist/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
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
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=(
|
|
||||||
--disable-platform-mic
|
|
||||||
$(use_with R cube_dump_r)
|
|
||||||
)
|
|
||||||
econf CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
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 "/usr/share/doc/${PF}/example"
|
|
||||||
find "${ED}" -name '*.a' -delete || die
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
||||||
97
dev-libs/cubelib/cubelib-4.7-r2.ebuild
Normal file
97
dev-libs/cubelib/cubelib-4.7-r2.ebuild
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
# Copyright 2019-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="General purpose C++ library and tools"
|
||||||
|
HOMEPAGE="https://www.scalasca.org/scalasca/software/cube-4.x"
|
||||||
|
SRC_URI="https://apps.fz-juelich.de/scalasca/releases/cube/${PV}/dist/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE_CUBELIB_STRATEGY="
|
||||||
|
+cubelib_strategy_keepall
|
||||||
|
cubelib_strategy_preload
|
||||||
|
cubelib_strategy_manual
|
||||||
|
cubelib_strategy_lastn
|
||||||
|
"
|
||||||
|
IUSE="R ${IUSE_CUBELIB_STRATEGY}"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
sys-cluster/scorep
|
||||||
|
sys-libs/binutils-libs
|
||||||
|
sys-libs/zlib
|
||||||
|
R? (
|
||||||
|
dev-lang/R
|
||||||
|
dev-R/Rcpp
|
||||||
|
dev-R/RInside
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
dev-cpp/gtest
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/yacc
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="^^ ( ${IUSE_CUBELIB_STRATEGY/+/} )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tc-export CC CXX AR F77 FC CPP
|
||||||
|
|
||||||
|
cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die
|
||||||
|
CC=${CC}
|
||||||
|
CXX=${CXX}
|
||||||
|
FC=${FC}
|
||||||
|
F77=${F77}
|
||||||
|
CPP=${CPP}
|
||||||
|
CXXCPP=${CPP}
|
||||||
|
CC_FOR_BUILD=${CC}
|
||||||
|
CXX_FOR_BUILD=${CXX}
|
||||||
|
FC_FOR_BUILD=${FC}
|
||||||
|
F77_FOR_BUILD=${F77}
|
||||||
|
CFLAGS_FOR_BUILD=${CFLAGS}
|
||||||
|
CXXFLAGS_FOR_BUILD=${CXXFLAGS}
|
||||||
|
FFLAGS_FOR_BUILD=${FFLAGS}
|
||||||
|
FCFLAGS_FOR_BUILD=${FCFLAGS}
|
||||||
|
LDFLAGS_FOR_BUILD=${LDFLAGS}
|
||||||
|
CPPFLAGS_FOR_BUILD=${CPPFLAGS}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
rm -r vendor/googletest || die
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use cubelib_strategy_keepall && strategy="keepall"
|
||||||
|
use cubelib_strategy_preload && strategy="preload"
|
||||||
|
use cubelib_strategy_manual && strategy="manual"
|
||||||
|
use cubelib_strategy_lastn && strategy="lastn"
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--disable-platform-mic
|
||||||
|
--with-compression=full
|
||||||
|
--with-custom-compilers
|
||||||
|
--with-scorep="${EPREFIX}/usr"
|
||||||
|
--with-strategy="${strategy}"
|
||||||
|
--with-system-parser
|
||||||
|
$(use_with R cube_dump_r)
|
||||||
|
)
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
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 "/usr/share/doc/${PF}/example"
|
||||||
|
find "${ED}" -name '*.a' -delete || die
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user