diff options
author | Andrey Grozin <grozin@gentoo.org> | 2013-11-12 15:08:47 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2013-11-12 15:08:47 +0000 |
commit | 0a456a0367124385d8c17d604036768846cfdec2 (patch) | |
tree | 699408732ea0e8c361a2cbcd66e38f440da49540 /sci-physics/reduze/reduze-2.0.9.ebuild | |
parent | Masked berkdb on sci-physics/reduze (needs masked db-6.0). (diff) | |
download | gentoo-2-0a456a0367124385d8c17d604036768846cfdec2.tar.gz gentoo-2-0a456a0367124385d8c17d604036768846cfdec2.tar.bz2 gentoo-2-0a456a0367124385d8c17d604036768846cfdec2.zip |
Version bump; USE flag berkdb masked. Closing #432356.
(Portage version: 2.2.7/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
Diffstat (limited to 'sci-physics/reduze/reduze-2.0.9.ebuild')
-rw-r--r-- | sci-physics/reduze/reduze-2.0.9.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-physics/reduze/reduze-2.0.9.ebuild b/sci-physics/reduze/reduze-2.0.9.ebuild new file mode 100644 index 000000000000..87d43a9856cd --- /dev/null +++ b/sci-physics/reduze/reduze-2.0.9.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/reduze/reduze-2.0.9.ebuild,v 1.1 2013/11/12 15:08:47 grozin Exp $ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="Program for reducing Feynman integrals" +HOMEPAGE="http://reduze.hepforge.org/" +SRC_URI="http://reduze.hepforge.org/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="berkdb doc mpi" + +RDEPEND=">=sci-mathematics/ginac-1.4.1 + berkdb? ( sys-libs/db[cxx] ) + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS=( ChangeLog README ) + +src_prepare() { + # gentoo doc directory + sed -i \ + -e "s:share/reduze:share/doc/${PF}:g" \ + CMakeLists.txt || die + use doc || sed -i -e '/share/d' CMakeLists.txt + # prefix fix + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + reduze/CMakeLists.txt || die + + # remove bundled yaml-cpp + # no: it does not build. is it patched? + # sed -i -e '/add_subdirectory ("yaml")/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_HASH_TABLE=ON + $(cmake-utils_use berkdb USE_DATABASE) + $(cmake-utils_use mpi USE_MPI) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile all $(use doc && echo doc) +} + +src_test() { + cd "${CMAKE_BUILD_DIR}" + emake check + use mpi && emake check_mpi +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r "${CMAKE_BUILD_DIR}"/doc/code/html/* +} |