wok view R/receipt @ rev 24142
linux-aufs: git checkout problem ?
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 15 08:46:59 2021 +0000 (2021-11-15) |
parents | 7cb0d9d32bf3 |
children | aeb61b86398a |
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 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/released on/!d;s|.*version ||;s| (.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export R_BROWSER="midori"
28 export R_PDFVIEWER="epdfview"
29 unset DESTDIR
31 # valid before 3.1.1
32 # patch -p 0 < $stuff/pcre.u
34 ./configure \
35 --enable-R-shlib \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$install install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib $fs/usr
49 sed -i s'|bash|sh|' $fs/usr/bin/R
50 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/R
51 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/pager
52 }