aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <bicatali@gentoo.org>2014-02-15 23:48:27 -0800
committerS├ębastien Fabbro <bicatali@gentoo.org>2014-02-15 23:48:27 -0800
commitd41f081960f24b45f74b5192497a65967f027a9f (patch)
tree94ea8f1cb51175625b6831203824967fbab1ab99
parentdev-libs/libpfm: Version bump (diff)
downloadsci-d41f081960f24b45f74b5192497a65967f027a9f.tar.gz
sci-d41f081960f24b45f74b5192497a65967f027a9f.tar.bz2
sci-d41f081960f24b45f74b5192497a65967f027a9f.zip
added ppc
-rw-r--r--dev-libs/papi/papi-5.3.0.ebuild39
-rw-r--r--sys-cluster/hpx/Manifest2
-rw-r--r--sys-cluster/hpx/files/hpx-0.9.7-move-boost-include.patch18
-rw-r--r--sys-cluster/hpx/hpx-0.9.5.ebuild29
-rw-r--r--sys-cluster/hpx/hpx-0.9.6.ebuild29
-rw-r--r--sys-cluster/hpx/hpx-0.9.7.ebuild70
-rw-r--r--sys-cluster/hpx/hpx-9999.ebuild72
-rw-r--r--sys-cluster/hpx/metadata.xml26
8 files changed, 196 insertions, 89 deletions
diff --git a/dev-libs/papi/papi-5.3.0.ebuild b/dev-libs/papi/papi-5.3.0.ebuild
new file mode 100644
index 000000000..8bd3f8610
--- /dev/null
+++ b/dev-libs/papi/papi-5.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit versionator autotools-utils
+
+DESCRIPTION="Performance Application Programming Interface"
+HOMEPAGE="http://icl.cs.utk.edu/papi/"
+SRC_URI="http://icl.cs.utk.edu/projects/${PN}/downloads/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+DEPEND="
+ dev-libs/libpfm[static-libs]
+ virtual/mpi
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)/src"
+
+src_configure() {
+ local myeconfargs=(
+ --with-shlib
+ --with-perf-events
+ --with-pfm-prefix="${EPREFIX}/usr"
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ dodoc ../RE*
+}
diff --git a/sys-cluster/hpx/Manifest b/sys-cluster/hpx/Manifest
index cecd9ea58..138b23bf3 100644
--- a/sys-cluster/hpx/Manifest
+++ b/sys-cluster/hpx/Manifest
@@ -1,3 +1 @@
-DIST hpx_0.9.5.tar.gz 3801863 SHA256 4e9f71b70d005104142157969f5ab3a980e2594279a2fb5f79a48bf77a8bc6aa SHA512 b156935061130bd87ababc4693b936687a4098eae305b55fce3c1fa7e0aef13b24f396045b8b392131c9eb973e67a1c1e665ae192a4b6350b5d3802dae9231a7 WHIRLPOOL 41a3e28be66578f0f665470847b38e2c6e5c573cb2ada7fbb49fe07c51b9bb15b761e811299560b2f4ed2e386bff5d42c6748c1c58fe430f4d8bed1376588c2a
-DIST hpx_0.9.6.tar.gz 4506305 SHA256 937f753d5e6287bfa121d45ffe282b5f72c1c7a9bdc7cd6ca90e92169e13dba9 SHA512 37253aca00df825528dc79700cbb68de5cc9c652fdc7ebb4986f9f8fc603c789290f033d46b35b766a2a2a87c0dc9a2120d12ed300ef4fa3d4e267462906f01c WHIRLPOOL 317e9f229e10dec59e0c95ee008b33689b0728612954205eb6edc2b0014e40510fb5f026579d4f4becf9b39f4e419da0d1f7c95c1f8bc137c7da4edb8e5fe2fd
DIST hpx_0.9.7.7z 2416122 SHA256 95fa108a6ba6cd3a3afc117d508936d1c070cc7e83a592f62815a6a11378882a SHA512 eb258e94facaaba29729ebca63640ab5feda156ee860153848ca1143266b8365bc9cc772eb6d6f56f884af43531efb1b77fa84ca4c6e185882cbf031ac794a7b WHIRLPOOL c5432a608a90a732ed7ec08f980d3d2f7f99a3bd5b83867db26190877120b76f0b46f6fd3e9bbc97bfb9637e6c951c9dd449c0f6c767bb11eca1e0212f488d88
diff --git a/sys-cluster/hpx/files/hpx-0.9.7-move-boost-include.patch b/sys-cluster/hpx/files/hpx-0.9.7-move-boost-include.patch
new file mode 100644
index 000000000..a3e919e86
--- /dev/null
+++ b/sys-cluster/hpx/files/hpx-0.9.7-move-boost-include.patch
@@ -0,0 +1,18 @@
+--- tests/unit/security/certificate_authority.cpp.orig 2014-02-15 22:29:43.663465723 -0800
++++ tests/unit/security/certificate_authority.cpp 2014-02-15 22:30:02.649579686 -0800
+@@ -3,7 +3,6 @@
+ // Distributed under the Boost Software License, Version 1.0. (See accompanying
+ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+-#include <boost/make_shared.hpp>
+ #include <hpx/hpx_fwd.hpp>
+ #include <hpx/hpx_init.hpp>
+ #include <hpx/components/security/certificate_store.hpp>
+@@ -16,6 +15,7 @@
+ #include <hpx/util/lightweight_test.hpp>
+ #include <hpx/util/security/root_certificate_authority.hpp>
+ #include <hpx/util/security/subordinate_certificate_authority.hpp>
++#include <boost/make_shared.hpp>
+
+ #include <iostream>
+ #include <vector>
diff --git a/sys-cluster/hpx/hpx-0.9.5.ebuild b/sys-cluster/hpx/hpx-0.9.5.ebuild
deleted file mode 100644
index 9c041f1c7..000000000
--- a/sys-cluster/hpx/hpx-0.9.5.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit cmake-utils
-
-MY_P="${PN}_${PV}"
-
-DESCRIPTION="A general C++ runtime system for parallel and distributed applications of any scale"
-HOMEPAGE="http://stellar.cct.lsu.edu/tag/hpx/"
-SRC_URI="http://stellar.cct.lsu.edu/files/${MY_P}.tar.gz"
-
-SLOT="0"
-LICENSE="Boost-1.0"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND=">=dev-libs/boost-1.48"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-PATCHES=( "${FILESDIR}/hpx-0.9.5-install-path.patch" )
-
-src_configure() {
- CMAKE_BUILD_TYPE=Release
- cmake-utils_src_configure
-}
diff --git a/sys-cluster/hpx/hpx-0.9.6.ebuild b/sys-cluster/hpx/hpx-0.9.6.ebuild
deleted file mode 100644
index 9c041f1c7..000000000
--- a/sys-cluster/hpx/hpx-0.9.6.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit cmake-utils
-
-MY_P="${PN}_${PV}"
-
-DESCRIPTION="A general C++ runtime system for parallel and distributed applications of any scale"
-HOMEPAGE="http://stellar.cct.lsu.edu/tag/hpx/"
-SRC_URI="http://stellar.cct.lsu.edu/files/${MY_P}.tar.gz"
-
-SLOT="0"
-LICENSE="Boost-1.0"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND=">=dev-libs/boost-1.48"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-PATCHES=( "${FILESDIR}/hpx-0.9.5-install-path.patch" )
-
-src_configure() {
- CMAKE_BUILD_TYPE=Release
- cmake-utils_src_configure
-}
diff --git a/sys-cluster/hpx/hpx-0.9.7.ebuild b/sys-cluster/hpx/hpx-0.9.7.ebuild
index dce9781ad..7d0ddd094 100644
--- a/sys-cluster/hpx/hpx-0.9.7.ebuild
+++ b/sys-cluster/hpx/hpx-0.9.7.ebuild
@@ -4,6 +4,8 @@
EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
if [ ${PV} == "9999" ] ; then
inherit git-3
EGIT_REPO_URI="https://github.com/STEllAR-GROUP/hpx.git"
@@ -13,25 +15,79 @@ if [ ${PV} == "9999" ] ; then
CMAKE_USE_DIR="${S}"
else
SRC_URI="http://stellar.cct.lsu.edu/files/${PN}_${PV}.7z"
- KEYWORDS="~amd64 ~ppc ~x86"
+ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${PN}_${PV}"
fi
-inherit cmake-utils
+inherit cmake-utils fortran-2 python-single-r1
-DESCRIPTION="A general C++ runtime system for parallel and distributed applications of any scale"
+DESCRIPTION="C++ runtime system for parallel and distributed applications"
HOMEPAGE="http://stellar.cct.lsu.edu/tag/hpx/"
SLOT="0"
LICENSE="Boost-1.0"
-IUSE=""
+IUSE="doc examples jemalloc papi +perftools tbb test"
+
+# TODO: some of the forced deps are may be optional
+# it would need to work the automagic
+RDEPEND="
+ >=dev-libs/boost-1.51
+ dev-libs/libxml2
+ sci-libs/hdf5
+ >=sys-apps/hwloc-1.8
+ >=sys-libs/libunwind-1
+ sys-libs/zlib
+ papi? ( dev-libs/papi )
+ perftools? ( >=dev-util/google-perftools-1.7.1 )
+ tbb? ( dev-cpp/tbb )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-lang/python )
+"
+REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
-DEPEND=">=dev-libs/boost-1.48"
-RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/hpx-0.9.5-install-path.patch
+ "${FILESDIR}"/hpx-0.9.7-move-boost-include.patch
+)
-PATCHES=( "${FILESDIR}/hpx-0.9.5-install-path.patch" )
+pkg_setup() {
+ use test && python-single-r1_pkg_setup
+}
src_configure() {
CMAKE_BUILD_TYPE=Release
+ local mycmakeargs=(
+ -Wno-dev
+ -DHPX_BUILD_EXAMPLES=OFF
+ $(cmake-utils_use doc HPX_BUILD_DOCUMENTATION)
+ $(cmake-utils_use jemalloc HPX_JEMALLOC)
+ $(cmake-utils_use test BUILD_TESTING)
+ $(cmake-utils_use perftools HPX_GOOGLE_PERFTOOLS)
+ $(cmake-utils_use papi HPX_PAPI)
+ )
+ if use perftools; then
+ mycmakeargs+=( -DHPX_MALLOC=tcmalloc )
+ elif use jemalloc; then
+ mycmakeargs+=( -DHPX_MALLOC=jemalloc )
+ elif use tbb; then
+ mycmakeargs+=( -DHPX_MALLOC=tbbmalloc )
+ else
+ mycmakeargs+=( -DHPX_MALLOC=system )
+ fi
cmake-utils_src_configure
}
+
+src_test() {
+ # avoid over-suscribing
+ cmake-utils_src_make -j1 tests
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/sys-cluster/hpx/hpx-9999.ebuild b/sys-cluster/hpx/hpx-9999.ebuild
index 5f44644ed..e653868b0 100644
--- a/sys-cluster/hpx/hpx-9999.ebuild
+++ b/sys-cluster/hpx/hpx-9999.ebuild
@@ -4,8 +4,10 @@
EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
if [ ${PV} == "9999" ] ; then
- inherit git-2
+ inherit git-3
EGIT_REPO_URI="https://github.com/STEllAR-GROUP/hpx.git"
SRC_URI=""
KEYWORDS=""
@@ -13,26 +15,78 @@ if [ ${PV} == "9999" ] ; then
CMAKE_USE_DIR="${S}"
else
SRC_URI="http://stellar.cct.lsu.edu/files/${PN}_${PV}.7z"
- KEYWORDS="~amd64 ~ppc ~x86"
+ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
S="${WORKDIR}/${PN}_${PV}"
fi
-inherit cmake-utils
+inherit cmake-utils fortran-2 python-single-r1
-DESCRIPTION="A general C++ runtime system for parallel and distributed applications of any scale"
+DESCRIPTION="C++ runtime system for parallel and distributed applications"
HOMEPAGE="http://stellar.cct.lsu.edu/tag/hpx/"
SLOT="0"
LICENSE="Boost-1.0"
-KEYWORDS="~amd64"
-IUSE=""
+IUSE="doc examples jemalloc papi +perftools tbb test"
+
+# TODO: some of the forced deps are may be optional
+# it would need to work the automagic
+RDEPEND="
+ >=dev-libs/boost-1.51
+ dev-libs/libxml2
+ sci-libs/hdf5
+ >=sys-apps/hwloc-1.8
+ >=sys-libs/libunwind-1
+ sys-libs/zlib
+ papi? ( dev-libs/papi )
+ perftools? ( >=dev-util/google-perftools-1.7.1 )
+ tbb? ( dev-cpp/tbb )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-lang/python )
+"
+REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
-DEPEND=">=dev-libs/boost-1.48"
-RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/hpx-0.9.5-install-path.patch
+)
-PATCHES=( "${FILESDIR}/hpx-0.9.5-install-path.patch" )
+pkg_setup() {
+ use test && python-single-r1_pkg_setup
+}
src_configure() {
CMAKE_BUILD_TYPE=Release
+ local mycmakeargs=(
+ -Wno-dev
+ -DHPX_BUILD_EXAMPLES=OFF
+ $(cmake-utils_use doc HPX_BUILD_DOCUMENTATION)
+ $(cmake-utils_use jemalloc HPX_JEMALLOC)
+ $(cmake-utils_use test BUILD_TESTING)
+ $(cmake-utils_use perftools HPX_GOOGLE_PERFTOOLS)
+ $(cmake-utils_use papi HPX_PAPI)
+ )
+ if use perftools; then
+ mycmakeargs+=( -DHPX_MALLOC=tcmalloc )
+ elif use jemalloc; then
+ mycmakeargs+=( -DHPX_MALLOC=jemalloc )
+ elif use tbb; then
+ mycmakeargs+=( -DHPX_MALLOC=tbbmalloc )
+ else
+ mycmakeargs+=( -DHPX_MALLOC=system )
+ fi
cmake-utils_src_configure
}
+
+src_test() {
+ # avoid over-suscribing
+ cmake-utils_src_make -j1 tests
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/sys-cluster/hpx/metadata.xml b/sys-cluster/hpx/metadata.xml
index 47f4daf83..d32e59b0f 100644
--- a/sys-cluster/hpx/metadata.xml
+++ b/sys-cluster/hpx/metadata.xml
@@ -1,17 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>cluster</herd>
- <longdescription>
- HPX (High Performance ParalleX) is a general C++ runtime system
- for parallel and distributed applications of any scale. It is the
- first freely available, open source, feature-complete, modular,
- and performance oriented implementation of the ParalleX execution
- model. HPX is targeted at conventional architectures and,
- currently, Linux based systems, such as SMP nodes and conventional
- clusters.
- </longdescription>
- <maintainer>
- <email>gentryx@gmx.de</email>
- </maintainer>
+<herd>cluster</herd>
+<longdescription>
+ HPX (High Performance ParalleX) is a general C++ runtime system
+ for parallel and distributed applications of any scale. It is the
+ first freely available, open source, feature-complete, modular,
+ and performance oriented implementation of the ParalleX execution
+ model. HPX is targeted at conventional architectures and,
+ currently, Linux based systems, such as SMP nodes and conventional
+ clusters.
+</longdescription>
+<maintainer>
+ <email>gentryx@gmx.de</email>
+</maintainer>
</pkgmetadata>