Skip to content

Commit

Permalink
Add dupsifter (bioconda#43279)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorrison authored Sep 29, 2023
1 parent 60a2110 commit feeb7d6
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/dupsifter/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

BIN=${PREFIX}/bin
mkdir -p ${BIN}

make CC="$CC $LDFLAGS" CFLAGS="$CFLAGS"
cp dupsifter ${BIN}
46 changes: 46 additions & 0 deletions recipes/dupsifter/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% set version = '1.2.0.20230926' %}

package:
name: dupsifter
version: {{ version }}

build:
number: 0
run_exports:
- {{ pin_subpackage('dupsifter', max_pin='x') }}

source:
url: https://github.com/huishenlab/dupsifter/releases/download/v{{ version }}/release-source.zip
sha256: 7a4dfe194d51ac09b30f85f6c77f9e8c31c62e636f56c09748688b32755d9521
patches:
- patch

requirements:
build:
- make
- {{ compiler('c') }}
host:
- libcurl
- bzip2
- xz
- zlib
- libdeflate
- openssl # [not osx]
- pthread-stubs
run:
- libcurl
- bzip2
- xz
- zlib
- libdeflate
- openssl # [not osx]
- pthread-stubs

test:
commands:
- dupsifter --help 2>&1 | grep dupsifter

about:
home: https://github.com/huishenlab/dupsifter
license: MIT
summary: A tool for PCR duplicate marking of WGBS (and WGS) data
27 changes: 27 additions & 0 deletions recipes/dupsifter/patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/Makefile b/Makefile
index f786e73..32df980 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-CC = gcc
-CFLAGS = -W -Wall -finline-functions -fPIC -std=gnu99 -Wno-unused-result -O3
-CLIB = -lz -lm -llzma -lbz2 -lcurl
+CC ?= gcc
+CFLAGS ?= -W -Wall -finline-functions -fPIC -std=gnu99 -Wno-unused-result -O3
+CLIB = -lz -lm -llzma -lbz2 -lcurl -lpthread
CF_OPTIMIZE = 1

OS := $(shell uname)
diff --git a/htslib-1.15.1/Makefile b/htslib-1.15.1/Makefile
index 0871580..e7a313d 100644
--- a/htslib-1.15.1/Makefile
+++ b/htslib-1.15.1/Makefile
@@ -22,7 +22,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

-CC = gcc
+CC ?= gcc
AR = ar
RANLIB = ranlib

0 comments on commit feeb7d6

Please sign in to comment.