Skip to content

Commit

Permalink
Update smudgeplot to 0.4.0 (#51904)
Browse files Browse the repository at this point in the history
* Update smudgeplot to 0.4.0

* edit install command

* update dependencies

* patch gcc in Makefile

* edit tests

* add pandas

---------

Co-authored-by: mencian <[email protected]>
  • Loading branch information
BiocondaBot and mencian authored Nov 4, 2024
1 parent 049acd0 commit 17ddc5c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
13 changes: 13 additions & 0 deletions recipes/smudgeplot/0001-Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index ad29043..4dff5ca 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ $(INSTALL_PREFIX)/bin/% : exec/%
install -C $< $(INSTALL_PREFIX)/bin

exec/hetmers: src_ploidyplot/PloidyPlot.c src_ploidyplot/libfastk.c src_ploidyplot/libfastk.h src_ploidyplot/matrix.c src_ploidyplot/matrix.h
- gcc $(CFLAGS) -o $@ src_ploidyplot/PloidyPlot.c src_ploidyplot/libfastk.c src_ploidyplot/matrix.c -lpthread -lm
+ $(CC) $(CFLAGS) -o $@ src_ploidyplot/PloidyPlot.c src_ploidyplot/libfastk.c src_ploidyplot/matrix.c -lpthread -lm


.PHONY : clean
7 changes: 5 additions & 2 deletions recipes/smudgeplot/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash

export CPATH="${PREFIX}/include"

mkdir -p $PREFIX/bin

# Install the current codebase as an R package
Rscript install.R
make -s INSTALL_PREFIX="${PREFIX}" CC="${CC}" -j"${CPU_COUNT}"

# Install executables
install -C exec/smudgeplot.py $PREFIX/bin
install -C exec/hetmers $PREFIX/bin
install -C exec/smudgeplot_plot.R $PREFIX/bin
install -C exec/centrality_plot.R $PREFIX/bin
11 changes: 7 additions & 4 deletions recipes/smudgeplot/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{% set version = "0.3.0" %}
{% set version = "0.4.0" %}

package:
name: smudgeplot
version: {{ version }}

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage('smudgeplot', max_pin="x.x") }}

source:
url: https://github.com/KamilSJaron/smudgeplot/archive/v{{ version }}.tar.gz
sha256: b95b61e517de8f33c49910825a5c68e9a0d1e27cc33463939ef4c994e61dda92
sha256: 61ca437e29830a415e6f18f39d5d1fd994d20ea4a9bd46d1ab5fdcc52fa4008d
patches:
- 0001-Makefile.patch

requirements:
build:
Expand All @@ -31,10 +33,11 @@ requirements:
- r-argparse
- numpy
- scipy
- pandas

test:
commands:
- smudgeplot.py --version 2>&1 | grep 'Running'
- "smudgeplot.py --version 2>&1"

about:
home: https://github.com/KamilSJaron/smudgeplot
Expand Down

0 comments on commit 17ddc5c

Please sign in to comment.