wok-next view R/receipt @ rev 13824
R: update pcre code
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 07 11:03:44 2013 +0100 (2013-01-07) |
parents | 7b23dd576750 |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="R"
4 VERSION="2.14.1"
5 CATEGORY="office"
6 SHORT_DESC="Free software environment for statistical computing and graphics."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.r-project.org/"
10 WGET_URL="http://cran.cict.fr/src/base/R-2/$TARBALL"
12 DEPENDS="libgfortran readline bzlib libgomp midori epdfview"
13 BUILD_DEPENDS="gfortran readline-dev bzip2-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 export R_BROWSER="midori"
19 export R_PDFVIEWER="epdfview"
20 unset DESTDIR
21 cd $src
22 patch -p 0 < $stuff/pcre.u
23 ./configure \
24 --enable-R-shlib \
25 --with-system-zlib \
26 --with-system-bzlib \
27 --with-system-pcre \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$install install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 sed -i s'/bash/sh/' $fs/usr/bin/R
39 sed -i s'/bash/sh/' $fs/usr/lib/R/bin/R
40 sed -i s'/bash/sh/' $fs/usr/lib/R/bin/pager
41 }