commit: b6e6b0023d15020cdaa346d15515d4b2cf10a00b Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sun Jan 26 18:47:35 2025 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sun Jan 26 18:47:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6e6b002
sys-cluster/knem: restore 1.1.4 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> sys-cluster/knem/Manifest | 1 + sys-cluster/knem/knem-1.1.4.ebuild | 85 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/sys-cluster/knem/Manifest b/sys-cluster/knem/Manifest new file mode 100644 index 000000000000..d9b784b0c468 --- /dev/null +++ b/sys-cluster/knem/Manifest @@ -0,0 +1 @@ +DIST knem-1.1.4.tar.gz 336148 BLAKE2B e7273040c563c63e5e5c1a4a6b822a4b34b6fbb7214a7a37b4ff06f23aa47fe80c55ed1781ce85d974ed7e53059b509db98a94baaa7bddfc8860d503cf89869d SHA512 4f142a910ac51a590952aa1f36010fc2a1361162a0d5fd98f47d1c90dedbb293d56bd990bded5d4ec91fcc8df3fa3bcf0d126651b5868c557ffb9f3a588cb948 diff --git a/sys-cluster/knem/knem-1.1.4.ebuild b/sys-cluster/knem/knem-1.1.4.ebuild new file mode 100644 index 000000000000..1970bfedc34a --- /dev/null +++ b/sys-cluster/knem/knem-1.1.4.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit autotools linux-mod linux-info toolchain-funcs udev + +DESCRIPTION="High-Performance Intra-Node MPI Communication" +HOMEPAGE="https://knem.gforge.inria.fr/" +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://gforge.inria.fr/git/knem/knem.git" + inherit git-r3 +else + SRC_URI="https://gitlab.inria.fr/knem/knem/uploads/4a43e3eb860cda2bbd5bf5c7c04a24b6/${P}.tar.gz" + KEYWORDS="~amd64 ~riscv ~x86" +fi + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +IUSE="debug modules" + +DEPEND=" + sys-apps/hwloc:= + virtual/linux-sources" +RDEPEND=" + sys-apps/hwloc:= + sys-apps/kmod[tools]" + +MODULE_NAMES="knem(misc:${S}/driver/linux)" +BUILD_TARGETS="all" +BUILD_PARAMS="KDIR=${KERNEL_DIR}" + +pkg_setup() { + linux-info_pkg_setup + CONFIG_CHECK="DMA_ENGINE" + check_extra_config + linux-mod_pkg_setup + ARCH="$(tc-arch-kernel)" + ABI="${KERNEL_ABI}" +} + +src_prepare() { + sed 's:driver/linux::g' -i Makefile.am + eautoreconf + default +} + +src_configure() { + econf \ + --enable-hwloc \ + --with-linux="${KERNEL_DIR}" \ + --with-linux-release=${KV_FULL} \ + $(use_enable debug) +} + +src_compile() { + default + if use modules; then + cd "${S}/driver/linux" + linux-mod_src_compile || die "failed to build driver" + fi +} + +src_install() { + default + if use modules; then + cd "${S}/driver/linux" + linux-mod_src_install || die "failed to install driver" + fi + + # Drop funny unneded stuff + rm "${ED}/usr/sbin/knem_local_install" || die + rmdir "${ED}/usr/sbin" || die + # install udev rules + udev_dorules "${FILESDIR}/45-knem.rules" + rm "${ED}/etc/10-knem.rules" || die +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}