source: trunk/dports/science/lanHEP/Portfile

Last change on this file was 144294, checked in by dstrubbe@…, 23 months ago

lanHEP: Use compilers portgroup for Fortran variants (default C compiler is now used). Handle stealth update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144294 2016-01-06 01:48:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6
7name                lanHEP
8version             3.1.7
9revision            1
10categories          science
11maintainers         nomaintainer
12platforms           darwin
13license             Restrictive/nondistributable
14
15description         Automatic Feynman rule generation
16long_description    The LanHEP program for Feynman rules generation in \
17                    momentum representation is presented. It reads the \
18                    Lagrangian written in the compact form close to one \
19                    used in publications. It means that Lagrangian terms \
20                    can be written with summation over indices of broken \
21                    symmetries and using special symbols for complicated \
22                    expressions, such as covariant derivative and \
23                    strength tensor for gauge fields. The output is \
24                    Feynman rules in terms of physical fields and \
25                    independent parameters.
26homepage            http://theory.sinp.msu.ru/~semenov/lanhep.html
27
28set short_version [join [split ${version} .] {}]
29
30master_sites        http://theory.sinp.msu.ru/~semenov/
31distname            lhep${short_version}
32# stealth update, remove this with next proper update
33dist_subdir         ${name}/${version}_1
34extract.suffix      .tgz
35
36checksums           rmd160  68b5c4df1c7664b81217a076b431a953e1d3e0a9 \
37                    sha256  97e458626da9d9307a0189a20574fe671e384cf5143f5fa5c5ed4faf753f3fed
38
39worksrcdir          lanhep${short_version}
40
41use_configure       no
42
43compilers.choose    fc
44compilers.setup     require_fortran
45
46pre-build {
47    build.args      CC=${configure.cc} \
48                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
49                    LD=${configure.cc} \
50                    FC=${configure.fc} \
51                    FFLAGS="${configure.fflags} [get_canonical_archflags fc]"
52}
53build.target
54use_parallel_build  no
55
56destroot {
57    xinstall ${worksrcpath}/lhep ${destroot}${prefix}/bin
58
59    xinstall -m 644 ${worksrcpath}/SLHAplus/libSLHAplus.a \
60        ${destroot}${prefix}/lib
61    xinstall -m 644 -W ${worksrcpath}/SLHAplus SLHAplus.h SLHAplus.fh \
62        ${destroot}${prefix}/include
63
64    set share ${destroot}${prefix}/share
65    xinstall -d ${share}/${name}
66    copy ${worksrcpath}/mdl ${share}/${name}/mdl
67    xinstall -d ${share}/doc/${name}
68    xinstall -m 644 -W ${worksrcpath}/manuals man30.pdf man31.pdf \
69        ${share}/doc/${name}
70}
Note: See TracBrowser for help on using the repository browser.