source: trunk/dports/science/clhep/Portfile @ 120006

Last change on this file since 120006 was 120006, checked in by mojca@…, 6 years ago

clhep: upgrade to version 2.1.4.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 120006 2014-05-13 00:03:59Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           compiler_blacklist_versions 1.0
7
8name                clhep
9version             2.1.4.2
10categories          science
11maintainers         mojca openmaintainer
12license             LGPL-3
13
14description         A Class Library for High Energy Physics
15long_description    A Class Library for High Energy Physics
16homepage            http://www.cern.ch/clhep
17platforms           darwin
18extract.suffix      .tgz
19master_sites        http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/
20#                   http://git.cern.ch/pubweb/CLHEP.git
21
22checksums           rmd160  73daadddb9541f5ad0b336a42159c675d7ab5b20 \
23                    sha256  ffd72997fb921fa7ef770c40c6bb12f603aa4761e642dc577160d1ee2aa695f0
24
25worksrcdir          ${version}/CLHEP
26
27configure.dir       ${workpath}/build
28build.dir           ${configure.dir}
29
30post-extract {
31    file mkdir ${configure.dir}
32}
33
34configure.post_args ${worksrcpath}
35
36# TODO
37# the flag could theoretically be replaced by -isystem${prefix}/include,
38# but it's not even needed, so let's simply delete it
39# (the build fails because it finds headers in ${prefix} before those in the build dir)
40# the best way to fix these type of problems would probably be
41# to handle this specific flag differently in the cmake PortGroup
42configure.cppflags-delete -I${prefix}/include
43
44post-build {
45    fs-traverse file ${build.dir} {
46        if {[string match {*-config} ${file}]} {
47            reinplace -E {s|-arch [^ ]+||g} ${file}
48        }
49    }
50}
51
52livecheck.type      regex
53livecheck.url       http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/
54livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.