# $Id: Portfile 88302 2011-12-27 18:29:59Z gwright@macports.org $

PortSystem 1.0

name		lanHEP
set shortname	lhep
version		3.1.5
set shortversion	315
categories	science
maintainers	nomaintainer
platforms	darwin
license		Restrictive/nondistributable
description	Automatic Feynman rule generation
long_description \
	The LanHEP program for Feynman rules generation in momentum	\
	representation is presented. It reads the Lagrangian written in	\
	the compact form close to one used in publications. It means	\
	that Lagrangian terms can be written with summation over	\
	indices of broken symmetries and using special symbols for	\
	complicated expressions, such as covariant derivative and	\
	strength tensor for gauge fields. The output is Feynman rules	\
	in terms of physical fields and independent parameters.
homepage	http://theory.sinp.msu.ru/~semenov/lanhep.html
master_sites	http://theory.sinp.msu.ru/~semenov/
extract.suffix	.tgz
distfiles	${shortname}${shortversion}${extract.suffix}
distname	lanhep${shortversion}

checksums	md5     cdd84731bd34e6b2b534dd560e02792a \
		sha1    5469899da20645a14f0a2d1a0e18149fa46c33a9 \
		rmd160  779f8226a7da7977c671ecd7e17d38f55651fbf5

depends_build	port:gcc43

use_parallel_build	no
use_configure	no

build.env-append	FC=gfortran-mp-4.3
build.target	{ }

destroot {
	file copy ${workpath}/${distname}/lhep ${destroot}${prefix}/bin
	file mkdir ${destroot}${prefix}/share/${name}
	file copy ${workpath}/${distname}/mdl ${destroot}${prefix}/share/${name}/mdl
}
