mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-v8: build with system nodejs
This commit is contained in:
parent
cf63948e6f
commit
385345a53a
2 changed files with 21 additions and 14 deletions
|
@ -17,9 +17,7 @@ depends=(
|
|||
r-curl
|
||||
r-jsonlite
|
||||
r-rcpp
|
||||
)
|
||||
makedepends=(
|
||||
make
|
||||
nodejs
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
|
@ -28,9 +26,16 @@ optdepends=(
|
|||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('99881af4798d11da0adccd8e4e1aa5dc4adccf5e3572724c14f6f90c2b8c3ff0')
|
||||
options=(staticlibs)
|
||||
|
||||
prepare() {
|
||||
# build with system nodejs
|
||||
sed -i '11,12d' ${_pkgname}/configure
|
||||
sed -i '11i PKG_LIBS="-lnode"\nPKG_CFLAGS="-I/usr/include/node"' ${_pkgname}/configure
|
||||
tar cvfz ${_pkgname}_${pkgver}.tar.gz ${_pkgname}
|
||||
}
|
||||
|
||||
build() {
|
||||
R CMD INSTALL --configure-vars='DOWNLOAD_STATIC_LIBV8=1' ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
R CMD INSTALL ${_pkgname}_${pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
@ -7,7 +7,9 @@ repo_depends:
|
|||
- r-jsonlite
|
||||
- r-rcpp
|
||||
update_on:
|
||||
- regex: V8_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
- source: regex
|
||||
regex: V8_([\d._-]+).tar.gz
|
||||
url: https://cran.r-project.org/package=V8
|
||||
- source: manual
|
||||
manual: 1
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue