diff options
author | Norbert Preining <norbert@preining.info> | 2024-03-15 03:06:35 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-03-15 03:06:35 +0000 |
commit | 12679ab7d3c2a210f4123163671b532b8b55d5f9 (patch) | |
tree | 0060d13467186ad977f4e73488ee20dd6c0017ab /systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl | |
parent | 62170822e034fdd3f81de7274835d0d3b0467100 (diff) |
CTAN sync 202403150306
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl')
-rw-r--r-- | systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl b/systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl new file mode 100644 index 0000000000..19a11599a1 --- /dev/null +++ b/systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.5/pkgIndex.tcl @@ -0,0 +1,26 @@ +# -*- tcl -*- +# Tcl package index file, version 1.1 +# +# Make sure that TDBC is running in a compatible version of Tcl, and +# that TclOO is available. + +if {![package vsatisfies [package provide Tcl] 8.6-]} { + return +} +apply {{dir} { + set libraryfile [file join $dir tdbc.tcl] + if {![file exists $libraryfile] && [info exists ::env(TDBC_LIBRARY)]} { + set libraryfile [file join $::env(TDBC_LIBRARY) tdbc.tcl] + } + if {[package vsatisfies [package provide Tcl] 9.0-]} { + package ifneeded tdbc 1.1.5 \ + "package require TclOO;\ + [list load [file join $dir tcl9tdbc115.dll] [string totitle tdbc]]\;\ + [list source $libraryfile]" + } else { + package ifneeded tdbc 1.1.5 \ + "package require TclOO;\ + [list load [file join $dir tdbc115.dll] [string totitle tdbc]]\;\ + [list source $libraryfile]" + } +}} $dir |