source: trunk/dports/science/rasmol/Portfile

Last change on this file was 127154, checked in by ryandesign@…, 3 years ago

rasmol: rewrite the patch so that it can be applied in all cases, rather than being conditional on the build_arch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 127154 2014-10-22 02:19:00Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                rasmol
6version             2.7.4.2
7set releasedate     10Apr08
8description         Molecular graphics visualisation tool
9categories          science graphics chemistry
10platforms           darwin
11maintainers         nomaintainer
12license             {GPL-2 RASLIC}
13homepage            http://www.rasmol.org/
14
15distname            RasMol_${version}
16master_sites        ${homepage}software/ \
17                    http://www.bernstein-plus-sons.com/software/
18checksums           md5 80e4514c2522101a65fa109b85f748d5 \
19                    sha1 2e8d15f430971379ad5d1930f3ecd4c0f7ede3f5 \
20                    rmd160 c8480e36ca758601cc2341049ff2ca72ee64c629
21
22depends_lib         port:xorg-libXi
23
24patchfiles          patch-Imakefile.diff \
25                    patch-rasmol.h.diff
26
27post-patch {
28    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Imakefile
29}
30
31worksrcdir          ${distname}_${releasedate}/src
32use_xmkmf           yes
33build.target        rasmol
34destroot {
35    xinstall -W ${worksrcpath}/../doc rasmol.1.gz ${destroot}${prefix}/share/man/man1
36    xinstall -W ${worksrcpath} rasmol ${destroot}${prefix}/bin
37    xinstall -d ${destroot}${prefix}/share/${name}
38    delete ${worksrcpath}/../data/CVS
39    copy ${worksrcpath}/../data ${destroot}${prefix}/share/${name}
40    xinstall -d ${destroot}${prefix}/share/doc/${name}
41    delete ${worksrcpath}/../ChangeLog/CVS
42    delete ${worksrcpath}/../html_graphics/CVS
43    foreach f {ChangeLog ChangeLog.html ChangeLog.txt GPL NOTICE PROJECTS RASLIC README.html README.shtml README.txt TODO.html TODO.txt history.html html_graphics} {
44        copy ${worksrcpath}/../${f} ${destroot}${prefix}/share/doc/${name}
45    }
46    foreach f {Licenses.txt NOTICE.html manualA4.pdf.gz manualUS.pdf.gz rasmol.doc rasmol.html refcardA4.pdf.gz refcardUS.pdf.gz} {
47        copy ${worksrcpath}/../doc/${f} ${destroot}${prefix}/share/doc/${name}
48    }
49    xinstall -W ${worksrcpath}/../doc rasmol.hlp ${destroot}${prefix}/share/${name}
50 }
51 
52long_description \
53RasMol is a molecular graphics program  intended  for  the \
54visualisation  of  proteins,  nucleic  acids  and  small \
55molecules.  The program is aimed at display, teaching  and \
56generation of publication quality images.
Note: See TracBrowser for help on using the repository browser.