From 2c37d96089586f4c7fcc5c4fcc60366752de880f Mon Sep 17 00:00:00 2001 From: lecorguille Date: Tue, 30 Oct 2018 17:08:14 +0100 Subject: [PATCH 1/4] r-pctgcdata --- recipes/r-pctgcdata/build.sh | 11 ++++++++ recipes/r-pctgcdata/meta.yaml | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 recipes/r-pctgcdata/build.sh create mode 100644 recipes/r-pctgcdata/meta.yaml diff --git a/recipes/r-pctgcdata/build.sh b/recipes/r-pctgcdata/build.sh new file mode 100644 index 0000000000000..83a121c6db85e --- /dev/null +++ b/recipes/r-pctgcdata/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then + export DISABLE_AUTOBREW=1 + mv DESCRIPTION DESCRIPTION.old + grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION + $R CMD INSTALL --build . +else + mkdir -p $PREFIX/lib/R/library/pctGCdata + mv * $PREFIX/lib/R/library/pctGCdata +fi diff --git a/recipes/r-pctgcdata/meta.yaml b/recipes/r-pctgcdata/meta.yaml new file mode 100644 index 0000000000000..7bb4261edb5d9 --- /dev/null +++ b/recipes/r-pctgcdata/meta.yaml @@ -0,0 +1,51 @@ +{% set version = '0.2.0' %} + +package: + name: r-pctgcdata + version: {{ version|replace("-", "_") }} + +source: + + git_url: https://github.com/mskcc/pctGCdata + git_tag: v0.2.0 + +build: + number: 0 + + # This is required to make R link correctly on Linux. + rpaths: + - lib/R/lib/ + - lib/ + +requirements: + host: + - r-base + + run: + - r-base + +test: + commands: + - $R -e "library('pctGCdata')" + +about: + home: https://github.com/mskcc/pctGCdata + license: GPL (>= 2) + summary: Provides GC percentage of a 1 kilobase window at a genomic position for different + builds of human and mouse genomes. + license_family: GPL3 + +# The original CRAN metadata for this package was: + +# Package: pctGCdata +# Type: Package +# Title: Datasets of GC percentages for human and mouse genomes +# Version: 0.2.0 +# Date: 2016-09-21 +# Depends: R (>= 3.0.0) +# Author: Venkatraman E. Seshan, Nicholas D. Socci +# Maintainer: Venkatraman E. Seshan +# Description: Provides GC percentage of a 1 kilobase window at a genomic position for different builds of human and mouse genomes. +# License: GPL (>= 2) +# LazyData: yes +# NeedsCompilation: no From 59435926e2818db2d200c99146e1b843238239e4 Mon Sep 17 00:00:00 2001 From: lecorguille Date: Tue, 30 Oct 2018 17:15:59 +0100 Subject: [PATCH 2/4] r-pctgcdata - fix --- recipes/r-pctgcdata/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/r-pctgcdata/meta.yaml b/recipes/r-pctgcdata/meta.yaml index 7bb4261edb5d9..ca1fe4f3c1ec6 100644 --- a/recipes/r-pctgcdata/meta.yaml +++ b/recipes/r-pctgcdata/meta.yaml @@ -1,13 +1,13 @@ {% set version = '0.2.0' %} +{% set sha256 = 'e217f8adfae848f0b12095f8d72cfb3044b7eb87e81849b6ff931b178b185fff' %} package: name: r-pctgcdata version: {{ version|replace("-", "_") }} source: - - git_url: https://github.com/mskcc/pctGCdata - git_tag: v0.2.0 + url: https://github.com/mskcc/pctGCdata/archive/v{ version }}.tar.gz + sha256: {{ sha256 }} build: number: 0 From 01298bcb61675b9dd2aeff5d647490052e61dbe1 Mon Sep 17 00:00:00 2001 From: lecorguille Date: Tue, 30 Oct 2018 17:32:50 +0100 Subject: [PATCH 3/4] r-pctgcdata - fix --- recipes/r-pctgcdata/meta.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/recipes/r-pctgcdata/meta.yaml b/recipes/r-pctgcdata/meta.yaml index ca1fe4f3c1ec6..80c2141cc015b 100644 --- a/recipes/r-pctgcdata/meta.yaml +++ b/recipes/r-pctgcdata/meta.yaml @@ -1,13 +1,10 @@ -{% set version = '0.2.0' %} -{% set sha256 = 'e217f8adfae848f0b12095f8d72cfb3044b7eb87e81849b6ff931b178b185fff' %} - package: name: r-pctgcdata - version: {{ version|replace("-", "_") }} + version: 0.2.0 source: - url: https://github.com/mskcc/pctGCdata/archive/v{ version }}.tar.gz - sha256: {{ sha256 }} + url: https://github.com/mskcc/pctGCdata/archive/v0.2.0.tar.gz + sha256: e217f8adfae848f0b12095f8d72cfb3044b7eb87e81849b6ff931b178b185fff build: number: 0 From 8085502f039a46caede5be485a5aa90616e338f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Tue, 30 Oct 2018 22:01:43 +0100 Subject: [PATCH 4/4] Update meta.yaml --- recipes/r-pctgcdata/meta.yaml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/recipes/r-pctgcdata/meta.yaml b/recipes/r-pctgcdata/meta.yaml index 80c2141cc015b..c6cfbf766a2ca 100644 --- a/recipes/r-pctgcdata/meta.yaml +++ b/recipes/r-pctgcdata/meta.yaml @@ -8,8 +8,6 @@ source: build: number: 0 - - # This is required to make R link correctly on Linux. rpaths: - lib/R/lib/ - lib/ @@ -17,7 +15,6 @@ build: requirements: host: - r-base - run: - r-base @@ -31,18 +28,3 @@ about: summary: Provides GC percentage of a 1 kilobase window at a genomic position for different builds of human and mouse genomes. license_family: GPL3 - -# The original CRAN metadata for this package was: - -# Package: pctGCdata -# Type: Package -# Title: Datasets of GC percentages for human and mouse genomes -# Version: 0.2.0 -# Date: 2016-09-21 -# Depends: R (>= 3.0.0) -# Author: Venkatraman E. Seshan, Nicholas D. Socci -# Maintainer: Venkatraman E. Seshan -# Description: Provides GC percentage of a 1 kilobase window at a genomic position for different builds of human and mouse genomes. -# License: GPL (>= 2) -# LazyData: yes -# NeedsCompilation: no