source: trunk/dports/science/jmol/Portfile

Last change on this file was 151982, checked in by khindenburg@…, 11 months ago

jmol: update to 14.6.1_2016.08.11 maintainer #52100

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 151982 2016-08-25 21:14:00Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                jmol
6version             14.6.1_2016.08.11
7set release         [lindex [split ${version} _] 0 ]
8set branch          [join [lrange [split ${release} .] 0 1] .]
9categories          science
10platforms           darwin
11maintainers         web.de:p.bro openmaintainer
12supported_archs     noarch
13
14description         An open-source Java viewer for chemical structures in 3D
15long_description    Jmol is a free, open source molecule viewer for \
16                    students, educators, and researchers in chemistry and \
17                    biochemistry. \
18                    \
19                    This port only installs the Jmol application, not the \
20                    applet or developer version. If you want to use it, \
21                    please download it from the Jmol homepage.
22
23license             LGPL-2.1+
24homepage            http://jmol.sourceforge.net/
25master_sites        sourceforge:project/jmol/Jmol/Version%20${branch}/Version%20${release}
26
27distname            Jmol-${version}-binary
28
29checksums           rmd160  fdd6741c381ae98ed28f4981e288fc7e6c583cd6 \
30                    sha256  53cc93949c0384d7a07127567e68b6503eb31b5224c742863f3007f3ee99bd85
31
32worksrcdir          ${name}-${version}
33
34depends_run         bin:java:kaffe
35
36use_configure       no
37
38post-patch {
39    reinplace "s|/usr/share/jmol/|${prefix}/share/java/jmol/|g" \
40        ${worksrcpath}/jmol
41}
42
43build {}
44
45destroot {
46    # install the jmol script:
47    xinstall ${worksrcpath}/jmol ${destroot}${prefix}/bin
48    # install the jmol java files:
49    xinstall -d ${destroot}${prefix}/share/java/jmol
50    foreach jar [glob ${worksrcpath}/*.jar] {
51        xinstall $jar ${destroot}${prefix}/share/java/jmol
52    }
53    # install doc files:
54    xinstall -d ${destroot}${prefix}/share/doc/jmol-${version}
55    foreach doc {CHANGES.txt COPYRIGHT.txt LEAME.txt LICENSE.txt README.txt} {
56        xinstall ${worksrcpath}/$doc \
57                 ${destroot}${prefix}/share/doc/jmol-${version}
58    }
59}
60
61livecheck.type      regex
62livecheck.url       http://sourceforge.net/projects/jmol/files/
63livecheck.regex     {Download Jmol-(\d+[0-9a-zA-Z._]+)}
Note: See TracBrowser for help on using the repository browser.