-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Dunn
committed
Aug 24, 2019
1 parent
2826e6a
commit 552954b
Showing
2 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
set -vexu -o pipefail | ||
|
||
NIM_VERSION=devel | ||
# devel, b/c branches are missing. | ||
#NIM_VERSION=v0.20.2 | ||
#NIMBLE_VERSION=v0.9.0 | ||
export base=$(pwd) | ||
|
||
# Install nim | ||
git clone -b $NIM_VERSION --depth 1 git://github.com/nim-lang/nim nim-$NIM_VERSION/ | ||
cd nim-$NIM_VERSION | ||
git clone --depth 1 git://github.com/nim-lang/csources csources/ | ||
|
||
cd csources | ||
# Fix compiler references to use conda set CC | ||
# https://github.com/brentp/mosdepth/blob/master/scripts/install.sh | ||
export LINKER=$CC | ||
sed -i.bak '/^CC=/s/^/#/g' build.sh | ||
sed -i.bak '/^LINKER=/s/^/#/g' build.sh | ||
sh build.sh | ||
cd .. | ||
rm -rf csources | ||
bin/nim c koch | ||
./koch boot -d:release | ||
|
||
export PATH=$base/nim-$NIM_VERSION/bin | ||
|
||
#git clone -b $NIMBLE_VERSION --depth 1 git://github.com/nim-lang/nimble.git | ||
#cd nimble | ||
#nim c src/nimble | ||
|
||
which nim | ||
nim -v | ||
|
||
cd $base | ||
ls -larth | ||
|
||
cd $base | ||
|
||
export NIMBLEDIR=$(pwd)/.nimble | ||
#nimble install -y | ||
make build | ||
|
||
#mkdir -p $PREFIX/bin | ||
#chmod a+x falconc | ||
#cp falconc $PREFIX/bin | ||
ls -larth src | ||
make install |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% set version = "0.1.1" %} | ||
{% set sha256hash = "152b1f50ee9ba375099cd739928a9c78c25c3b7127314f15d06667de3c5b979d" %} | ||
|
||
package: | ||
name: pb-falconc | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/bio-nim/nim-pb/archive/8d5aa9fecedc40d3dd220d01eca8942ec8ba2eb1.tar.gz | ||
sha256: {{ sha256hash }} | ||
|
||
build: | ||
number: 0 | ||
skip: True # [not linux] | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
host: | ||
- pcre | ||
- htslib | ||
run: | ||
- pcre | ||
- htslib | ||
|
||
test: | ||
commands: | ||
- falconc -h | ||
|
||
about: | ||
home: 'https://github.com/PacificBiosciences/pbbioconda' | ||
license: "BSD 3-Clause Clear License" | ||
summary: "C utilities for PacBio assembly (pb-falcon etc.)" | ||
authors: | ||
- pb-cdunn | ||
- isovic | ||
- zkronenberg |