Skip to content

Commit

Permalink
Add peer (bioconda#45622)
Browse files Browse the repository at this point in the history
* Add peer

* Add license for peer itself

* Add make as dependency
  • Loading branch information
twrightsman authored Feb 7, 2024
1 parent 5aee308 commit 75dfdd6
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes/peer/build.sh
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"
38 changes: 38 additions & 0 deletions recipes/peer/meta.yaml
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 recipes/peer/patches/0001-Comment-out-SWIG-package-search.patch
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

0 comments on commit 75dfdd6

Please sign in to comment.