source: trunk/dports/science/whatcheck/Portfile

Last change on this file was 145075, checked in by dstrubbe@…, 20 months ago

whatcheck: Use compilers portgroup for Fortran variants. Give some info on license. Fix livecheck. Add openmaintainer since maintainer is not a committer. (Maintainer timeout, #50368)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 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 145075 2016-01-25 16:05:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6
7name                whatcheck
8version             8.1
9revision            1
10categories          science
11# license conditions: http://swift.cmbi.ru.nl/gv/whatcheck/
12license             Restrictive
13maintainers         gmail.com:howarth.at.macports openmaintainer
14
15description         Protein verification tools from WhatIf
16long_description    ${description}
17
18homepage            http://swift.cmbi.ru.nl/gv/whatcheck/
19platforms           darwin
20master_sites        ${homepage}:whatcheck \
21                    ftp://ftp.cmbi.ru.nl/pub/molbio/software/old-dssp/:dsspcmbi
22distfiles           whatcheck.tar.bz2:whatcheck \
23                    dsspcmbi.zip:dsspcmbi
24
25checksums           whatcheck.tar.bz2 \
26                    sha1    1ea39eb695218643f26e80315a8d560f57b91de5 \
27                    rmd160  a6d6a0abe2fc378ae795675719f36a7f4d79817e \
28                    dsspcmbi.zip \
29                    sha1    880538dd36cc29918584f92dbc4e094c76ca3959 \
30                    rmd160  e18d010308ae2252135c72988247518cf44a8841
31
32dist_subdir         ${name}/${version}
33worksrcdir          ${name}
34depends_lib         port:xfig
35patchfiles          whatcheck.patch
36use_configure       no
37use_bzip2           yes
38extract.only        whatcheck.tar.bz2
39
40compilers.choose    f77
41compilers.setup     require_fortran
42
43post-extract {
44    system "cd ${worksrcpath} && rm -fr *.o dbdata/fonts/.svn"
45    system "cd ${worksrcpath} && rm -fr dssp && unzip ${distpath}/dsspcmbi.zip"
46}
47
48post-patch {
49    reinplace  "s|@PREFIX@|${prefix}|g"     ${worksrcpath}/Makefile_whatcheck \
50                                            ${worksrcpath}/WHATIF.FIG \
51                                            ${worksrcpath}/DO_WHATCHECK.COM
52    if {"little" != ${os.endian}} {
53        configure.f77-append -fconvert=little-endian
54    }
55    reinplace "s|@F77@|${configure.f77}|g"  ${worksrcpath}/Makefile_whatcheck \
56                                            ${worksrcpath}/scatter/Makefile
57}
58
59build {
60    system "cd ${worksrcpath}/scatter && make clean"
61    system "cd ${worksrcpath} && touch * && make -f Makefile_whatcheck CC=${configure.cc}"
62    system "cd ${worksrcpath}/dssp && CC=${configure.cc} ./DsspCompileGCC"
63}
64
65destroot {
66    file mkdir ${destroot}${prefix}/share/whatcheck/dssp
67    copy ${worksrcpath}/dssp/dsspcmbi ${destroot}${prefix}/share/whatcheck/dssp/DSSP.EXE
68
69    foreach d {whatcheck WHATIF.FIG supertab.sty DO_WHATCHECK.COM ascdata bindata dbdata nqual qualty} {
70        copy ${worksrcpath}/${d} ${destroot}${prefix}/share/whatcheck
71    }
72
73    file mkdir ${destroot}${prefix}/share/whatcheck/scatter
74    foreach d {scatter SCATTER.fig scatter.html} {
75        copy ${worksrcpath}/scatter/${d} ${destroot}${prefix}/share/whatcheck/scatter
76    }
77
78    ln -s ${prefix}/bin/fig2dev ${destroot}${prefix}/share/whatcheck/scatter/fig2dev
79    ln -s ${prefix}/share/whatcheck/DO_WHATCHECK.COM  ${destroot}${prefix}/bin/whatcheck
80    ln -s ${prefix}/share/whatcheck/dssp/DSSP.EXE ${destroot}${prefix}/bin/dssp
81}
82
83livecheck.type      regex
84livecheck.url       ${homepage}WCHECK_misc.html
85livecheck.regex     {Version ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.