mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
gui-libs/cubegui: new package, add 4.7
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
gui-libs/cubegui/Manifest
Normal file
1
gui-libs/cubegui/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST cubegui-4.7.tar.gz 10789553 BLAKE2B b0c00985ed910f57e5a32ef340007bbb547ee2948b9d64868227679c86481e953edca75c9cceac8eefb73f1392c5417d27bee809b430288d6a37f054074b0a6a SHA512 48c9cc5a32190d0702d79572f8ad49893016476cc966351b0496e21c5ae8c0a33f0632f07e659eea3c3c062eae8099a531f0a7ff4d129d8b333ec51ecfe12cf9
|
||||||
104
gui-libs/cubegui/cubegui-4.7.ebuild
Normal file
104
gui-libs/cubegui/cubegui-4.7.ebuild
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
# Copyright 2019-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools bash-completion-r1 qmake-utils
|
||||||
|
|
||||||
|
DESCRIPTION="CUBE Uniform Behavioral Encoding GUI"
|
||||||
|
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="concurrent debug scorep webengine"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
concurrent? ( dev-qt/qtconcurrent:5 )
|
||||||
|
scorep? ( sys-cluster/scorep )
|
||||||
|
webengine? ( dev-qt/qtwebengine:5 )
|
||||||
|
|
||||||
|
dev-libs/cubelib
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtnetwork:5
|
||||||
|
dev-qt/qtprintsupport:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="app-doc/doxygen[dot]"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-autotroll.patch" )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
pushd build-frontend || die
|
||||||
|
eautoreconf
|
||||||
|
popd || die
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
export CC=gcc
|
||||||
|
export CXX=g++
|
||||||
|
export QT_LIBS="-lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core"
|
||||||
|
use concurrent && export QT_LIBS="${QT_LIBS} -lQt5Concurrent"
|
||||||
|
use webengine && export QT_LIBS="${QT_LIBS} -lQt5WebEngineWidgets"
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--disable-platform-mic
|
||||||
|
--with-cubelib="${EPREFIX}/usr"
|
||||||
|
--with-plugin-advancedcolormaps
|
||||||
|
--with-plugin-barplot
|
||||||
|
--with-plugin-cube-diff
|
||||||
|
--with-plugin-cube-mean
|
||||||
|
--with-plugin-cube-merge
|
||||||
|
--with-plugin-heatmap
|
||||||
|
--with-plugin-launch
|
||||||
|
--with-plugin-metric-identify
|
||||||
|
--with-plugin-metriceditor
|
||||||
|
--with-plugin-source
|
||||||
|
--with-plugin-statistics
|
||||||
|
--with-plugin-paraver
|
||||||
|
--with-plugin-sunburst
|
||||||
|
--with-plugin-system-statistics
|
||||||
|
--with-plugin-system-topology
|
||||||
|
--with-plugin-treeitem-marker
|
||||||
|
--with-plugin-vampir
|
||||||
|
--with-qt="$(qt5_get_bindir)"
|
||||||
|
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_with concurrent)
|
||||||
|
$(use_with scorep plugin-scorep-config)
|
||||||
|
$(use_with webengine web-engine)
|
||||||
|
)
|
||||||
|
if use scorep; then
|
||||||
|
myconf+=( "--with-scorep=${EPREFIX}/usr" )
|
||||||
|
else
|
||||||
|
myconf+=( "--without-scorep" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${myconf[@]}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
MAKEOPTS="-j1" default
|
||||||
|
mkdir -p "${ED}/usr/share/doc/${PF}/html"
|
||||||
|
mv "${ED}/usr/share/doc/${PF}/guide/html" "${ED}/usr/share/doc/${PF}/html/guide" || die
|
||||||
|
mv "${ED}/usr/share/doc/${PF}/plugins-guide/html" "${ED}/usr/share/doc/${PF}/html/plugins-guide" || die
|
||||||
|
rm -rf "${ED}/usr/share/doc/${PF}/guide" || die
|
||||||
|
rm -rf "${ED}/usr/share/doc/${PF}/plugins-guide" || die
|
||||||
|
docompress -x "/usr/share/doc/${PF}/html"
|
||||||
|
mv "${ED}/usr/share/doc/cubegui/example" "${ED}/usr/share/doc/${PF}/examples" || die
|
||||||
|
docompress -x "/usr/share/doc/${PF}/examples"
|
||||||
|
rm -rf "${ED}/usr/share/doc/cubegui" || die
|
||||||
|
|
||||||
|
newbashcomp "${ED}/usr/bin/cubegui-autocompletion.sh" cubegui
|
||||||
|
rm -r "${ED}/usr/bin/cubegui-autocompletion.sh" || die
|
||||||
|
|
||||||
|
find "${ED}" -name '*.a' -delete || die
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
||||||
32
gui-libs/cubegui/files/cubegui-4.7-autotroll.patch
Normal file
32
gui-libs/cubegui/files/cubegui-4.7-autotroll.patch
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
--- a/build-config/m4/autotroll.m4
|
||||||
|
+++ b/build-config/m4/autotroll.m4
|
||||||
|
@@ -742,29 +742,6 @@
|
||||||
|
# | sed -e "s,-lQt,-L${QT_PATH}/../lib -lQt,g"`
|
||||||
|
])
|
||||||
|
|
||||||
|
- echo "Adjust Qt libraries list to the cannonical one"
|
||||||
|
- # replace list of .so files by the -l libraries
|
||||||
|
- AS_IF([ test "x$QT_PATH" != "x" ],
|
||||||
|
- [
|
||||||
|
- LIBPATH=`echo $QT_PATH | sed "s,/bin,,g"`"/lib"
|
||||||
|
- ],
|
||||||
|
- [ # in case of standard installation -> path to the libraries is encoded in the path to .so libraries
|
||||||
|
- for i in $at_cv_env_QT_LIBS; do
|
||||||
|
- _LIBPATH=`echo $i | grep '.so'`
|
||||||
|
- AS_IF([ test "x$_LIBPATH" != "x" ], # test if the path has been line .so , other wise try the next one... (for the case of list -l... libraries)
|
||||||
|
- [
|
||||||
|
- LIBPATH=$(dirname $_LIBPATH)
|
||||||
|
- break
|
||||||
|
- ])
|
||||||
|
-
|
||||||
|
- done
|
||||||
|
- ])
|
||||||
|
-AS_IF([ test "x$LIBPATH" != "x" ], # perform correction only if one has found .so libraries instead of -lXXXX
|
||||||
|
-[
|
||||||
|
- at_cv_env_QT_LIBS="-L$LIBPATH "`echo $at_cv_env_QT_LIBS | sed "s,.so , ,g;s,.a , ,g;s,$LIBPATH/lib,-l,g;s,$(readlink -m $LIBPATH)/lib,-l,g"`
|
||||||
|
- echo "Fixed libraries are: $at_cv_env_QT_LIBS"
|
||||||
|
-])
|
||||||
|
- AC_SUBST([QT_LIBS], [$at_cv_env_QT_LIBS])
|
||||||
|
|
||||||
|
|
||||||
|
# Find the Compiler of Qt (Should have been named )
|
||||||
13
gui-libs/cubegui/metadata.xml
Normal file
13
gui-libs/cubegui/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>
|
||||||
|
<use>
|
||||||
|
<flag name="concurrent">Enables usage of the QtConcurrent for the the parallel calculations</flag>
|
||||||
|
<flag name="scorep">Enable scorep support</flag>
|
||||||
|
<flag name="webengine">Enables usage of the QtWebEngine for the HTML Documentation</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user