wok annotate R/receipt @ rev 25641

Fix miss gogglesmm app icon for menu
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 07 10:30:54 2024 +0100 (10 months ago)
parents a3b6dd3aac6f
children
rev   line source
pankso@11697 1 # SliTaz package receipt.
pankso@11697 2
pankso@11697 3 PACKAGE="R"
Hans-G?nter@24317 4 VERSION="4.1.2"
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"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@22460 9 WEB_SITE="https://www.r-project.org/"
Hans-G?nter@22460 10
pankso@11697 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22460 12 WGET_URL="https://cran.r-project.org/src/base/R-${VERSION%%.*}/$TARBALL"
pankso@11697 13
Hans-G?nter@24317 14 DEPENDS="bzlib epdfview gcc-lib-math libgfortran libgomp liblzma
Hans-G?nter@24317 15 midori pcre2 readline"
Hans-G?nter@24317 16 BUILD_DEPENDS="bzip2-dev curl-dev gfortran liblzma-dev pcre2-dev readline-dev"
pankso@11697 17
pascal@24093 18 current_version()
pascal@24093 19 {
pascal@24093 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24093 21 sed '/released on/!d;s|.*version ||;s| (.*||;q'
pascal@24093 22 }
pascal@24093 23
pankso@11697 24 # Rules to configure and make the package.
pankso@11697 25 compile_rules()
pankso@11697 26 {
pankso@11697 27 export R_BROWSER="midori"
pankso@11697 28 export R_PDFVIEWER="epdfview"
pankso@11697 29 unset DESTDIR
al@19275 30
Hans-G?nter@22460 31 # valid before 3.1.1
Hans-G?nter@22460 32 # patch -p 0 < $stuff/pcre.u
Hans-G?nter@22460 33
Hans-G?nter@22460 34 ./configure \
Hans-G?nter@22460 35 --enable-R-shlib \
pankso@11697 36 $CONFIGURE_ARGS &&
Hans-G?nter@22460 37 make &&
Hans-G?nter@24317 38 make install DESTDIR=$install
pankso@11697 39 }
pankso@11697 40
pankso@11697 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11697 42 genpkg_rules()
pankso@11697 43 {
Hans-G?nter@24317 44 cook_copy_folders bin
Hans-G?nter@24317 45 cook_copy_folders lib
Hans-G?nter@22460 46
Hans-G?nter@24317 47 sed -i s'|bash|sh|' $fs/usr/bin/R
Hans-G?nter@24317 48 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/R
Hans-G?nter@24317 49 sed -i s'|bash|sh|' $fs/usr/lib/R/bin/pager
pankso@11697 50 }