diff --git a/recipes/peer/build.sh b/recipes/peer/build.sh new file mode 100644 index 0000000000000..1f1932d3cfc51 --- /dev/null +++ b/recipes/peer/build.sh @@ -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" diff --git a/recipes/peer/meta.yaml b/recipes/peer/meta.yaml new file mode 100644 index 0000000000000..b24994dc6127a --- /dev/null +++ b/recipes/peer/meta.yaml @@ -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' diff --git a/recipes/peer/patches/0001-Comment-out-SWIG-package-search.patch b/recipes/peer/patches/0001-Comment-out-SWIG-package-search.patch new file mode 100644 index 0000000000000..6628b8077e44a --- /dev/null +++ b/recipes/peer/patches/0001-Comment-out-SWIG-package-search.patch @@ -0,0 +1,31 @@ +From a66ffa0d4b5e0aca5a1de1ffad387eadef49447f Mon Sep 17 00:00:00 2001 +From: Travis Wrightsman +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 +