wok-next annotate R/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d958fec46c9f
children 5669e8b3be70
rev   line source
al@20242 1 # SliTaz package receipt v2.
pankso@11697 2
pankso@11697 3 PACKAGE="R"
al@20242 4 VERSION="3.4.2"
pankso@11697 5 CATEGORY="office"
al@20242 6 SHORT_DESC="Free software environment for statistical computing and graphics"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20242 9 WEB_SITE="http://www.r-project.org/"
al@20882 10 REPOLOGY="r"
al@20242 11
pankso@11697 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
yuripourre@16914 13 WGET_URL="http://cran.r-project.org/src/base/R-3/$TARBALL"
pankso@11697 14
al@20242 15 BUILD_DEPENDS="automake gfortran readline-dev xorg-imake icu-dev \
al@20242 16 xorg-libX11-dev xorg-libICE-dev xorg-libXt-dev xorg-libXmu-dev cairo-dev \
al@20242 17 pango-dev tcl-dev tk-dev zlib-dev pcre-dev curl-dev libjpeg-turbo-dev libpaper"
al@21020 18 SPLIT="$PACKAGE-dev"
pankso@11697 19
al@20242 20 compile_rules() {
pankso@11697 21 export R_BROWSER="midori"
pankso@11697 22 export R_PDFVIEWER="epdfview"
pankso@11697 23 unset DESTDIR
al@19275 24
pankso@11697 25 ./configure \
pankso@11697 26 --enable-R-shlib \
pankso@11697 27 $CONFIGURE_ARGS &&
al@20569 28 fix libtool &&
al@20242 29 make &&
al@20242 30 make DESTDIR=$install install || return 1
al@20242 31
al@20242 32 sed -i 's|bash|sh|' \
al@20242 33 $install/usr/bin/R \
al@20242 34 $install/usr/lib/R/bin/R \
al@20242 35 $install/usr/lib/R/bin/pager
pankso@11697 36 }
pankso@11697 37
al@20242 38 genpkg_rules() {
al@20242 39 case $PACKAGE in
al@20242 40 R)
al@20242 41 copy @std
al@20242 42 DEPENDS="bzlib cairo gcc-lib-math glib icu libcurl libgfortran \
al@20242 43 libgomp libicu libjpeg-turbo liblzma libpng16 ncurses pango pcre \
al@20242 44 readline tcl tk xorg-libICE xorg-libSM xorg-libX11 xorg-libXext \
al@20242 45 xorg-libXmu xorg-libXt zlib midori epdfview"
al@20242 46 ;;
al@20242 47 R-dev)
al@20242 48 copy @dev
al@20242 49 ;;
al@20242 50 esac
pankso@11697 51 }