From 8a8c12042b2ac5f8895bee28c3dabae62c112e3f Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Fri, 9 Mar 2018 11:09:58 +0100 Subject: sci-physics/rivet: revision bump - Python scripts need to be adjusted to use Python 2 - Needs to be rebuilt if version of sci-physics/yoda changes Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- sci-physics/rivet/rivet-2.6.0-r1.ebuild | 80 +++++++++++++++++++++++++++++++++ sci-physics/rivet/rivet-2.6.0.ebuild | 78 -------------------------------- 2 files changed, 80 insertions(+), 78 deletions(-) create mode 100644 sci-physics/rivet/rivet-2.6.0-r1.ebuild delete mode 100644 sci-physics/rivet/rivet-2.6.0.ebuild (limited to 'sci-physics/rivet') diff --git a/sci-physics/rivet/rivet-2.6.0-r1.ebuild b/sci-physics/rivet/rivet-2.6.0-r1.ebuild new file mode 100644 index 000000000000..273705fb73d0 --- /dev/null +++ b/sci-physics/rivet/rivet-2.6.0-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools bash-completion-r1 python-single-r1 + +DESCRIPTION="Toolkit for validation of Monte Carlo HEP event generators" +HOMEPAGE="http://rivet.hepforge.org/" + +SRC_URI="http://www.hepforge.org/archive/${PN}/${P^}.tar.bz2 + doc? ( https://rivet.hepforge.org/trac/export/8a05acecd26c18f368f4b748da2d5aa2db46be6c/doc/refs.bib )" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc python static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/boost:= + sci-libs/gsl:= + sci-physics/fastjet[plugins] + sci-physics/hepmc + sci-physics/yoda:=[python] + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[latex,dot] ) + python? ( dev-python/cython[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_unpack() { + unpack "${P^}.tar.bz2" + + if use doc; then + # refs.bib is missing in tarball (reported upstream) + cp "${DISTDIR}"/refs.bib "${S}"/doc || die + fi +} + +src_prepare() { + default + + # Install rivet-manual.pdf to docdir intead of pkgdatadir + sed -i '/pkgdata_DATA = $(DOCS)/s/pkgdata/doc/' doc/Makefile.am || die + # Adjust shebangs of Python scripts + sed -i "s@^#! /usr/bin/env python@#!${EPREFIX}/usr/bin/python2@" bin/* || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable python pyext) \ + $(use_enable static-libs static) \ + $(use_enable doc doxygen) \ + $(use_enable doc pdfmanual) +} + +src_compile() { + use doc && export VARTEXFONTS="${T}/fonts" + default + + if use doc; then + doxygen Doxyfile || die + HTML_DOCS+=( doxy/html/. ) + fi +} + +src_install() { + default + newbashcomp "${ED%/}"/usr/share/Rivet/rivet-completion rivet + rm -f "${ED%/}"/usr/share/Rivet/rivet-completion || die +} diff --git a/sci-physics/rivet/rivet-2.6.0.ebuild b/sci-physics/rivet/rivet-2.6.0.ebuild deleted file mode 100644 index 91d10173c782..000000000000 --- a/sci-physics/rivet/rivet-2.6.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) - -inherit autotools bash-completion-r1 python-single-r1 - -DESCRIPTION="Toolkit for validation of Monte Carlo HEP event generators" -HOMEPAGE="http://rivet.hepforge.org/" - -SRC_URI="http://www.hepforge.org/archive/${PN}/${P^}.tar.bz2 - doc? ( https://rivet.hepforge.org/trac/export/8a05acecd26c18f368f4b748da2d5aa2db46be6c/doc/refs.bib )" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc python static-libs" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-libs/boost:= - sci-libs/gsl:= - sci-physics/fastjet[plugins] - sci-physics/hepmc - >=sci-physics/yoda-1.5.0[python] - python? ( ${PYTHON_DEPS} )" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen[latex,dot] ) - python? ( dev-python/cython[${PYTHON_USEDEP}] )" - -S="${WORKDIR}/${P^}" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_unpack() { - unpack "${P^}.tar.bz2" - - if use doc; then - # refs.bib is missing in tarball (reported upstream) - cp "${DISTDIR}"/refs.bib "${S}"/doc || die - fi -} - -src_prepare() { - default - - # Install rivet-manual.pdf to docdir intead of pkgdatadir - sed -i '/pkgdata_DATA = $(DOCS)/s/pkgdata/doc/' doc/Makefile.am || die - eautoreconf -} - -src_configure() { - econf \ - $(use_enable python pyext) \ - $(use_enable static-libs static) \ - $(use_enable doc doxygen) \ - $(use_enable doc pdfmanual) -} - -src_compile() { - use doc && export VARTEXFONTS="${T}/fonts" - default - - if use doc; then - doxygen Doxyfile || die - HTML_DOCS+=( doxy/html/. ) - fi -} - -src_install() { - default - newbashcomp "${ED%/}"/usr/share/Rivet/rivet-completion rivet - rm -f "${ED%/}"/usr/share/Rivet/rivet-completion || die -} -- cgit v1.2.3-65-gdbad