# $Id: Portfile 37000 2008-05-22 17:02:35Z simon@macports.org $ PortSystem 1.0 name jmol version 11.4.3 categories science platforms darwin maintainers simon openmaintainer description An open-source Java viewer for chemical structures in 3D long_description Jmol is a free, open source molecule viewer for \ students, educators, and researchers in chemistry and \ biochemistry. \ \ This port only installs the Jmol application, not the \ applet or developer version. If you want to use it, \ please download it from the Jmol homepage. homepage http://jmol.sourceforge.net/ master_sites sourceforge distname ${name}-${version}-binary checksums md5 032e43251270baeed4730a40ac686eb1 \ sha1 6b13983103e12b66883de8536311d7e9b7f77ef2 \ rmd160 1c9410cf07deaf140a2b1497214c6e3f8045d178 worksrcdir ${name}-${version} depends_run bin:java:kaffe use_configure no post-patch { reinplace "s|/usr/share/jmol/|${prefix}/share/java/jmol/|g" \ ${worksrcpath}/jmol } build {} destroot { # install the jmol script: xinstall ${worksrcpath}/jmol ${destroot}${prefix}/bin # install the jmol java files: xinstall -d ${destroot}${prefix}/share/java/jmol foreach jar [glob ${worksrcpath}/*.jar] { xinstall $jar ${destroot}${prefix}/share/java/jmol } } livecheck.check regex livecheck.url http://sourceforge.net/project/showfiles.php?group_id=23629 livecheck.regex {version (11[0-9a-zA-Z.]+)}