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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EAA0B13832E for ; Sat, 23 Jul 2016 23:12:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5EDC4E08C1; Sat, 23 Jul 2016 23:12:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08D04E08C1 for ; Sat, 23 Jul 2016 23:12:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1163340E05 for ; Sat, 23 Jul 2016 23:12:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7D1D7CF for ; Sat, 23 Jul 2016 23:12:26 +0000 (UTC) From: "Christoph Junghans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Junghans" Message-ID: <1469315534.e76c985ed55cdc692b3b49c508eee8d2b5fdfa07.ottxor@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hoomd-blue/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-physics/hoomd-blue/hoomd-blue-9999.ebuild X-VCS-Directories: sci-physics/hoomd-blue/ X-VCS-Committer: ottxor X-VCS-Committer-Name: Christoph Junghans X-VCS-Revision: e76c985ed55cdc692b3b49c508eee8d2b5fdfa07 X-VCS-Branch: master Date: Sat, 23 Jul 2016 23:12:26 +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-Archives-Salt: ed9b94de-4ca5-4d92-bcd8-077752c2ada5 X-Archives-Hash: fea25bdcd5314fe12886503542b01f7f commit: e76c985ed55cdc692b3b49c508eee8d2b5fdfa07 Author: Christoph Junghans gentoo org> AuthorDate: Sat Jul 23 23:11:57 2016 +0000 Commit: Christoph Junghans gentoo org> CommitDate: Sat Jul 23 23:12:14 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e76c985e sci-physics/hoomd-blue: add multi-py build Package-Manager: portage-2.2.28 sci-physics/hoomd-blue/hoomd-blue-9999.ebuild | 38 ++++++++++++++++++++------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild index e126c82..1240462 100644 --- a/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild +++ b/sci-physics/hoomd-blue/hoomd-blue-9999.ebuild @@ -7,7 +7,7 @@ EAPI=6 PYTHON_COMPAT=( python{2_7,3_3,3_4} ) CMAKE_MAKEFILE_GENERATOR="ninja" -inherit cmake-utils cuda flag-o-matic python-single-r1 +inherit cmake-utils cuda flag-o-matic python-r1 DESCRIPTION="a general-purpose particle simulation toolkit" HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/" @@ -40,16 +40,34 @@ src_prepare() { [[ ${PV} = 9999 ]] || mv ../libgetar-${GETTAR_VER}/* hoomd/extern/libgetar || die use cuda && cuda_src_prepare cmake-utils_src_prepare + + #https://bitbucket.org/glotzer/hoomd-blue/issues/173 + append-cxxflags -std=gnu++11 } src_configure() { - local mycmakeargs=( - -DENABLE_MPI=$(usex mpi) - -DENABLE_CUDA=$(usex cuda) - -DBUILD_TESTING=$(usex test) - -DPYTHON_EXECUTABLE="${PYTHON}" - -DCMAKE_INSTALL_PREFIX=$(python_get_sitedir) - -DUPDATE_SUBMODULES=OFF - ) - cmake-utils_src_configure + src_configure_internal() { + local mycmakeargs=( + -DENABLE_MPI=$(usex mpi) + -DENABLE_CUDA=$(usex cuda) + -DBUILD_TESTING=$(usex test) + -DUPDATE_SUBMODULES=OFF + -DPYTHON_EXECUTABLE="${PYTHON}" + -DCMAKE_INSTALL_PREFIX=$(python_get_sitedir) + ) + cmake-utils_src_configure + } + python_foreach_impl src_configure_internal +} + +src_compile() { + python_foreach_impl cmake-utils_src_make +} + +src_test() { + python_foreach_impl cmake-utils_src_test +} + +src_install() { + python_foreach_impl cmake-utils_src_install }