wok-6.x annotate tcl/receipt @ rev 25134
updated phpeasyvcs (1.0 -> 2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 10:51:43 2022 +0100 (2022-06-29) |
parents | 8f2a606b1fcb |
children | aa7275c5f402 |
rev | line source |
---|---|
erjo@507 | 1 # SliTaz package receipt. |
erjo@507 | 2 |
erjo@507 | 3 PACKAGE="tcl" |
Hans-G?nter@23690 | 4 VERSION="8.6.10" |
erjo@507 | 5 CATEGORY="development" |
Hans-G?nter@22011 | 6 TAGS="language programming" |
Hans-G?nter@22011 | 7 SHORT_DESC="The Tool Command Language." |
erjo@784 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15600 | 9 LICENSE="BSD" |
Hans-G?nter@22011 | 10 WEB_SITE="https://www.tcl.tk/" |
Hans-G?nter@22011 | 11 |
slaxemulator@9365 | 12 TARBALL="${PACKAGE}${VERSION}-src.tar.gz" |
slaxemulator@10997 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@22011 | 14 |
pankso@16026 | 15 HOST_ARCH="i486 arm" |
erjo@507 | 16 |
pascal@24340 | 17 # What is the latest version available today? |
pascal@24340 | 18 current_version() |
pascal@24340 | 19 { |
pascal@24340 | 20 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 22 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q' |
pascal@24340 | 23 } |
pascal@24340 | 24 |
erjo@507 | 25 # Rules to configure and make the package. |
erjo@507 | 26 compile_rules() |
erjo@507 | 27 { |
pankso@16026 | 28 case "$ARCH" in |
pankso@16026 | 29 arm*) |
pankso@16026 | 30 export tcl_cv_strtod_buggy=1 |
pankso@16504 | 31 export ac_cv_func_strtod=yes |
pankso@16504 | 32 sed -i s'#./${TCL_EXE}#/usr/bin/tclsh#' unix/Makefile.in ;; |
pankso@16026 | 33 esac |
Hans-G?nter@22011 | 34 |
slaxemulator@8727 | 35 cd $src/unix |
Hans-G?nter@22011 | 36 ./configure \ |
Hans-G?nter@22011 | 37 --enable-shared \ |
Hans-G?nter@23690 | 38 --disable-symbols \ |
Hans-G?nter@23690 | 39 --mandir=/usr/share/man \ |
Hans-G?nter@23690 | 40 $CONFIGURE_ARGS && |
pankso@16026 | 41 make && |
gokhlayeh@8759 | 42 make install install-private-headers |
erjo@507 | 43 } |
erjo@507 | 44 |
erjo@507 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@507 | 46 genpkg_rules() |
erjo@507 | 47 { |
erjo@507 | 48 mkdir -p $fs/usr/lib |
Hans-G?nter@22011 | 49 |
Hans-G?nter@22011 | 50 cp -a $install/usr/lib/tcl${VERSION:0:1}* $fs/usr/lib |
Hans-G?nter@22011 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22011 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22011 | 53 |
Hans-G?nter@22011 | 54 ln -sf tclsh${VERSION:0:3} $fs/usr/bin/tclsh |
erjo@507 | 55 } |