source: trunk/dports/science/pythia/Portfile

Last change on this file was 140075, checked in by mf2k@…, 23 months ago

pythia root5: Ports abandoned by mattiafrancescomoro. (#47570)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 140075 2015-09-08 15:23:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pythia
7version             8.185
8set my_version      [strsed ${version} g/\\.//]
9categories          science
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-2.1
13description         Generator of high-energy physics events
14long_description    PYTHIA is a program for the generation of high-energy physics events, \
15                    i.e. for the description of collisions at high energies between elementary particles \
16                    such as e+, e-, p and pbar in various combinations. It contains theory and models for \
17                    a number of physics aspects, including hard and soft interactions, parton distributions, \
18                    initial- and final-state parton showers, multiple interactions, fragmentation and decay. \
19                    It is largely based on original research, but also borrows many formulae and other \
20                    knowledge from the literature.
21
22homepage            http://home.thep.lu.se/~torbjorn/Pythia.html
23master_sites        http://home.thep.lu.se/~torbjorn/pythia8/
24
25distname            ${name}${my_version}
26extract.suffix      .tgz
27
28checksums           rmd160  9189d5ade9328206ea5a7d872871d1f590258e2e \
29                    sha256  6dfb623346bb5313d9fe527ce95c3daf26f5d6a595bea84b898d28edd8bd28f7
30
31universal_variant   no
32
33depends_lib         port:zlib \
34                    port:boost
35
36configure.args      --enable-shared \
37                    --with-boost=${prefix} \
38                    --with-zlib=${prefix}/lib
39
40# g++-4.2 on 10.6 doesn't know about -stdlib (#44145)
41# build.args        CC=${configure.cc} CXX="${configure.cxx} -stdlib=${configure.cxx_stdlib}"
42pre-configure {
43    if { ${configure.cxx_stdlib} eq "libc++" } {
44        build.args  CC=${configure.cc} CXX="${configure.cxx} -stdlib=${configure.cxx_stdlib}"
45    } else {
46        build.args  CC=${configure.cc} CXX=${configure.cxx}
47    }
48}
49
50post-build {
51    foreach dylib {libpythia8.dylib liblhapdfdummy.dylib} {
52        system "install_name_tool -id ${prefix}/lib/${dylib} ${worksrcpath}/lib/${dylib}"
53    }
54}
55
56destroot {
57    xinstall -W ${worksrcpath}/lib libpythia8.dylib liblhapdfdummy.dylib ${destroot}${prefix}/lib
58    xinstall -W ${worksrcpath}/lib/archive liblhapdfdummy.a libpythia8.a ${destroot}${prefix}/lib
59    file mkdir ${destroot}${prefix}/include/${name}/Pythia8/
60    eval xinstall -m 644 [glob ${worksrcpath}/include/Pythia8/*.h] ${destroot}${prefix}/include/${name}/Pythia8/
61    file mkdir ${destroot}${prefix}/share/doc/${name}/xmldoc/
62    eval xinstall -m 644 [glob ${worksrcpath}/xmldoc/*] ${destroot}${prefix}/share/doc/${name}/xmldoc/
63}
64
65livecheck.type      regex
66livecheck.version   ${my_version}
67livecheck.url       [lindex ${master_sites} 0]
68livecheck.regex     ${name}(\\d+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.