diff --git a/recipes/jmol/bld.bat b/recipes/jmol/bld.bat new file mode 100644 index 0000000000000..54410f9e3eb27 --- /dev/null +++ b/recipes/jmol/bld.bat @@ -0,0 +1,6 @@ +mkdir "%LIBRARY_PREFIX%\share\jmol" +unzip jsmol.zip -d "%LIBRARY_PREFIX%\share\jmol" +xcopy /y *.jar "%LIBRARY_PREFIX%\share\jmol" +echo @echo off > "%LIBRARY_PREFIX%\bin\jmol.bat" +echo java -Xmx512m -jar "%LIBRARY_PREFIX%\share\jmol\Jmol.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9 >> "%LIBRARY_PREFIX%\bin\jmol.bat" + diff --git a/recipes/jmol/build.sh b/recipes/jmol/build.sh new file mode 100644 index 0000000000000..eef44e87758d2 --- /dev/null +++ b/recipes/jmol/build.sh @@ -0,0 +1,5 @@ +set -ex +mkdir -p "$PREFIX/share/jmol" +unzip jsmol.zip -d "$PREFIX/share/jmol" +cp *.jar jmol.sh "$PREFIX/share/jmol" +ln -s "$PREFIX/share/jmol/jmol.sh" "$PREFIX/bin/jmol" diff --git a/recipes/jmol/meta.yaml b/recipes/jmol/meta.yaml new file mode 100644 index 0000000000000..16498908e6488 --- /dev/null +++ b/recipes/jmol/meta.yaml @@ -0,0 +1,43 @@ +{% set name = "Jmol" %} +{% set version = "14.29.15" %} +{% set majmin = '.'.join(version.split('.')[:2]) %} +{% set sha256 = "e71df634776ade7c57f58986affd2b68e0d0d61bcda7b031e0b51da9d4aa81e1" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://sourceforge.net/projects/jmol/files/Jmol/Version {{ majmin }}/Jmol {{ version }}/Jmol-{{ version }}-binary.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + +requirements: + build: + - unzip # [not win] + - m2-unzip # [win] + run: + - openjdk + +test: + commands: + # In windows following command opens the GUI and conda build gets stuck. + - jmol -n # [not win] + +about: + home: http://www.jmol.org + license: LGPL + license_file: LICENSE.txt + summary: 'Jmol is an open-source molecule viewer and editor' + description: | + Jmol is a free, open source molecule viewer for students, educators, and + researchers in chemistry, biochemistry, physics, and materials science. + doc_url: http://jmol.sourceforge.net/#Learn%20to%20use%20Jmol + dev_url: https://github.com/BobHanson/Jmol-SwingJS + +extra: + recipe-maintainers: + - isuruf + - saraedum