public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charliecloud/
Date: Fri, 17 Apr 2020 15:10:53 +0000 (UTC)	[thread overview]
Message-ID: <1587136231.9d561c4019386537e05180ac7008a1d983483284.juippis@gentoo> (raw)

commit:     9d561c4019386537e05180ac7008a1d983483284
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Wed Apr 15 19:12:52 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Apr 17 15:10:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d561c40

sys-cluster/charliecloud: Version bump to 0.15.

Upstream moved from a custom configure script
to autotools and added support for many builders.

Closes: https://bugs.gentoo.org/696428
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/15364
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-cluster/charliecloud/Manifest                 |  1 +
 sys-cluster/charliecloud/charliecloud-0.15.ebuild | 77 +++++++++++++++++++++++
 sys-cluster/charliecloud/charliecloud-9999.ebuild | 49 ++++++++++-----
 sys-cluster/charliecloud/metadata.xml             |  2 +
 4 files changed, 114 insertions(+), 15 deletions(-)

diff --git a/sys-cluster/charliecloud/Manifest b/sys-cluster/charliecloud/Manifest
index 80b5b98868b..4a3205b29d7 100644
--- a/sys-cluster/charliecloud/Manifest
+++ b/sys-cluster/charliecloud/Manifest
@@ -1,3 +1,4 @@
 DIST charliecloud-0.10.tar.gz 301083 BLAKE2B be0c650bebc12fd047b1afc61588b4b9cfc0d0addfddb808765d8e125c70329d6c06a86144b4167e5abaf64392ad1891319aabd2ba8fb528de2d9789d040fc0c SHA512 681e2f30f730b42b55b4097dba78e41924b17990354b866e04e09e6d2e4bb584211c130f9a04619dcdd38f2a3eaaad7615ee5ec20a266ee2332b0a512492331f
+DIST charliecloud-0.15.tar.gz 346718 BLAKE2B a3710814864904c5db282d092f64faf9a11aeea016c788ee4be62f11257b5b5200d0c1887150b93f18446034d7919df933d3badcf33907a81c0b33e65a5e9f78 SHA512 70f6c9a18f613d05396eda5d41044ec699cf6366ae1bf43839275e62ac317231bb1c3278469040faa03af007260d84e2d718c0fb3fb45e6ace8fb733c6275a84
 DIST charliecloud-0.9.10.tar.gz 275687 BLAKE2B e03c3358dd4e5eb88f9c5a3002366c79563e15d5d7792dd55f2800a001b847c13443fce0689a850aa7e6a0aa510c3f6b53d93a88a6f79326eac27acc9cbe2c57 SHA512 93a6f0c6bcceb54fabbc179b960a0d03f1b3547786ce8d502552ddc571475ea2110d6aa290ce5c245be6e2c7cdc47d3f23ff7e74558f684b4a27358aa0971a61
 DIST charliecloud-0.9.6.tar.gz 205380 BLAKE2B 2e95f5486ea6d2306512378290cd29114bc688717741436ae9cc8c1dd2679c22ab21059574d62222cd14063bacecc6a7005b216cd9e2ed01fe1593a3b69871b0 SHA512 55af3e57ef6c2b81ae10bd50d149872af50d508392b271bdaa75cf3b655659ec7da5016a9deeea15aaa20e265e8066d1ed982c122cb5e62ee6d47f25d367410f

diff --git a/sys-cluster/charliecloud/charliecloud-0.15.ebuild b/sys-cluster/charliecloud/charliecloud-0.15.ebuild
new file mode 100644
index 00000000000..0085a7e407f
--- /dev/null
+++ b/sys-cluster/charliecloud/charliecloud-0.15.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit autotools eutils python-single-r1
+
+if [[ ${PV} == "9999" ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/hpc/${PN}.git"
+	S="${WORKDIR}/${P}"
+else
+	SRC_URI="https://github.com/hpc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86 ~x86-linux"
+fi
+
+DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
+HOMEPAGE="https://hpc.github.io/charliecloud/"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+IUSE="ch-grow doc examples +pv +squashfs squashfuse"
+
+# Extensive test suite exists, but downloads container images
+# directly and via Docker and installs packages inside using apt/yum.
+# Additionally, clashes with portage namespacing and sandbox.
+RESTRICT="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	pv? ( sys-apps/pv )
+	squashfs? ( sys-fs/squashfs-tools )
+	squashfuse? ( sys-fs/squashfuse )"
+DEPEND="
+	ch-grow? (
+		$(python_gen_cond_dep '
+			dev-python/lark-parser[${PYTHON_MULTI_USEDEP}]
+			dev-python/requests[${PYTHON_MULTI_USEDEP}]
+		')
+	)
+	doc? (
+		$(python_gen_cond_dep '
+			dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
+			dev-python/sphinx_rtd_theme[${PYTHON_MULTI_USEDEP}]
+		')
+		net-misc/rsync
+	)"
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	local econf_args=()
+	econf_args+=(
+		$(use_enable doc html)
+		$(use_enable ch-grow)
+		# Libdir is used as a libexec-style destination.
+		--libdir="${EPREFIX}"/usr/lib
+		# Attempts to call python-exec directly otherwise.
+		--with-sphinx-python=$(which python) \
+	)
+	econf "${econf_args[@]}"
+}
+
+pkg_postinst() {
+	elog "Various builders are supported, as alternative "
+	elog "to the internal ch-grow. The following packages "
+	elog "can be installed to get the corresponding support."
+
+	optfeature "Building with Buildah"	"app-emulation/buildah"
+	optfeature "Building with Docker"	"app-emulation/docker"
+}

diff --git a/sys-cluster/charliecloud/charliecloud-9999.ebuild b/sys-cluster/charliecloud/charliecloud-9999.ebuild
index c838d73e90e..0085a7e407f 100644
--- a/sys-cluster/charliecloud/charliecloud-9999.ebuild
+++ b/sys-cluster/charliecloud/charliecloud-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7} )
 
-inherit python-single-r1
+inherit autotools eutils python-single-r1
 
 if [[ ${PV} == "9999" ]] ; then
 	inherit git-r3
@@ -13,7 +13,7 @@ if [[ ${PV} == "9999" ]] ; then
 	S="${WORKDIR}/${P}"
 else
 	SRC_URI="https://github.com/hpc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+	KEYWORDS="~amd64 ~x86 ~x86-linux"
 fi
 
 DESCRIPTION="Lightweight user-defined software stacks for high-performance computing"
@@ -21,7 +21,7 @@ HOMEPAGE="https://hpc.github.io/charliecloud/"
 
 SLOT="0"
 LICENSE="Apache-2.0"
-IUSE="doc examples +pv squashfuse"
+IUSE="ch-grow doc examples +pv +squashfs squashfuse"
 
 # Extensive test suite exists, but downloads container images
 # directly and via Docker and installs packages inside using apt/yum.
@@ -32,9 +32,15 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="${PYTHON_DEPS}
 	pv? ( sys-apps/pv )
-	squashfuse? ( sys-fs/squashfuse )
-"
+	squashfs? ( sys-fs/squashfs-tools )
+	squashfuse? ( sys-fs/squashfuse )"
 DEPEND="
+	ch-grow? (
+		$(python_gen_cond_dep '
+			dev-python/lark-parser[${PYTHON_MULTI_USEDEP}]
+			dev-python/requests[${PYTHON_MULTI_USEDEP}]
+		')
+	)
 	doc? (
 		$(python_gen_cond_dep '
 			dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
@@ -43,16 +49,29 @@ DEPEND="
 		net-misc/rsync
 	)"
 
-src_compile() {
-	emake
-	use doc && emake -C doc-src
+src_prepare() {
+	default
+	eautoreconf
 }
 
-src_install() {
-	emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" DOCDIR="${ED}/usr/share/doc/${PF}" LIBEXEC_DIR="libexec/${PF}"
-	if use examples; then
-		docompress -x "/usr/share/doc/${PF}/examples"
-		dodoc -r examples
-	fi
-	einstalldocs
+src_configure() {
+	local econf_args=()
+	econf_args+=(
+		$(use_enable doc html)
+		$(use_enable ch-grow)
+		# Libdir is used as a libexec-style destination.
+		--libdir="${EPREFIX}"/usr/lib
+		# Attempts to call python-exec directly otherwise.
+		--with-sphinx-python=$(which python) \
+	)
+	econf "${econf_args[@]}"
+}
+
+pkg_postinst() {
+	elog "Various builders are supported, as alternative "
+	elog "to the internal ch-grow. The following packages "
+	elog "can be installed to get the corresponding support."
+
+	optfeature "Building with Buildah"	"app-emulation/buildah"
+	optfeature "Building with Docker"	"app-emulation/docker"
 }

diff --git a/sys-cluster/charliecloud/metadata.xml b/sys-cluster/charliecloud/metadata.xml
index 584c3076690..61291d6ce81 100644
--- a/sys-cluster/charliecloud/metadata.xml
+++ b/sys-cluster/charliecloud/metadata.xml
@@ -17,7 +17,9 @@
     <remote-id type="github">hpc/charliecloud</remote-id>
   </upstream>
   <use>
+    <flag name='ch-grow'>Build the internal builder ch-grow</flag>
     <flag name='pv'>Use sys-apps/pv to enable progress bar functionality</flag>
+    <flag name='squashfs'>Use sys-fs/squashfs-tools for creating SquashFS images</flag>
     <flag name='squashfuse'>Use sys-fs/squashfuse for the SquashFS workflow</flag>
   </use>
 </pkgmetadata>


             reply	other threads:[~2020-04-17 15:10 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 15:10 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-06 13:35 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charliecloud/ Sam James
2024-11-02 12:46 Joonas Niilola
2024-11-02 12:46 Joonas Niilola
2024-11-02 12:46 Joonas Niilola
2024-06-15 14:08 Nicolas Bock
2024-06-15 14:08 Nicolas Bock
2024-06-15 14:08 Nicolas Bock
2024-03-03 17:38 Nicolas Bock
2024-03-03 17:38 Nicolas Bock
2024-02-09 13:19 Joonas Niilola
2024-02-09 13:19 Joonas Niilola
2023-11-01 21:49 Nicolas Bock
2023-11-01 21:49 Nicolas Bock
2023-11-01 21:49 Nicolas Bock
2023-09-15  4:33 Arthur Zamarin
2023-09-15  4:33 Arthur Zamarin
2023-09-15  4:33 Arthur Zamarin
2023-09-15  4:33 Arthur Zamarin
2023-06-13 20:50 Nicolas Bock
2023-04-03 22:07 Nicolas Bock
2023-01-27 16:56 Nicolas Bock
2023-01-27 16:56 Nicolas Bock
2022-11-25  8:09 Joonas Niilola
2022-11-25  8:09 Joonas Niilola
2022-08-05  5:23 Nicolas Bock
2022-08-05  5:23 Nicolas Bock
2022-08-05  5:23 Nicolas Bock
2022-07-05  8:52 Joonas Niilola
2022-07-05  8:52 Joonas Niilola
2022-04-08 12:16 Joonas Niilola
2022-04-08 12:16 Joonas Niilola
2022-04-08 12:16 Joonas Niilola
2022-03-07 18:18 Nicolas Bock
2021-09-21  7:03 Joonas Niilola
2021-07-17 18:18 David Seifert
2021-07-08 12:45 Ionen Wolkens
2021-06-30  5:24 Nicolas Bock
2021-06-30  5:24 Nicolas Bock
2021-04-19 12:42 Nicolas Bock
2021-04-19 12:42 Nicolas Bock
2021-04-04 18:55 Andreas Sturmlechner
2021-02-18  8:25 Joonas Niilola
2021-02-18  8:25 Joonas Niilola
2020-12-21 17:49 Nicolas Bock
2020-12-21 17:49 Nicolas Bock
2020-10-27 16:27 Joonas Niilola
2020-10-27 16:27 Joonas Niilola
2020-10-09  7:25 Joonas Niilola
2020-10-09  7:25 Joonas Niilola
2020-09-16 12:33 Joonas Niilola
2020-09-16 12:33 Joonas Niilola
2020-09-07  8:55 David Seifert
2020-07-11 17:05 Christoph Junghans
2020-07-11 17:05 Christoph Junghans
2020-06-14 14:05 Joonas Niilola
2020-04-17 15:10 Joonas Niilola
2020-02-09 16:42 Michał Górny
2019-07-18  8:00 Michał Górny
2019-07-07 18:31 Michał Górny
2018-12-14 13:39 Nicolas Bock
2018-12-10 12:06 Nicolas Bock
2018-11-05 18:27 Nicolas Bock
2018-10-04 17:50 Nicolas Bock
2018-10-04 17:50 Nicolas Bock
2018-08-20  9:45 Patrice Clement
2018-08-20  9:45 Patrice Clement
2018-05-13 21:46 Christoph Junghans
2017-12-01 21:22 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1587136231.9d561c4019386537e05180ac7008a1d983483284.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox