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.
* Add peer * Add license for peer itself * Add make as dependency
- Loading branch information
1 parent
5aee308
commit 75dfdd6
Showing
3 changed files
with
79 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,10 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
|
||
mkdir build | ||
cd build | ||
cmake ../ -DBUILD_PYTHON_PACKAGE=OFF -DBUILD_PEERTOOL=ON | ||
make -j $CPU_COUNT | ||
mkdir -p "${PREFIX}/bin" | ||
install src/peertool "${PREFIX}/bin" |
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,38 @@ | ||
{% set name = "peer" %} | ||
{% set version = "1.3" %} | ||
# no tags in upstream repository yet | ||
{% set commit = "40bc4b2cd92459ce42f44dfe279717436395f3f6" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/PMBio/peer/archive/{{ commit }}.tar.gz | ||
sha256: 80a549354569ae5ec7d4d92c78e7f8fa72da08fcd11322611f737044c34861ed | ||
patches: | ||
- patches/0001-Comment-out-SWIG-package-search.patch | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name, max_pin="x") }} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- cmake | ||
- make | ||
|
||
test: | ||
commands: | ||
- peertool --help | grep -q USAGE | ||
|
||
about: | ||
home: https://github.com/PMBio/peer | ||
license: GPL-2.0-or-later | ||
license_file: | ||
- LICENSE | ||
- External/yaml-cpp/license.txt | ||
summary: 'A collection of Bayesian approaches to infer hidden determinants and their effects from gene expression profiles using factor analysis methods' |
31 changes: 31 additions & 0 deletions
31
recipes/peer/patches/0001-Comment-out-SWIG-package-search.patch
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,31 @@ | ||
From a66ffa0d4b5e0aca5a1de1ffad387eadef49447f Mon Sep 17 00:00:00 2001 | ||
From: Travis Wrightsman <[email protected]> | ||
Date: Mon, 5 Feb 2024 12:21:17 -0500 | ||
Subject: [PATCH] Comment out SWIG package search | ||
|
||
--- | ||
CMakeLists.txt | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 80455af..0e0c66c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -71,11 +71,11 @@ endif (BUILD_UNIVERSAL) | ||
#for finding external libraries. | ||
#see /usr/local/share/cmake-2.6/Modules/Find*.cmake for more examples | ||
|
||
-find_package(SWIG REQUIRED) | ||
-include(${SWIG_USE_FILE}) | ||
+#find_package(SWIG REQUIRED) | ||
+#include(${SWIG_USE_FILE}) | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
-set(CMAKE_SWIG_FLAGS "") | ||
+#set(CMAKE_SWIG_FLAGS "") | ||
|
||
set(CMAKE_MODULE_PATH "${PEER_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) | ||
include_directories(./include) | ||
-- | ||
2.39.2 | ||
|