-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
182 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,2 @@ | ||
"%R%" CMD INSTALL --build . | ||
IF %ERRORLEVEL% NEQ 0 exit 1 |
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 @@ | ||
#!/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/pkgdown | ||
mv * $PREFIX/lib/R/library/pkgdown | ||
|
||
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 |
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,142 @@ | ||
{% set version = '1.4.1' %} | ||
|
||
{% set posix = 'm2-' if win else '' %} | ||
{% set native = 'm2w64-' if win else '' %} | ||
|
||
package: | ||
name: r-pkgdown | ||
version: {{ version|replace("-", "_") }} | ||
|
||
source: | ||
url: | ||
- {{ cran_mirror }}/src/contrib/pkgdown_{{ version }}.tar.gz | ||
- {{ cran_mirror }}/src/contrib/Archive/pkgdown/pkgdown_{{ version }}.tar.gz | ||
sha256: 8ef50e9d5b2b52e7a5a49a3249583a90671e3c50c50b0899fe561780a3b615f8 | ||
|
||
build: | ||
merge_build_host: True # [win] | ||
# If this is a new build for the same version, increment the build number. | ||
number: 0 | ||
# no skip | ||
noarch: generic | ||
|
||
# This is required to make R link correctly on Linux. | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
|
||
# Suggests: covr, htmlwidgets, jsonlite, knitr, leaflet, pkgload (>= 1.0.2), testthat (>= 2.1.0), rticles, rsconnect | ||
requirements: | ||
build: | ||
- {{posix}}zip # [win] | ||
|
||
host: | ||
- r-base | ||
- r-mass | ||
- r-callr >=2.0.2 | ||
- r-cli | ||
- r-crayon | ||
- r-desc | ||
- r-digest | ||
- r-evaluate | ||
- r-fansi | ||
- r-fs >=1.2.0 | ||
- r-highlight | ||
- r-httr | ||
- r-magrittr | ||
- r-memoise | ||
- r-openssl | ||
- r-processx | ||
- r-purrr | ||
- r-rematch2 | ||
- r-rlang >=0.3.0 | ||
- r-rmarkdown >=1.1.9007 | ||
- r-rstudioapi | ||
- r-tibble | ||
- r-whisker | ||
- r-withr | ||
- r-xml2 >=1.1.1 | ||
- r-yaml | ||
|
||
run: | ||
- r-base | ||
- r-mass | ||
- r-callr >=2.0.2 | ||
- r-cli | ||
- r-crayon | ||
- r-desc | ||
- r-digest | ||
- r-evaluate | ||
- r-fansi | ||
- r-fs >=1.2.0 | ||
- r-highlight | ||
- r-httr | ||
- r-magrittr | ||
- r-memoise | ||
- r-openssl | ||
- r-processx | ||
- r-purrr | ||
- r-rematch2 | ||
- r-rlang >=0.3.0 | ||
- r-rmarkdown >=1.1.9007 | ||
- r-rstudioapi | ||
- r-tibble | ||
- r-whisker | ||
- r-withr | ||
- r-xml2 >=1.1.1 | ||
- r-yaml | ||
|
||
test: | ||
commands: | ||
# You can put additional test commands to be run here. | ||
- $R -e "library('pkgdown')" # [not win] | ||
- "\"%R%\" -e \"library('pkgdown')\"" # [win] | ||
|
||
# You can also put a file called run_test.py, run_test.sh, or run_test.bat | ||
# in the recipe that will be run at test time. | ||
|
||
# requires: | ||
# Put any additional test requirements here. | ||
|
||
about: | ||
home: https://pkgdown.r-lib.org, https://github.com/r-lib/pkgdown | ||
license: MIT | ||
summary: Generate an attractive and useful website from a source package. 'pkgdown' converts | ||
your documentation, vignettes, 'README', and more to 'HTML' making it easy to share | ||
information about your package online. | ||
license_family: MIT | ||
license_file: | ||
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT' | ||
- LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- demo | ||
|
||
# The original CRAN metadata for this package was: | ||
|
||
# Package: pkgdown | ||
# Title: Make Static HTML Documentation for a Package | ||
# Version: 1.4.1 | ||
# Authors@R: c( person("Hadley", "Wickham", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-4757-117X") ), person("Jay", "Hesselberth", role = "aut", comment = c(ORCID = "0000-0002-6299-179X") ), person("RStudio", role = c("cph", "fnd")) ) | ||
# Description: Generate an attractive and useful website from a source package. 'pkgdown' converts your documentation, vignettes, 'README', and more to 'HTML' making it easy to share information about your package online. | ||
# License: MIT + file LICENSE | ||
# URL: https://pkgdown.r-lib.org, https://github.com/r-lib/pkgdown | ||
# BugReports: https://github.com/r-lib/pkgdown/issues | ||
# Depends: R (>= 3.1.0) | ||
# Imports: callr (>= 2.0.2), cli, crayon, desc, digest, evaluate, fs (>= 1.2.0), fansi, highlight, httr, magrittr, MASS, memoise, openssl, purrr, processx, rematch2, rlang (>= 0.3.0), rmarkdown (>= 1.1.9007), rstudioapi, tibble, tools, whisker, withr, xml2 (>= 1.1.1), yaml | ||
# Suggests: covr, htmlwidgets, jsonlite, knitr, leaflet, pkgload (>= 1.0.2), testthat (>= 2.1.0), rticles, rsconnect | ||
# VignetteBuilder: knitr | ||
# SystemRequirements: pandoc | ||
# RoxygenNote: 6.1.1 | ||
# Encoding: UTF-8 | ||
# NeedsCompilation: no | ||
# Packaged: 2019-09-13 23:13:43 UTC; hadley | ||
# Author: Hadley Wickham [aut, cre] (<https://orcid.org/0000-0003-4757-117X>), Jay Hesselberth [aut] (<https://orcid.org/0000-0002-6299-179X>), RStudio [cph, fnd] | ||
# Maintainer: Hadley Wickham <[email protected]> | ||
# Repository: CRAN | ||
# Date/Publication: 2019-09-15 00:10:08 UTC | ||
|
||
# See | ||
# https://docs.conda.io/projects/conda-build for | ||
# more information about meta.yaml |