From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13D9A158094 for ; Sun, 14 Aug 2022 16:12:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A291E0AC1; Sun, 14 Aug 2022 16:06:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D590E0AC1 for ; Sun, 14 Aug 2022 16:06:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD423340FD1 for ; Sun, 14 Aug 2022 16:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E052574 for ; Sun, 14 Aug 2022 16:06:13 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1660493001.6670c333d5a10ecde92582439f05eb8eef069ebc.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/hpx/, sys-cluster/hpx/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/hpx/Manifest sys-cluster/hpx/files/hpx-1.8.1-python.patch sys-cluster/hpx/hpx-1.8.1.ebuild X-VCS-Directories: sys-cluster/hpx/ sys-cluster/hpx/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 6670c333d5a10ecde92582439f05eb8eef069ebc X-VCS-Branch: master Date: Sun, 14 Aug 2022 16:06:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 22cfd88f-630f-44a1-b14a-d9f2d817e76d X-Archives-Hash: d1aba5bc32fa9ef64b9b3c54a97e0450 commit: 6670c333d5a10ecde92582439f05eb8eef069ebc Author: Kurt Kanzenbach kmk-computers de> AuthorDate: Sun Aug 7 09:22:56 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sun Aug 14 16:03:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6670c333 sys-cluster/hpx: add 1.8.1 Signed-off-by: Kurt Kanzenbach kmk-computers.de> Closes: https://github.com/gentoo/gentoo/pull/26772 Signed-off-by: Florian Schmaus gentoo.org> sys-cluster/hpx/Manifest | 1 + sys-cluster/hpx/files/hpx-1.8.1-python.patch | 30 ++++++++ sys-cluster/hpx/hpx-1.8.1.ebuild | 105 +++++++++++++++++++++++++++ 3 files changed, 136 insertions(+) diff --git a/sys-cluster/hpx/Manifest b/sys-cluster/hpx/Manifest index 4783253e8786..ab1db7886afc 100644 --- a/sys-cluster/hpx/Manifest +++ b/sys-cluster/hpx/Manifest @@ -1 +1,2 @@ DIST hpx-1.8.0.tar.gz 5209106 BLAKE2B aab9d3743cc2d73c2d3a6a2f2323e35dbe38cf506618475ea627d9c0d92855632f646404f5b257e2260eabe6bb22e8090bc3db2aafd9f4f71a0eeb62d7286247 SHA512 80afc93d517144d5c11164f82d7f0dd6fd71c079fb65930532c4fd96b6a5497cdf972bee8a6251035548a3662579a3bee5c04802569f47bc3c042ca868716cb7 +DIST hpx-1.8.1.tar.gz 5242024 BLAKE2B 0a08c004573cf2bebff4042f859fa457bd821bd55b58aa0e0e56dfc8b80378469c24daa94789196d9486a3321598031a0930306e2e76c311b6fd8179e9bc61a1 SHA512 af2471a04dd0a3c414907ed06661ab1c6f6a49cc09d1ed3ae5d5587ca365270797a1d2ce9d0320dc7d7f9ff2c6d29037c7fbb84fa6d9c0033628ba7036f12986 diff --git a/sys-cluster/hpx/files/hpx-1.8.1-python.patch b/sys-cluster/hpx/files/hpx-1.8.1-python.patch new file mode 100644 index 000000000000..21b7ce3ceeff --- /dev/null +++ b/sys-cluster/hpx/files/hpx-1.8.1-python.patch @@ -0,0 +1,30 @@ +From 3d8d3acf0daad9cec8b092d67f7187265f7704e3 Mon Sep 17 00:00:00 2001 +From: Kurt Kanzenbach +Date: Tue, 17 Mar 2020 16:20:35 +0100 +Subject: [PATCH 1/4] cmake: python: Use standard python interpreter + +These scripts are needed during build and run time. So, use a python interpreter +which works for both cases. + +Signed-off-by: Kurt Kanzenbach +--- + cmake/templates/hpxcxx.in | 2 +- + cmake/templates/hpxrun.py.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/cmake/templates/hpxcxx.in ++++ b/cmake/templates/hpxcxx.in +@@ -1,4 +1,4 @@ +-#! @PYTHON_EXECUTABLE@ ++#! /usr/bin/env python + # + # Copyright (c) 2014 Steven R. Brandt + # +--- a/cmake/templates/hpxrun.py.in ++++ b/cmake/templates/hpxrun.py.in +@@ -1,4 +1,4 @@ +-#! @PYTHON_EXECUTABLE@ ++#! /usr/bin/env python + # + # Copyright (c) 2014 Thomas Heller + # diff --git a/sys-cluster/hpx/hpx-1.8.1.ebuild b/sys-cluster/hpx/hpx-1.8.1.ebuild new file mode 100644 index 000000000000..a1b86f1f953f --- /dev/null +++ b/sys-cluster/hpx/hpx-1.8.1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/STEllAR-GROUP/hpx.git" +else + SRC_URI="https://github.com/STEllAR-GROUP/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi +inherit check-reqs cmake multiprocessing python-single-r1 + +DESCRIPTION="C++ runtime system for parallel and distributed applications" +HOMEPAGE="https://hpx.stellar-group.org/" + +SLOT="0" +LICENSE="Boost-1.0" +IUSE="examples jemalloc mpi papi +perftools tbb zlib" +# tests fail to compile +RESTRICT="test" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + ?? ( jemalloc perftools tbb ) +" + +BDEPEND=" + virtual/pkgconfig +" +RDEPEND=" + ${PYTHON_DEPS} + >=dev-cpp/asio-1.12.0 + dev-libs/boost:= + sys-apps/hwloc:= + jemalloc? ( dev-libs/jemalloc:= ) + mpi? ( virtual/mpi ) + papi? ( dev-libs/papi ) + perftools? ( dev-util/google-perftools:= ) + tbb? ( dev-cpp/tbb:= ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-python.patch" +) + +hpx_memory_requirement() { + # HPX needs enough main memory for compiling + # rule of thumb: 1G per job + if [[ -z ${MAKEOPTS} ]] ; then + echo "2G" + else + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") + echo "${jobs}G" + fi +} + +pkg_pretend() { + local CHECKREQS_MEMORY=$(hpx_memory_requirement) + check-reqs_pkg_setup +} + +pkg_setup() { + local CHECKREQS_MEMORY=$(hpx_memory_requirement) + check-reqs_pkg_setup + python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DHPX_WITH_EXAMPLES=OFF + -DHPX_WITH_DOCUMENTATION=OFF + -DHPX_WITH_PARCELPORT_MPI=$(usex mpi) + -DHPX_WITH_PAPI=$(usex papi) + -DHPX_WITH_GOOGLE_PERFTOOLS=$(usex perftools) + -DHPX_WITH_COMPRESSION_ZLIB=$(usex zlib) + -DHPX_WITH_TESTS=OFF + ) + if use jemalloc; then + mycmakeargs+=( -DHPX_WITH_MALLOC=jemalloc ) + elif use perftools; then + mycmakeargs+=( -DHPX_WITH_MALLOC=tcmalloc ) + elif use tbb; then + mycmakeargs+=( -DHPX_WITH_MALLOC=tbbmalloc ) + else + mycmakeargs+=( -DHPX_WITH_MALLOC=system ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile +} + +src_install() { + cmake_src_install + use examples && dodoc -r examples/ + python_fix_shebang "${ED}" +}