wok-current view tcl/receipt @ rev 25717

Patch ruby to be use openssl 3.x
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 18:19:03 2024 +0000 (5 months ago)
parents 5f6c5106b1f5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tcl"
4 VERSION="8.6.12"
5 CATEGORY="development"
6 TAGS="language programming"
7 SHORT_DESC="The Tool Command Language."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://www.tcl.tk/"
12 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 HOST_ARCH="i486 arm"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
21 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 arm*)
30 export tcl_cv_strtod_buggy=1
31 export ac_cv_func_strtod=yes
32 sed -i s'#./${TCL_EXE}#/usr/bin/tclsh#' unix/Makefile.in ;;
33 esac
35 cd $src/unix
36 ./configure \
37 --enable-shared \
38 --disable-symbols \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install install-private-headers
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
50 cp -a $install/usr/lib/tcl${VERSION:0:1}* $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/bin $fs/usr
54 ln -sf tclsh${VERSION:0:3} $fs/usr/bin/tclsh
55 }