diff --git a/repos/ports/recipes/src/tclsh/content.mk b/repos/ports/recipes/src/tclsh/content.mk index cf1366765..4df1110a9 100644 --- a/repos/ports/recipes/src/tclsh/content.mk +++ b/repos/ports/recipes/src/tclsh/content.mk @@ -4,10 +4,16 @@ PORT_DIR := $(call port_dir,$(REP_DIR)/ports/tcl) TCL_CONTENT := unix generic compat libtommath +PORT_LIB_FILES := \ + clock.tcl dde/pkgIndex.tcl http/pkgIndex.tcl http1.0/pkgIndex.tcl init.tcl \ + msgcat/msgcat.tcl msgcat/pkgIndex.tcl opt/pkgIndex.tcl package.tcl \ + platform/pkgIndex.tcl reg/pkgIndex.tcl tcltest/pkgIndex.tcl tm.tcl \ + tzdata/Etc/UTC tzdata/UTC tclIndex + src/noux-pkg/tcl: mkdir -p $@/library cp -a $(addprefix $(PORT_DIR)/src/noux-pkg/tcl/,$(TCL_CONTENT)) $@ - cp -a $(PORT_DIR)/src/noux-pkg/tcl/library/init.tcl $@/library/ + $(VERBOSE)tar -C $(PORT_DIR)/src/noux-pkg/tcl/library -cf - $(PORT_LIB_FILES) | tar -C $@/library -xf - src/noux-pkg/tclsh: mkdir -p $@ diff --git a/repos/ports/src/noux-pkg/tclsh/target.mk b/repos/ports/src/noux-pkg/tclsh/target.mk index 92b16eaa3..8992475ce 100644 --- a/repos/ports/src/noux-pkg/tclsh/target.mk +++ b/repos/ports/src/noux-pkg/tclsh/target.mk @@ -9,11 +9,17 @@ INSTALL_TARGET := INSTALL_LIB_DIR := install/lib/tcl8.6 +INSTALL_LIB_FILES := \ + clock.tcl dde/pkgIndex.tcl http/pkgIndex.tcl http1.0/pkgIndex.tcl init.tcl \ + msgcat/msgcat.tcl msgcat/pkgIndex.tcl opt/pkgIndex.tcl package.tcl \ + platform/pkgIndex.tcl reg/pkgIndex.tcl tcltest/pkgIndex.tcl tm.tcl \ + tzdata/Etc/UTC tzdata/UTC tclIndex + installed.tag: @$(MSG_INST)$(TARGET) $(VERBOSE)mkdir -p install/bin $(INSTALL_LIB_DIR) $(VERBOSE)$(STRIP) tclsh -o install/bin/tclsh - $(VERBOSE)cp $(PKG_DIR)/library/init.tcl $(INSTALL_LIB_DIR) + $(VERBOSE)tar -C $(PKG_DIR)/library -cf - $(INSTALL_LIB_FILES) | tar -C $(INSTALL_LIB_DIR) -xf - @touch $@ include $(call select_from_repositories,mk/noux.mk)