wok view R/receipt @ rev 23914
Add linux-mmc (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 16 17:34:09 2020 +0000 (2020-08-16) |
parents | 842878ded11f |
children | a3b6dd3aac6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="R"
4 VERSION="3.6.2"
5 CATEGORY="office"
6 SHORT_DESC="Free software environment for statistical computing and graphics."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.r-project.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://cran.r-project.org/src/base/R-${VERSION%%.*}/$TARBALL"
14 DEPENDS="bzlib epdfview gcc-lib-math libgfortran libgomp liblzma
15 midori pcre readline"
16 BUILD_DEPENDS="bzip2-dev curl-dev gfortran liblzma-dev pcre-dev readline-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export R_BROWSER="midori"
22 export R_PDFVIEWER="epdfview"
23 unset DESTDIR
25 # valid before 3.1.1
26 # patch -p 0 < $stuff/pcre.u
28 ./configure \
29 --enable-R-shlib \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$install install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib $fs/usr
43 sed -i s'|bash|sh|' $fs/usr/bin/R
44 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/R
45 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/pager
46 }