diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/hwloc |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/hwloc')
-rw-r--r-- | sys-apps/hwloc/Manifest | 8 | ||||
-rw-r--r-- | sys-apps/hwloc/files/hwloc-1.8.1-gl.patch | 11 | ||||
-rw-r--r-- | sys-apps/hwloc/hwloc-1.11.2-r1.ebuild | 70 | ||||
-rw-r--r-- | sys-apps/hwloc/hwloc-1.11.7.ebuild | 70 | ||||
-rw-r--r-- | sys-apps/hwloc/metadata.xml | 23 |
5 files changed, 182 insertions, 0 deletions
diff --git a/sys-apps/hwloc/Manifest b/sys-apps/hwloc/Manifest new file mode 100644 index 000000000000..b5e2647b2eb1 --- /dev/null +++ b/sys-apps/hwloc/Manifest @@ -0,0 +1,8 @@ +AUX hwloc-1.8.1-gl.patch 542 SHA256 0e424b4207df696cb3601ffd2c3680eda6e6aefc1886876e1bcbf0f2dc5a09fa SHA512 1f281f338cef379963b374d7e656f90be98dfd0b0768fe12dc8e6d366b1c386c2ed50ed405d5dcd0b00c2bb57b12849a3b918712e38214fca45e2a3b1c584f33 WHIRLPOOL ee497fac66b5de36adb6ab2a792c83c2f00f30030c42b7a2ff4521c61751a69f7548ab1a1b2b5245c0b546d7d755e2e4078d8b0a4553bb81c407f0ffb4e48991 +DIST hwloc-1.11.2.tar.bz2 4019136 SHA256 8c029b6b1638245837707bfa6c865f448af4e49e7d352335e019d818b51fecf8 SHA512 aa54b6389c303470a00dbbb3ae5f688244d0f1e0d84e661b739933ff9d86928869f2f3be04fe621cdf06c206defcd4ea1c9e8b72696f7cada9bb3243c3feba68 WHIRLPOOL 783752a449f907bca5dd0b42445f8291d8cdc3a09f4e1bdb677cf34c3bc56ef739def0c1684455979d36570a51bdc99cefccbd5052e0996226dfc832ade9664a +DIST hwloc-1.11.7.tar.bz2 4187754 SHA256 ab6910e248eed8c85d08b529917a6aae706b32b346e886ba830895e36a809729 SHA512 f3afd123f917d07fe987b8a16dba9f1aa9a9112fc4bdc806417c942b5fbd3b7f31067550048258814b4ba08d4ac7bd45c1fd477457d817bf9453735e0b82f04e WHIRLPOOL 4cbc3bb5639f01cd16f12e92a59daadb978c9c09126941e0cab6b69beb33a5e7ced1c91cf281c66175b0c3c13a4887ede556cbfe6e8823589a233ee409813584 +EBUILD hwloc-1.11.2-r1.ebuild 2207 SHA256 fc3132fe3429652f676e3685a55d5af61b5aa57f257eb3b805d7edfd6c9dc96c SHA512 ec68dd2534e19ef77a0bd4fd87b357d8dc05bddc6a361ee320fe7b9145ed0a6988d219ec8c56c6ea66036db61e1cbd2ade9f34e4470b997684f95309287fce6d WHIRLPOOL ddb476a80090b6565fb5f5902ac5ef40a88c69244985ca235610e62d85ac4fb41f80ced8df2c4738d5934648254c523ebd5126d705a6b54febbc8bb78370e0cd +EBUILD hwloc-1.11.7.ebuild 2218 SHA256 d4fd2f764c9e4d7281ba51aee9d98b2a262d134f00a376899ac4a021ac1388b1 SHA512 984bb91ccc20ee9afeee0cc474141a7c967deb8e4cc02235a095161721e16aeec43901fb9fcd1eff0b3dd05e5f3a46691711a64a838d90423ecded36e900baf5 WHIRLPOOL c5c6ef1940b412fefc86341c9a8479387144624aea4bf3e4fb6d4bc0a9c5b6ab166ede52f2805ee8ad04ff502ec8e6f503c0f4372cb8d1887ccf7d416ac96e95 +MISC ChangeLog 3699 SHA256 9cb9ea68e56132510950e15866be93fad8b890fd89fe35361314edeb20ca0af6 SHA512 ea1d7f65ba49a6f335c0b3c480186616ad7b9f2cfe6699a51610d86deeae867c7adb2236e8587f7b3f739dfbec5dcb577f7a3df4dcec0c6a89f4b54e2aabdac6 WHIRLPOOL f2b4c19831ee2b8325ff620b3dd8c224987049f85d89652e89a5832f3047e40baa727e98946139db5a27dce8ef2dbd3b8d86dc2f781ad1a4e02a9d1016f26eda +MISC ChangeLog-2015 8565 SHA256 e77cec1b7ce8ebfe939877182c8340a34d8568cf7af0173f7b7ab8804040a231 SHA512 1cc4d5e93bf873f892b69e4fca3d3fd1aba4533733720d4f4ed58537f996d775f7312b7f06f603787aa19a41f647a53c658a043077ecc2cd5d953cf40bc764bb WHIRLPOOL 83c1257a4ea69bf4e87ef3bb647ad4251ff2033034c8e7ebb34f62c6539581f923aee25f185b5f9c04e5716247239059e57aa35fd57a1595429cffdddb12def8 +MISC metadata.xml 1263 SHA256 9eaae7f018d9e85a24d3ff4ace865f94fe91889ad813d98607179600e6bd73f2 SHA512 9c21fd25ba0f5046ab051e58884c67d3627040bf66b58d114fa504e411aefe3411c591e356a419e955269e74cafba06ac9fe335b1bb9c43253c029accef1d166 WHIRLPOOL 97d7797707930f2d5e1d49313f522d7489b3a307f122992d0f8018fea69759923b934288e2d9e102f5ff501abb0b18caa122ec0090ef97bc783cd12fdabce419 diff --git a/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch b/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch new file mode 100644 index 000000000000..47daa9593377 --- /dev/null +++ b/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch @@ -0,0 +1,11 @@ +--- hwloc-1.8.1/config/hwloc.m4.orig 2014-01-30 17:46:58.000000000 +0400 ++++ hwloc-1.8.1/config/hwloc.m4 2014-02-27 13:46:28.587238873 +0400 +@@ -948,7 +948,7 @@ + hwloc_gl_happy=no]) + + AC_CHECK_HEADERS([NVCtrl/NVCtrl.h], [ +- AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext]) ++ AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext -lX11]) + ], [hwloc_gl_happy=no]) + + if test "x$hwloc_gl_happy" = "xyes"; then diff --git a/sys-apps/hwloc/hwloc-1.11.2-r1.ebuild b/sys-apps/hwloc/hwloc-1.11.2-r1.ebuild new file mode 100644 index 000000000000..2f6751aa3cea --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.11.2-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit flag-o-matic cuda autotools-multilib multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa +pci plugins svg static-libs xml X" + +# opencl support dropped with x11-drivers/ati-drivers being removed (#582406). +# Anyone with hardware is welcome to step up and help test to get it re-added. + +# dev-util/nvidia-cuda-toolkit is always multilib + +RDEPEND=">=sys-libs/ncurses-5.9-r3:0[${MULTILIB_USEDEP}] + cairo? ( >=x11-libs/cairo-1.12.14-r4[X?,svg?,${MULTILIB_USEDEP}] ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 ) + gl? ( || ( x11-drivers/nvidia-drivers[static-libs,tools] media-video/nvidia-settings ) ) + pci? ( + >=sys-apps/pciutils-3.3.0-r2[${MULTILIB_USEDEP}] + >=x11-libs/libpciaccess-0.13.1-r1[${MULTILIB_USEDEP}] + ) + plugins? ( dev-libs/libltdl:0[${MULTILIB_USEDEP}] ) + numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] ) + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( + "${FILESDIR}/${PN}-1.8.1-gl.patch" +) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + fi + autotools-utils_src_prepare +} + +multilib_src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + use cuda && local LDFLAGS="${LDFLAGS} -L/opt/cuda/$(get_libdir)" + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(multilib_native_use_enable gl) + $(use_enable pci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} diff --git a/sys-apps/hwloc/hwloc-1.11.7.ebuild b/sys-apps/hwloc/hwloc-1.11.7.ebuild new file mode 100644 index 000000000000..1978df29ec28 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.11.7.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools cuda flag-o-matic versionator multilib-minimal + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa +pci plugins svg static-libs xml X" + +# opencl support dropped with x11-drivers/ati-drivers being removed (#582406). +# Anyone with hardware is welcome to step up and help test to get it re-added. + +# dev-util/nvidia-cuda-toolkit is always multilib + +RDEPEND=">=sys-libs/ncurses-5.9-r3:0[${MULTILIB_USEDEP}] + cairo? ( >=x11-libs/cairo-1.12.14-r4[X?,svg?,${MULTILIB_USEDEP}] ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 ) + gl? ( || ( x11-drivers/nvidia-drivers[static-libs,tools] media-video/nvidia-settings ) ) + pci? ( + >=sys-apps/pciutils-3.3.0-r2[${MULTILIB_USEDEP}] + >=x11-libs/libpciaccess-0.13.1-r1[${MULTILIB_USEDEP}] + ) + plugins? ( dev-libs/libltdl:0[${MULTILIB_USEDEP}] ) + numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] ) + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" + +PATCHES=( "${FILESDIR}/${PN}-1.8.1-gl.patch" ) +DOCS=( AUTHORS NEWS README VERSION ) + +src_prepare() { + default + eautoreconf + + if use cuda ; then + append-cflags -I"${EPREFIX}"/opt/cuda/include + append-cppflags -I"${EPREFIX}"/opt/cuda/include + fi +} + +multilib_src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + + if use cuda ; then + local -x LDFLAGS="${LDFLAGS}" + append-ldflags -L"${EPREFIX}"/opt/cuda/$(get_libdir) + fi + + ECONF_SOURCE=${S} econf \ + $(use_enable static-libs static) \ + $(use_enable cairo) \ + $(use_enable cuda) \ + $(use_enable debug) \ + $(multilib_native_use_enable gl) \ + $(use_enable pci) \ + $(use_enable plugins) \ + $(use_enable numa libnuma) \ + $(use_enable xml libxml2) \ + $(use_with X x) +} diff --git a/sys-apps/hwloc/metadata.xml b/sys-apps/hwloc/metadata.xml new file mode 100644 index 000000000000..baae6b031db9 --- /dev/null +++ b/sys-apps/hwloc/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>cluster@gentoo.org</email> + <name>Gentoo Cluster Project</name> +</maintainer> +<longdescription> + The Portable Hardware Locality (hwloc) software package provides a portable abstraction + (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, + including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. + It also gathers various system attributes such as cache and memory information. + It primarily aims at helping applications with gathering information about modern computing + hardware so as to exploit it accordingly and efficiently. +</longdescription> +<use> + <flag name="cuda">Enable CUDA device discovery</flag> + <flag name="gl">Enable GL display device discovery (NVCtrl)</flag> + <flag name="numa">Add support for numa memory allocation</flag> + <flag name="pci">Enable PCI device discovery using libpci</flag> + <flag name="plugins">Build hwloc components as plugins so that the hwloc core library does not directly depend on their dependencies (for instance the libpci library)</flag> +</use> +</pkgmetadata> |