Mercurial > repos > rliterman > csp2
view CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/mummer-3.23/conda_build.sh @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
line wrap: on
line source
if [ -z ${CONDA_BUILD+x} ]; then source /opt/conda/conda-bld/mummer_1734020773944/work/build_env_setup.sh fi #!/bin/bash set -xe BINARY=mummer BINARY_HOME=$PREFIX/bin MUMMER_HOME=$PREFIX/opt/mummer-$PKG_VERSION mkdir -p $BINARY_HOME mkdir -p $MUMMER_HOME # cd to location of Makefile and source cp -R $SRC_DIR/* $MUMMER_HOME cd $MUMMER_HOME # One of the Makefiles references a shell script not in the path export PATH="$PATH:." make CC=$CC CXX=$CXX CPPFLAGS="-O3 -DSIXTYFOURBITS" binaries="\ combineMUMs \ delta-filter \ dnadiff \ exact-tandems \ mapview \ mgaps \ mummer \ mummerplot \ nucmer \ promer \ repeat-match \ run-mummer1 \ run-mummer3 \ show-aligns \ show-coords \ show-diff \ show-snps \ show-tiling \ " # patch defined(%hash) out # https://github.com/bioconda/bioconda-recipes/issues/1254 perl -i -pe 's/defined \(%/\(%/' mummerplot #Fix escaping symbol @ included in the path to the library (mainly for conda virtual env with galaxy) for i in exact-tandems dnadiff mapview mummerplot nucmer promer run-mummer1 run-mummer3; do perl -i -pe 's/(envs\/\_\_.*)(\K\@)/\\@/' $i done # fix hashbang lines to use conda's perl for i in dnadiff mapview mummerplot nucmer promer; do sed -i.bak '1 s|^#!/.*/perl -w$|#!/usr/bin/env perl|g' $MUMMER_HOME/$i rm -rf $MUMMER_HOME/$i.bak done for i in $binaries; do # ensure executable and setup symlink for binary chmod +x $MUMMER_HOME/$i ln -s "$MUMMER_HOME/$i" "$BINARY_HOME/$i" done # clean up find $MUMMER_HOME -name *.o -exec rm -f {} \;