diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2016-07-20 17:07:04 -0600 |
---|---|---|
committer | Christoph Junghans <ottxor@gentoo.org> | 2016-07-20 17:07:49 -0600 |
commit | 36ce5c81267a2880fd40e5d8e14c2c0122480083 (patch) | |
tree | ab21bafbec682a1734f5a7e04bf5b9be4096319f /sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild | |
parent | mate-extra/mate-screensaver: Drop old (diff) | |
download | gentoo-36ce5c81267a2880fd40e5d8e14c2c0122480083.tar.gz gentoo-36ce5c81267a2880fd40e5d8e14c2c0122480083.tar.bz2 gentoo-36ce5c81267a2880fd40e5d8e14c2c0122480083.zip |
sci-physics/hoomd-blue: make 2.0.1 work without git
Package-Manager: portage-2.2.28
Diffstat (limited to 'sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild')
-rw-r--r-- | sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild b/sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild index e4dde6f1ccb2..30fe9f36fa21 100644 --- a/sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild +++ b/sci-physics/hoomd-blue/hoomd-blue-2.0.1.ebuild @@ -7,50 +7,50 @@ EAPI=6 PYTHON_COMPAT=( python{2_7,3_3,3_4} ) CMAKE_MAKEFILE_GENERATOR="ninja" -inherit cmake-utils cuda flag-o-matic git-r3 python-single-r1 +inherit cmake-utils cuda flag-o-matic python-single-r1 DESCRIPTION="a general-purpose particle simulation toolkit" HOMEPAGE="http://codeblue.umich.edu/hoomd-blue/" EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git" -if [[ ${PV} != 9999 ]]; then - EGIT_COMMIT="v${PV}" +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://bitbucket.org/glotzer/${PN}.git" + inherit git-r3 +else + inherit vcs-snapshot + GETTAR_VER=0.5.0 + SRC_URI="https://bitbucket.org/glotzer/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2 + https://bitbucket.org/glotzer/libgetar/get/v${GETTAR_VER}.tar.bz2 -> libgetar-${GETTAR_VER}.tar.bz2" PATCHES=( "${FILESDIR}/${P}-cxx11.patch" ) + KEYWORDS="~amd64" fi LICENSE="hoomd-blue" SLOT="0" -IUSE="cuda test mpi +zlib" +IUSE="cuda test mpi" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} mpi? ( virtual/mpi ) cuda? ( dev-util/nvidia-cuda-sdk ) - zlib? ( sys-libs/zlib ) dev-libs/boost:=[threads,python,mpi,${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" - #doc? ( app-doc/doxygen )" src_prepare() { + [[ ${PV} = 9999 ]] || mv ../libgetar-${GETTAR_VER}/* hoomd/extern/libgetar || die use cuda && cuda_src_prepare - cmake-utils_src_prepare } src_configure() { local mycmakeargs=( -DENABLE_MPI=$(usex mpi) - -DENABLE_DOXYGEN=OFF #$( -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_install() { - #use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/hoomd-*doc* ) - cmake-utils_src_install -} |