|
| 1 | +easyblock = 'PackedBinary' |
| 2 | + |
| 3 | +name = 'Fiji' |
| 4 | +version = '20260514-1817' |
| 5 | +versionsuffix = '-Java-%(javaver)s' |
| 6 | + |
| 7 | +homepage = 'https://fiji.sc/' |
| 8 | +description = """Fiji is an image processing package—a 'batteries-included' distribution of |
| 9 | + ImageJ, bundling a lot of plugins which facilitate scientific image analysis. |
| 10 | +""" |
| 11 | + |
| 12 | +toolchain = SYSTEM |
| 13 | + |
| 14 | +source_urls = ['https://downloads.imagej.net/fiji/archive/latest/%(version)s'] |
| 15 | +sources = [{ |
| 16 | + 'download_filename': '%(namelower)s-latest-portable-nojava.zip', |
| 17 | + 'filename': '%(namelower)s-%(version)s-portable-nojava.zip', |
| 18 | +}] |
| 19 | +checksums = ['526bb2461a98b74ab7d277a69ff65886672d3eeafc8273ef18145e14803c7287'] |
| 20 | + |
| 21 | +dependencies = [('Java', '21', '', SYSTEM)] |
| 22 | + |
| 23 | +postinstallcmds = [ |
| 24 | + # Enable any update site (edit existing site with same parameters to enable it) |
| 25 | + # Full list at https://imagej.github.io/list-of-update-sites/ |
| 26 | + '%(installdir)s/fiji --headless' |
| 27 | + ' --update edit-update-site "ImageScience" https://sites.imagej.net/ImageScience/', |
| 28 | + '%(installdir)s/fiji --headless' |
| 29 | + ' --update edit-update-site "3D ImageJ Suite" https://sites.imagej.net/Tboudier/', |
| 30 | + '%(installdir)s/fiji --headless' |
| 31 | + ' --update edit-update-site "ilastik" https://sites.imagej.net/Ilastik/', |
| 32 | + # Add a new update site |
| 33 | + # '%(installdir)s/fiji --headless --update add-update-site "New Name"' |
| 34 | + # ' https://site.url/NewName/', |
| 35 | + # Update the installation |
| 36 | + '%(installdir)s/fiji --headless --update update', |
| 37 | + # Remove binaries for other platforms |
| 38 | + 'rm %(installdir)s/{fiji-windows-x64.exe,fiji-windows-arm64.exe}', |
| 39 | +] |
| 40 | + |
| 41 | +sanity_check_paths = { |
| 42 | + 'files': ['fiji'], |
| 43 | + 'dirs': [], |
| 44 | +} |
| 45 | + |
| 46 | +modloadmsg = """ |
| 47 | +Additional plugins can be installed in your $HOME/.plugins folder or requested to user support |
| 48 | +Use ImageJ/Fiji in headless mode in your scripts with the command `fiji --headless` |
| 49 | +More information at https://imagej.net/Headless |
| 50 | +""" |
| 51 | + |
| 52 | +moduleclass = 'vis' |
0 commit comments