source: trunk/dports/science/gpp4/Portfile

Last change on this file was 145977, checked in by dstrubbe@…, 19 months ago

gpp4: mmdb needs to be a lib dependency also when a Fortran variant is used.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 145977 2016-02-23 17:07:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6
7name                gpp4
8version             1.3.1
9revision            1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          science
12maintainers         fastmail.net:konrad.hinsen openmaintainer
13license             LGPL-3+
14
15description         macromolecular crystallography library
16long_description    The goal of this project -- named gpp4 to \
17                    distinguish it from CCP4 -- is to provide a \
18                    drop-in replacement for the CCP4 libraries, that \
19                    as carefully as possible implements the current \
20                    CCP4 library interface, while not requiring the \
21                    whole CCP4 package to be installed. \
22                    Select a Fortran variant to build the Fortran interface library.
23
24homepage            https://launchpad.net/gpp4
25platforms           darwin
26
27master_sites        http://launchpad.net/gpp4/${branch}/${version}/+download/
28
29checksums           md5 e608519594f430c78be3c53e8e26a260 \
30                    sha256 ad18b8771f68b55bcf40a59f2be5489daf6bd97934a181602de7f44fbe27776f
31
32depends_build       port:mmdb port:pkgconfig
33
34compilers.choose    f77
35compilers.setup     
36
37# README says: "To compile the Fortran library, it is required that the MMDB library is installed."
38# However, configure requires it regardless, so it must be a build dependency always, but is only
39# needed as a lib dependency when the Fortran interface is built.
40if {[fortran_variant_isset]} {
41    depends_lib-append   port:mmdb
42}
43
44pre-fetch {
45    if {![fortran_variant_isset]} {
46        configure.args-append  --without-fortran-api F77=no
47    }
48}
49
50universal_variant no
51
52livecheck.type      regex
53livecheck.url       ${homepage}
54livecheck.regex     Latest version is (\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.