forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update percolator to version 3.6.5 (bioconda#47414)
* Percolator version 3.6.5 * Add run_exports * Remove from blacklist, fingers crossed * Maybe it works if I add libboost-devel? * Boost 1.71 has static libraries which percolator needs * Whoops, typo in package version spec * clean up recipe * edit build.sh * revert to skipping osx --------- Co-authored-by: mencian <[email protected]> Co-authored-by: Joshua Zhuang <[email protected]>
- Loading branch information
1 parent
dd9955e
commit 830f3ea
Showing
3 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
#!/bin/bash | ||
|
||
mkdir percobuild && cd percobuild | ||
cmake -DTARGET_ARCH=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DXML_SUPPORT=ON -DCMAKE_PREFIX_PATH="$PREFIX;$PREFIX/lib" -DCMAKE_CXX_FLAGS="-std=c++14" $SRC_DIR | ||
make && make install | ||
cd .. | ||
export INCLUDES="-I{PREFIX}/include" | ||
export LIBPATH="-L${PREFIX}/lib" | ||
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" | ||
|
||
cmake -S . -B percobuild \ | ||
-DTARGET_ARCH=x86_64 -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DXML_SUPPORT=ON \ | ||
-DCMAKE_PREFIX_PATH="$PREFIX;$PREFIX/lib" -DCMAKE_CXX_COMPILER="${CXX}" \ | ||
-DCMAKE_CXX_FLAGS="-std=c++14 -O3 -I{PREFIX}/include" | ||
cmake --build percobuild/ --target install -j ${CPU_COUNT} -v | ||
|
||
# First make sure we dont get problems with truncated PREFIX due to null terminators: | ||
# see percolator/percolator#251 and conda/conda-build#1674 | ||
sed -i '54s/WRITABLE_DIR/std::string(WRITABLE_DIR).c_str()/' $SRC_DIR/src/Globals.cpp | ||
mkdir converterbuild && cd converterbuild | ||
cmake -DTARGET_ARCH=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$PREFIX" -DBOOST_ROOT=$PREFIX -DBOOST_LIBRARYDIR=$PREFIX/lib -DSERIALIZE="Boost" -DCMAKE_CXX_FLAGS="-std=c++11" -DCMAKE_PREFIX_PATH="$PREFIX" $SRC_DIR/src/converters | ||
make install | ||
cd .. | ||
sed -i.bak '54s/WRITABLE_DIR/std::string(WRITABLE_DIR).c_str()/' $SRC_DIR/src/Globals.cpp | ||
|
||
cmake -S ${SRC_DIR}/src/converters -B converterbuild \ | ||
-DTARGET_ARCH=x86_64 -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DBOOST_ROOT="$PREFIX" \ | ||
-DBOOST_LIBRARYDIR="$PREFIX/lib" -DSERIALIZE="Boost" \ | ||
-DCMAKE_CXX_FLAGS="-std=c++11 -O3 -I{PREFIX}/include" \ | ||
-DCMAKE_PREFIX_PATH="$PREFIX" -DCMAKE_CXX_COMPILER="${CXX}" | ||
cmake --build converterbuild/ --target install -j ${CPU_COUNT} -v | ||
|
||
mkdir $PREFIX/testdata | ||
cp $SRC_DIR/src/converters/data/converters/sqt2pin/target.sqt $PREFIX/testdata/target.sqt | ||
cp $SRC_DIR/src/converters/data/converters/msgf2pin/target.mzid $PREFIX/testdata/target.mzid | ||
cp $SRC_DIR/src/converters/data/converters/tandem2pin/target.t.xml $PREFIX/testdata/target.t.xml | ||
cp $SRC_DIR/data/percolator/tab/percolatorTab $PREFIX/testdata/percolatorTab | ||
mkdir -p $PREFIX/testdata | ||
cp -f $SRC_DIR/src/converters/data/converters/sqt2pin/target.sqt $PREFIX/testdata/target.sqt | ||
cp -f $SRC_DIR/src/converters/data/converters/msgf2pin/target.mzid $PREFIX/testdata/target.mzid | ||
cp -f $SRC_DIR/src/converters/data/converters/tandem2pin/target.t.xml $PREFIX/testdata/target.t.xml | ||
cp -f $SRC_DIR/data/percolator/tab/percolatorTab $PREFIX/testdata/percolatorTab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters