diff x/conda_build.sh @ 125:49f3d3878413 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author fubar
date Sat, 05 Oct 2024 23:58:05 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/x/conda_build.sh	Sat Oct 05 23:58:05 2024 +0000
@@ -0,0 +1,20 @@
+if [ -z ${CONDA_BUILD+x} ]; then
+    source /opt/conda/conda-bld/jbrowse2_1726856947541/work/build_env_setup.sh
+fi
+#!/bin/bash
+
+# Place the jbrowse2 www content in the conda package
+mkdir -p $PREFIX/opt/jbrowse2/
+cp -r * $PREFIX/opt/jbrowse2/
+
+# Set an env var for people willing to find the jbrowse2 www content
+mkdir -p $PREFIX/etc/conda/activate.d/
+echo "export JBROWSE2_SOURCE_DIR=$PREFIX/opt/jbrowse2" > $PREFIX/etc/conda/activate.d/jbrowse2-sourcedir.sh
+chmod a+x $PREFIX/etc/conda/activate.d/jbrowse2-sourcedir.sh
+
+mkdir -p $PREFIX/etc/conda/deactivate.d/
+echo "unset JBROWSE2_SOURCE_DIR" > $PREFIX/etc/conda/deactivate.d/jbrowse2-sourcedir.sh
+chmod a+x $PREFIX/etc/conda/deactivate.d/jbrowse2-sourcedir.sh
+
+# Install the CLI
+npm install --prefix=${PREFIX} -g @jbrowse/cli@${PKG_VERSION}