wok-next annotate R/receipt @ rev 14843

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