Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a few updates #12923

Merged
merged 2 commits into from
Jan 5, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,6 @@ recipes/bioconductor-phantasus
recipes/bioconductor-degraph
recipes/bioconductor-biggr
recipes/r-coloc
recipes/r-rcdk
recipes/bioconductor-chic
recipes/bioconductor-rcellminer
recipes/bioconductor-goprofiles
Expand Down Expand Up @@ -974,6 +973,14 @@ recipes/bioconductor-esatac
recipes/bioconductor-arrayexpresshts
recipes/bioconductor-rdavidwebservice
recipes/bioconductor-compgo
recipes/bioconductor-idmappingretrieval
recipes/bioconductor-mirlab
recipes/bioconductor-mirsm
recipes/bioconductor-damirseq
recipes/r-rcdk

# Missing root dependency
recipes/bioconductor-xps

# Build never completes
recipes/bioconductor-cancer
2 changes: 2 additions & 0 deletions recipes/bioconductor-champ/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ requirements:
- r-doparallel
- r-hmisc
- r-isva
- r-kpmt
- r-matrixstats
- 'r-plotly >=4.5.6'
- r-plyr
Expand Down Expand Up @@ -87,6 +88,7 @@ requirements:
- r-doparallel
- r-hmisc
- r-isva
- r-kpmt
- r-matrixstats
- 'r-plotly >=4.5.6'
- r-plyr
Expand Down
2 changes: 2 additions & 0 deletions recipes/r-mess/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
33 changes: 33 additions & 0 deletions recipes/r-mess/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then
export DISABLE_AUTOBREW=1
$R CMD INSTALL --build .
else
mkdir -p $PREFIX/lib/R/library/MESS
mv * $PREFIX/lib/R/library/MESS
if [[ $target_platform == osx-64 ]]; then
pushd $PREFIX
for libdir in lib/R/lib lib/R/modules lib/R/library lib/R/bin/exec sysroot/usr/lib; do
pushd $libdir || exit 1
for SHARED_LIB in $(find . -type f -iname "*.dylib" -or -iname "*.so" -or -iname "R"); do
echo "fixing SHARED_LIB $SHARED_LIB"
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/clang4/lib/libomp.dylib "$PREFIX"/lib/libomp.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libgcc_s.1.dylib "$PREFIX"/lib/libgcc_s.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libiconv.2.dylib "$PREFIX"/sysroot/usr/lib/libiconv.2.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libicucore.A.dylib "$PREFIX"/sysroot/usr/lib/libicucore.A.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libexpat.1.dylib "$PREFIX"/lib/libexpat.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libcurl.4.dylib "$PREFIX"/lib/libcurl.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
done
popd
done
popd
fi
fi
59 changes: 59 additions & 0 deletions recipes/r-mess/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{% set version = '0.5.4' %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conda-forge?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's from the wrapper script, yes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I mean should this go to conda-forge :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has requirements in bioconda (r-kinship2), so no.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mh, this will bite us sooner or later. Another example where it would be better to move all r-* packages which have no bioconductor dependencies into conda-forge.

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
name: r-mess
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/MESS_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/MESS/MESS_{{ version }}.tar.gz
sha256: f49f870729030945ff672f7fac4a0b2e7d71e9c61537dd1d732449cead160984

build:
number: 0
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{posix}}make
host:
- r-base
- r-mass
- r-matrix
- r-rcpp
- r-rcpparmadillo
- r-geem
- r-geepack
- r-glmnet
- r-kinship2
- r-mvtnorm
run:
- r-base
- r-mass
- r-matrix
- r-rcpp
- r-rcpparmadillo
- r-geem
- r-geepack
- r-glmnet
- r-kinship2
- r-mvtnorm

test:
commands:
- $R -e "library('MESS')"

about:
home: https://github.com/ekstroem/MESS
license: GPL-2
summary: A mixed collection of useful and semi-useful diverse statistical functions, some of
which may even be referenced in The R Primer book.
license_family: GPL2
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'