Check-in [528526c7d9]
Overview
Comment:Added start of critcl support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:528526c7d9b36aa4b75e41ec2d3116ec9d110a0b
User & Date: peter.piwowarski on 2020-04-15 04:07:55
Original User & Date: rkeene on 2020-04-15 04:07:55
Other Links: manifest | tags
Context
2020-04-15
05:19
Improved Critcl support check-in: a461844cd4 user: rkeene tags: trunk
04:07
Added start of critcl support check-in: 528526c7d9 user: peter.piwowarski tags: trunk
2020-01-22
18:53
Add release information to the TclPKCS11 and TclLuX modules check-in: c90c17ac3b user: rkeene tags: trunk
Changes

Modified build/web/kitcreator.vfs/index.rvt from [35e03c16f3] to [5dbfcbacaa].

    18     18   
    19     19   	proc versionEncoded {versionString} {
    20     20   		set output 0
    21     21   
    22     22   		if {$versionString eq "trunk"} {
    23     23   			return [versionEncoded "255.255.255"]
    24     24   		}
           25  +
           26  +		if {$versionString eq "core-8-7a3"} {
           27  +			return [versionEncoded "8.6.253"]
           28  +		}
    25     29   
    26     30   		foreach element [lrange [split $versionString .] 0 2] {
    27     31   			if {![string is integer -strict $element]} {
    28     32   				return "\"$versionString\""
    29     33   			}
    30     34   
    31     35   			set output [expr {($output << 8) | $element}]
................................................................................
    59     63   	set tcl_versions(8.6.4) 8.6.4
    60     64   	set tcl_versions(8.6.5) 8.6.5
    61     65   	set tcl_versions(8.6.6) 8.6.6
    62     66   	set tcl_versions(8.6.7) 8.6.7
    63     67   	set tcl_versions(8.6.8) 8.6.8
    64     68   	set tcl_versions(8.6.9) 8.6.9
    65     69   	set tcl_versions(8.6.10) 8.6.10
    66         -	set tcl_versions(fossil_trunk) "Fossil Trunk Tip"
    67         -
    68     70   	set tcl_version_list [lsort -dictionary [array names tcl_versions]]
    69         -	set tcl_version_selected [lindex $tcl_version_list end-1]
           71  +	set tcl_version_selected [lindex $tcl_version_list end]
           72  +
           73  +	set tcl_versions(fossil_trunk) "Fossil Trunk Tip"
           74  +	set tcl_versions(fossil_core-8-7a3) "Tcl 8.7a3"
           75  +	set tcl_version_list [lsort -dictionary [array names tcl_versions]]
    70     76   
    71     77   	# Platforms
    72     78   	set platforms(android-arm) "Android/ARM"
    73     79   	set platforms(freebsd-amd64) "FreeBSD/amd64"
    74     80   	set platforms(hpux-hppa64) "HP-UX/PA-RISC 2.0"
    75     81   	set platforms(aix-ppc) "AIX/POWER"
    76     82   	set platforms(linux-amd64) "Linux/amd64"
................................................................................
   107    113   	set packages(tdom) "tDOM"
   108    114   	set packages(tuapi) "Tcl UNIX API"
   109    115   	set packages(lmdb) "LMDB"
   110    116   	set packages(tclcurl) "cURL"
   111    117   	set packages(duktape) "Duktape"
   112    118   	set packages(tclpkcs11) "TclPKCS#11 (pki::pkcs11)"
   113    119   	set packages(tcllux) "TclLuX (Tcl UNIX Utilities)"
          120  +	set packages(critcl) "critcl"
   114    121   
   115    122   	set options_info(threaded) "Kit: Threaded"
   116    123   	set options_info(kitdll) "Kit: Build Library (KitDLL)"
   117    124   	set options_info(debug) "Kit: Debugging Build"
   118    125   	set options_info(dynamictk) "Kit: Always link Tk dynamically (if Tk is built)"
   119    126   	set options_info(minbuild) "Kit: \"Minimal\" build (remove extra packages shipped as part of Tcl and reduce encodings)"
   120    127   	set options_info(staticlibssl) "TLS: Statically link to LibSSL"
................................................................................
   147    154   		kitcreator_version <0.9.0 {package_tcc4tcl}
   148    155   		kitcreator_version <0.9.2 {package_tcllib package_tclx package_udp package_yajltcl}
   149    156   		kitcreator_version <0.9.3 {package_nsf}
   150    157   		kitcreator_version <0.10.0 {package_tdom package_tuapi}
   151    158   		kitcreator_version <0.11.0 {package_lmdb}
   152    159   		kitcreator_version <0.11.1 {package_tclcurl package_duktape}
   153    160   		kitcreator_version <0.12.0 {package_tclpkcs11 package_tcllux}
          161  +		kitcreator_version <trunk {package_critcl}
   154    162   	}
   155    163   
   156    164   	set specific {
   157    165   		platform win32 file icon {Kit Icon}
   158    166   		platform win32 text description {Description}
   159    167   		platform win64 file icon {Kit Icon}
   160    168   		platform win64 text description {Description}
................................................................................
   395    403   				break
   396    404   			}
   397    405   		}
   398    406   
   399    407   		# Resolve version numbers to checkin IDs
   400    408   		## XXX: TODO
   401    409   		set cache_tcl_version $build_tcl_version
   402         -		if {$build_tcl_version == "fossil_trunk"} {
   403         -			set cache_tcl_version [clock format [clock seconds] -format {%Y%m%d}]
          410  +		if {[string match "fossil_*" $build_tcl_version]} {
          411  +			set cache_tcl_version "${build_tcl_version}_[clock format [clock seconds] -format {%Y%m%d}]"
   404    412   		}
   405    413   
   406    414   		set cache_kitcreator_version $build_kitcreator_version
   407    415   		if {$build_kitcreator_version == "trunk"} {
   408    416   			set cache_kitcreator_version [clock format [clock seconds] -format {%Y%m%d}]
   409    417   		}
   410    418   
................................................................................
   512    520   
   513    521   	function versionEncoded(versionString) {
   514    522   		var output = 0;
   515    523   
   516    524   		if (versionString === "trunk") {
   517    525   			return(versionEncoded("255.255.255"));
   518    526   		}
          527  +
          528  +		if (versionString === "core-8-7a3") {
          529  +			return(versionEncoded("8.6.253"));
          530  +		}
   519    531   
   520    532   		try {
   521    533   			versionString.split(".").slice(0, 3).forEach(function(element) {
   522    534   				element = parseInt(element);
   523    535   				if (isNaN(element)) {
   524    536   					throw new Error("Invalid version string");
   525    537   				}

Added critcl/build.sh version [a9ff88ca8e].

            1  +#! /usr/bin/env bash
            2  +
            3  +# BuildCompatible: KitCreator
            4  +
            5  +version='3.1.18.1'
            6  +url="http://github.com/andreas-kupries/critcl/tarball/${version}/critcl-${version}.tar.gz"
            7  +sha256='c26893bda46dfda332d2e7d7410ae998eafda697169ea25b4256295d293089de'
            8  +
            9  +function configure() {
           10  +	:
           11  +}
           12  +
           13  +function build() {
           14  +	:
           15  +}
           16  +
           17  +function install() {
           18  +	local tclmajminvers
           19  +	local critcl_cdir
           20  +
           21  +	mkdir -p "${installdir}/lib" || return 1
           22  +
           23  +	tclmajminvers="$(echo "${TCLVERS}" | cut -f 1-2 -d .)"
           24  +
           25  +	"${TCLSH_NATIVE}" ./build.tcl install "${installdir}/lib" || return 1
           26  +
           27  +	critcl_cdir="$(echo "${installdir}/lib"/critcl*/critcl_c)"
           28  +
           29  +	mv "${critcl_cdir}/tcl${tclmajminvers}" "${critcl_cdir}/.keep-tcl" || return 1
           30  +	rm -rf "${critcl_cdir}"/tcl*/
           31  +	mv "${critcl_cdir}/.keep-tcl" "${critcl_cdir}/tcl${tclmajminvers}" || return 1
           32  +
           33  +	return 0
           34  +}