Skip to content

Commit

Permalink
Add [de]activate scripts
Browse files Browse the repository at this point in the history
to workaround cbcrg/tcoffee#27
  • Loading branch information
nsoranzo committed Dec 23, 2020
1 parent c5e5e25 commit 7eafa3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/t-coffee/activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
export MAX_N_PID_4_TCOFFEE=$(cat /proc/sys/kernel/pid_max)
8 changes: 8 additions & 0 deletions recipes/t-coffee/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ make CC=$CXX CFLAGS="$CFLAGS"
# install tcoffee in the target bin directory
mkdir -p $PREFIX/bin
cp t_coffee $PREFIX/bin

# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
# This will allow them to be run on environment activation.
for CHANGE in "activate" "deactivate"
do
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
done
2 changes: 2 additions & 0 deletions recipes/t-coffee/deactivate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
unset MAX_N_PID_4_TCOFFEE

0 comments on commit 7eafa3b

Please sign in to comment.