public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: gui-libs/cubegui/files/, gui-libs/cubegui/
@ 2022-06-14 18:35 Haelwenn Monnier
  0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2022-06-14 18:35 UTC (permalink / raw
  To: gentoo-commits

commit:     be76feda3f14ec9c4bf9e2ad6dda0a386d14f4b9
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Jun 14 01:48:37 2022 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue Jun 14 08:00:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be76feda

gui-libs/cubegui: new package, add 4.7

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 gui-libs/cubegui/Manifest                          |   1 +
 gui-libs/cubegui/cubegui-4.7.ebuild                | 104 +++++++++++++++++++++
 gui-libs/cubegui/files/cubegui-4.7-autotroll.patch |  32 +++++++
 gui-libs/cubegui/metadata.xml                      |  13 +++
 4 files changed, 150 insertions(+)

diff --git a/gui-libs/cubegui/Manifest b/gui-libs/cubegui/Manifest
new file mode 100644
index 000000000..d48443b77
--- /dev/null
+++ b/gui-libs/cubegui/Manifest
@@ -0,0 +1 @@
+DIST cubegui-4.7.tar.gz 10789553 BLAKE2B b0c00985ed910f57e5a32ef340007bbb547ee2948b9d64868227679c86481e953edca75c9cceac8eefb73f1392c5417d27bee809b430288d6a37f054074b0a6a SHA512 48c9cc5a32190d0702d79572f8ad49893016476cc966351b0496e21c5ae8c0a33f0632f07e659eea3c3c062eae8099a531f0a7ff4d129d8b333ec51ecfe12cf9

diff --git a/gui-libs/cubegui/cubegui-4.7.ebuild b/gui-libs/cubegui/cubegui-4.7.ebuild
new file mode 100644
index 000000000..52c97f63c
--- /dev/null
+++ b/gui-libs/cubegui/cubegui-4.7.ebuild
@@ -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
+}

diff --git a/gui-libs/cubegui/files/cubegui-4.7-autotroll.patch b/gui-libs/cubegui/files/cubegui-4.7-autotroll.patch
new file mode 100644
index 000000000..fe3a5f7d0
--- /dev/null
+++ b/gui-libs/cubegui/files/cubegui-4.7-autotroll.patch
@@ -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 )

diff --git a/gui-libs/cubegui/metadata.xml b/gui-libs/cubegui/metadata.xml
new file mode 100644
index 000000000..97da1857f
--- /dev/null
+++ b/gui-libs/cubegui/metadata.xml
@@ -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>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-14 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 18:35 [gentoo-commits] repo/proj/guru:master commit in: gui-libs/cubegui/files/, gui-libs/cubegui/ Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox