93e94bec97
The canonical form [1] of an R package Makefile includes the following: - The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as needed), and CATEGORIES. - HOMEPAGE is not present but defined in math/R/Makefile.extension to refer to the CRAN web page describing the package. Other relevant web pages are often linked from there via the URL field. This updates all current R packages to this form, which will make regular updates _much_ easier, especially using pkgtools/R2pkg. [1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
31 lines
971 B
Makefile
31 lines
971 B
Makefile
# $NetBSD: Makefile,v 1.8 2019/08/08 19:53:55 brook Exp $
|
|
|
|
R_PKGNAME= knitr
|
|
R_PKGVER= 1.23
|
|
CATEGORIES= print
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= General-purpose package for dynamic report generation in R
|
|
LICENSE= gnu-gpl-v1 OR gnu-gpl-v2 OR gnu-gpl-v3
|
|
|
|
DEPENDS+= R-evaluate>=0.10:../../devel/R-evaluate
|
|
DEPENDS+= R-xfun>=0.8:../../devel/R-xfun
|
|
DEPENDS+= R-digest>=0.6.4:../../security/R-digest
|
|
DEPENDS+= R-formatR>=0.10:../../textproc/R-formatR
|
|
DEPENDS+= R-highr>=0.8:../../textproc/R-highr
|
|
DEPENDS+= R-markdown>=1.0:../../textproc/R-markdown
|
|
DEPENDS+= R-stringr>=0.6:../../textproc/R-stringr
|
|
DEPENDS+= R-yaml>=2.1.19:../../textproc/R-yaml
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
REPLACE_RSCRIPT+= inst/bin/knit
|
|
REPLACE_RSCRIPT+= inst/examples/knit-all.R
|
|
|
|
REPLACE_INTERPRETER+= Rscript
|
|
REPLACE.Rscript.old= .*Rscript
|
|
REPLACE.Rscript.new= ${PREFIX}/bin/Rscript
|
|
REPLACE_FILES.Rscript= ${REPLACE_RSCRIPT}
|
|
|
|
.include "../../math/R/Makefile.extension"
|
|
.include "../../mk/bsd.pkg.mk"
|