mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
Closes: https://bugs.gentoo.org/851165 Closes: https://bugs.gentoo.org/851177 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
74 lines
1.6 KiB
Bash
74 lines
1.6 KiB
Bash
# Copyright 2019-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools toolchain-funcs
|
|
|
|
DESCRIPTION="High performance C Writer library"
|
|
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="advanced-memory memory-tracking memory-tracing +zlib"
|
|
|
|
RDEPEND="
|
|
sys-libs/binutils-libs
|
|
zlib? ( sys-libs/zlib )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
REQUIRED_USE="
|
|
memory-tracking? ( advanced-memory )
|
|
memory-tracing? ( advanced-memory )
|
|
"
|
|
|
|
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
|
|
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myconf=(
|
|
--disable-platform-mic
|
|
--with-custom-compilers
|
|
$(use_with advanced-memory)
|
|
$(use_with memory-tracking)
|
|
$(use_with memory-tracing)
|
|
$(use_with zlib compression)
|
|
)
|
|
econf "${myconf[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
mv "${ED}/usr/share/doc/cubew" "${ED}/usr/share/doc/${PF}" || die
|
|
dodoc OPEN_ISSUES README
|
|
docompress -x "${ED}/usr/share/doc/${PF}/example"
|
|
find "${ED}" -name '*.la' -delete || die
|
|
find "${ED}" -name '*.a' -delete || die
|
|
}
|