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$ |
---|
3 | PortSystem 1.0 |
---|
4 | name whatcheck |
---|
5 | version 8.0 |
---|
6 | categories science |
---|
7 | maintainers bromo.med.uc.edu:howarth |
---|
8 | description Protein verification tools from WhatIf |
---|
9 | homepage http://swift.cmbi.ru.nl/gv/whatcheck/ |
---|
10 | platforms darwin |
---|
11 | master_sites http://swift.cmbi.ru.nl/gv/whatcheck/ \ |
---|
12 | ftp://ftp.cmbi.kun.nl/pub/molbio/software/ |
---|
13 | distfiles whatcheck.tar.bz2 \ |
---|
14 | dsspcmbi.zip |
---|
15 | checksums whatcheck.tar.bz2 md5 66f4398ac459a1742128209c5285de03 \ |
---|
16 | sha1 dee7eeb6fba60749607eadda46cf89766096098d \ |
---|
17 | rmd160 ac21b18829cd33557eec641610d8e9795e769561 \ |
---|
18 | dsspcmbi.zip md5 718779c6c5469429994a2ca284777050 \ |
---|
19 | sha1 de348eea9be2d67ec33f9dc6346fd966e4bb538a \ |
---|
20 | rmd160 f65caa60735b2996b6f2ea80108ade8e88f60458 |
---|
21 | |
---|
22 | worksrcdir ${name} |
---|
23 | depends_lib port:gcc44 port:xfig |
---|
24 | patchfiles whatcheck.patch |
---|
25 | use_configure no |
---|
26 | use_bzip2 yes |
---|
27 | extract.only whatcheck.tar.bz2 |
---|
28 | |
---|
29 | post-patch { |
---|
30 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile_whatcheck \ |
---|
31 | ${worksrcpath}/WHATIF.FIG \ |
---|
32 | ${worksrcpath}/DO_WHATCHECK.COM |
---|
33 | reinplace "s|-O0|-O3|g" ${worksrcpath}/Makefile_whatcheck |
---|
34 | system "cd ${worksrcpath} && rm -fr *.o dbdata/fonts/.svn" |
---|
35 | system "cd ${worksrcpath} && rm -fr dssp && unzip ${distpath}/dsspcmbi.zip" |
---|
36 | reinplace "s|-static||g" ${worksrcpath}/dssp/DsspCompileGCC |
---|
37 | reinplace "s|-O|-O3|g" ${worksrcpath}/dssp/DsspCompileGCC |
---|
38 | if {"little" != ${os.endian}} { |
---|
39 | reinplace "s|gfortran-mp-4.4|gfortran-mp-4.4 -fconvert=little-endian|g" ${worksrcpath}/Makefile_whatcheck |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | build { |
---|
44 | system "cd ${worksrcpath} && touch * && make -f Makefile_whatcheck" |
---|
45 | system "cd ${worksrcpath}/scatter && export FC=gfortran-mp-4.4 && make clean && make" |
---|
46 | system "cd ${worksrcpath}/dssp && ./DsspCompileGCC" |
---|
47 | } |
---|
48 | |
---|
49 | destroot { |
---|
50 | file mkdir ${destroot}${prefix}/share/whatcheck/dssp |
---|
51 | copy ${worksrcpath}/dssp/dsspcmbi ${destroot}${prefix}/share/whatcheck/dssp/DSSP.EXE |
---|
52 | |
---|
53 | foreach d {whatcheck WHATIF.FIG supertab.sty DO_WHATCHECK.COM ascdata bindata dbdata nqual qualty} { |
---|
54 | copy ${worksrcpath}/${d} ${destroot}${prefix}/share/whatcheck |
---|
55 | } |
---|
56 | |
---|
57 | file mkdir ${destroot}${prefix}/share/whatcheck/scatter |
---|
58 | foreach d {scatter SCATTER.fig scatter.html} { |
---|
59 | copy ${worksrcpath}/scatter/${d} ${destroot}${prefix}/share/whatcheck/scatter |
---|
60 | } |
---|
61 | |
---|
62 | ln -s ${prefix}/bin/fig2dev ${destroot}${prefix}/share/whatcheck/scatter/fig2dev |
---|
63 | ln -s ${prefix}/share/whatcheck/DO_WHATCHECK.COM ${destroot}${prefix}/bin/whatcheck |
---|
64 | ln -s ${prefix}/share/whatcheck/dssp/DSSP.EXE ${destroot}${prefix}/bin/dssp |
---|
65 | } |
---|
66 | |
---|