diff options
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/reduze/ChangeLog | 12 | ||||
-rw-r--r-- | sci-physics/reduze/metadata.xml | 2 | ||||
-rw-r--r-- | sci-physics/reduze/reduze-2.0.8.ebuild | 69 |
3 files changed, 79 insertions, 4 deletions
diff --git a/sci-physics/reduze/ChangeLog b/sci-physics/reduze/ChangeLog index 7ea446caf1e2..d34f3d26cc3d 100644 --- a/sci-physics/reduze/ChangeLog +++ b/sci-physics/reduze/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-physics/reduze -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/reduze/ChangeLog,v 1.2 2011/01/17 15:03:22 grozin Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/reduze/ChangeLog,v 1.3 2012/08/08 05:29:50 bicatali Exp $ + +*reduze-2.0.8 (08 Aug 2012) + + 08 Aug 2012; Sébastien Fabbro <bicatali@gentoo.org> +reduze-2.0.8.ebuild, + metadata.xml: + Version bump. Now use cmake, rewritten from scratch and respect upstream + options 17 Jan 2011; Andrey Grozin <grozin@gentoo.org> reduze-1.2.ebuild: Downgrade to EAPI 3 @@ -10,4 +17,3 @@ 16 Jan 2011; Andrey Grozin <grozin@gentoo.org> +reduze-1.2.ebuild, +metadata.xml: Initial import - diff --git a/sci-physics/reduze/metadata.xml b/sci-physics/reduze/metadata.xml index 9e30e0081afb..ae17f7db132d 100644 --- a/sci-physics/reduze/metadata.xml +++ b/sci-physics/reduze/metadata.xml @@ -7,6 +7,6 @@ <name>Andrey Grozin</name> </maintainer> <longdescription lang="en"> -A program for reducing Feynman integrals + A program for reducing Feynman integrals </longdescription> </pkgmetadata> diff --git a/sci-physics/reduze/reduze-2.0.8.ebuild b/sci-physics/reduze/reduze-2.0.8.ebuild new file mode 100644 index 000000000000..06c641058602 --- /dev/null +++ b/sci-physics/reduze/reduze-2.0.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/reduze/reduze-2.0.8.ebuild,v 1.1 2012/08/08 05:29:50 bicatali Exp $ + +EAPI=4 + +inherit cmake-utils versionator + +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 and db fix + local ver=$(best_version sys-libs/db) + ver=$(get_version_component_range 1-2 "${ver/*db-/}") + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + -e "s:db4:db${ver}: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/* +} |