# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils DESCRIPTION="Toolkit for High Energy Physics Event Generation" HOMEPAGE="http://home.thep.lu.se/ThePEG/" SRC_URI="http://www.hepforge.org/archive/thepeg/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="hepmc java lhapdf zlib" DEPEND="sci-libs/gsl dev-lang/perl hepmc? ( sci-physics/hepmc ) java? ( virtual/jre ) lhapdf? ( sci-physics/lhapdf ) zlib? ( sys-libs/zlib ) " RDEPEND="${DEPEND}" pkg_setup() { echo elog "There is an extra option on package Rivet not yet in Sunrise (nor Gentoo):" elog "You can use the env variable EXTRA_ECONF variable for this:" elog "EXTRA_ECONF=\"--with-rivet=DIR\"" elog "where DIR - location of Rivet installation" echo } src_configure() { econf \ $(usex hepmc --with-hepmc= --without-hepmc "${EPREFIX}/usr" ) \ $(usex java --with-javagui= --without-javagui "${EPREFIX}/usr" ) \ $(usex lhapdf --with-LHAPDF= --without-LHAPDF "${EPREFIX}/usr" ) \ $(usex zlib --with-zlib= --without-zlib "${EPREFIX}/usr" ) }