public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cubelib/
@ 2022-06-10  3:58 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-06-10  3:58 UTC (permalink / raw
  To: gentoo-commits

commit:     bda76e1d6f46c72f00e4a573797e4caee28980a5
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Jun  8 09:25:25 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Jun 10 03:58:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bda76e1d

dev-libs/cubelib: new package, add 4.7

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

 dev-libs/cubelib/Manifest           |  1 +
 dev-libs/cubelib/cubelib-4.7.ebuild | 38 +++++++++++++++++++++++++++++++++++++
 dev-libs/cubelib/metadata.xml       |  8 ++++++++
 3 files changed, 47 insertions(+)

diff --git a/dev-libs/cubelib/Manifest b/dev-libs/cubelib/Manifest
new file mode 100644
index 000000000..863b809cb
--- /dev/null
+++ b/dev-libs/cubelib/Manifest
@@ -0,0 +1 @@
+DIST cubelib-4.7.tar.gz 6163552 BLAKE2B e07e78011501fe19240f22133cf9a9202176ca21410412be19674d43e8177ce7683cb19414eacacf6a56f261602414db55ba65abc8948846c1dbbc0737636fc9 SHA512 cf328b3300170ba832bda13374f7e8e59a920308fc1604f03eb5f172ab6dd6d3ccd0b6517eb68bf58b07a08174dded0f80fe7f37ca63727ce397e095801864f1

diff --git a/dev-libs/cubelib/cubelib-4.7.ebuild b/dev-libs/cubelib/cubelib-4.7.ebuild
new file mode 100644
index 000000000..56f15aa3b
--- /dev/null
+++ b/dev-libs/cubelib/cubelib-4.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+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"
+
+DEPEND="dev-cpp/gtest"
+
+src_prepare() {
+	rm -r vendor/googletest || die
+	default
+	eautoreconf
+}
+
+src_configure() {
+	local myconf=(
+		--disable-platform-mic
+	)
+	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 "${ED}/usr/share/doc/${PF}/example"
+	find "${ED}" -name '*.a' -delete || die
+}

diff --git a/dev-libs/cubelib/metadata.xml b/dev-libs/cubelib/metadata.xml
new file mode 100644
index 000000000..6c0bdfd68
--- /dev/null
+++ b/dev-libs/cubelib/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cubelib/
@ 2022-06-11 12:24 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-06-11 12:24 UTC (permalink / raw
  To: gentoo-commits

commit:     497ce96115cc4dd139e88c05245a8ded701c2c8e
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Jun 11 12:24:16 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Jun 11 12:24:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=497ce961

dev-libs/cubelib: add R useflag

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

 .../{cubelib-4.7.ebuild => cubelib-4.7-r1.ebuild}  | 28 ++++++++++++++++++----
 dev-libs/cubelib/metadata.xml                      |  3 +++
 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
similarity index 62%
rename from dev-libs/cubelib/cubelib-4.7.ebuild
rename to 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>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cubelib/
@ 2022-06-15 22:35 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-06-15 22:35 UTC (permalink / raw
  To: gentoo-commits

commit:     9b94fa45b66aebe274bf0b9e111e6b7f3c07fcc9
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Jun 15 22:34:36 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Jun 15 22:35:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b94fa45

dev-libs/cubelib: improvements

Closes: https://bugs.gentoo.org/851168
Closes: https://bugs.gentoo.org/851171
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-libs/cubelib/cubelib-4.7-r1.ebuild | 56 --------------------
 dev-libs/cubelib/cubelib-4.7-r2.ebuild | 97 ++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+), 56 deletions(-)

diff --git a/dev-libs/cubelib/cubelib-4.7-r1.ebuild b/dev-libs/cubelib/cubelib-4.7-r1.ebuild
deleted file mode 100644
index 4b53db2bb..000000000
--- a/dev-libs/cubelib/cubelib-4.7-r1.ebuild
+++ /dev/null
@@ -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
-}

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-15 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15 22:35 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cubelib/ Alessandro Barbieri
  -- strict thread matches above, loose matches on Subject: below --
2022-06-11 12:24 Alessandro Barbieri
2022-06-10  3:58 Alessandro Barbieri

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