Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jmol #5996

Merged
merged 4 commits into from
Jun 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes/jmol/bld.bat
Original file line number Diff line number Diff line change
@@ -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"

5 changes: 5 additions & 0 deletions recipes/jmol/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -ex
mkdir -p "$PREFIX/share/jmol"
unzip jsmol.zip -d "$PREFIX/share/jmol"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I use outputs: to separate jsmol and jmol?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. What's the difference?

cp *.jar jmol.sh "$PREFIX/share/jmol"
ln -s "$PREFIX/share/jmol/jmol.sh" "$PREFIX/bin/jmol"
43 changes: 43 additions & 0 deletions recipes/jmol/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

development has moved to github but there has been no release on github yet.


extra:
recipe-maintainers:
- isuruf
- saraedum