diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2016-03-01 10:32:30 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2016-03-01 10:32:30 +0000 |
commit | ededf36b7eb459d20d31d3fc209c1ab3f99997cf (patch) | |
tree | e981bf10339b5f05af05184467c22cd7013752de /lang/tcl86 | |
parent | 15382f9ee67732e5b51b047907ea93e0094ec7aa (diff) | |
download | ports-ededf36b7eb459d20d31d3fc209c1ab3f99997cf.tar.gz ports-ededf36b7eb459d20d31d3fc209c1ab3f99997cf.zip |
Notes
Diffstat (limited to 'lang/tcl86')
-rw-r--r-- | lang/tcl86/Makefile | 14 | ||||
-rw-r--r-- | lang/tcl86/files/patch-unix-Makefile.in | 48 | ||||
-rw-r--r-- | lang/tcl86/files/patch-unix-configure | 6 | ||||
-rw-r--r-- | lang/tcl86/files/patch-unix-installManPage | 6 |
4 files changed, 42 insertions, 32 deletions
diff --git a/lang/tcl86/Makefile b/lang/tcl86/Makefile index 6bafeadde7f6..f18b718e56a0 100644 --- a/lang/tcl86/Makefile +++ b/lang/tcl86/Makefile @@ -3,6 +3,7 @@ PORTNAME= tcl PORTVERSION= 8.6.5 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= SF/tcl/Tcl/${PORTVERSION} \ TCLTK/tcl8_6 @@ -28,7 +29,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix ALL_TARGET= all INSTALL_TARGET= install-strip install-libraries -TEST_TARGET= do-test USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -48,13 +48,11 @@ MAKE_ENV= SHORT_TCL_VER=${SHORT_TCL_VER} \ PLIST_SUB= TCL_VER=${TCL_VER} \ SHORT_TCL_VER=${SHORT_TCL_VER} -TCLMAN_VARS= INSTALL_TARGET+=install-doc -TZDATA_VARS= INSTALL_TARGET+=install-tzdata -MODULES_VARS= INSTALL_TARGET+=install-modules +TCLMAN_INSTALL_TARGET= install-doc +TZDATA_INSTALL_TARGET= install-tzdata +MODULES_INSTALL_TARGET= install-modules THREADS_CONFIGURE_ENABLE= threads -.include <bsd.port.options.mk> - post-patch: ${REINPLACE_CMD} -e \ 's|@TCL_BUILD_LIB_SPEC@|@TCL_LIB_SPEC@|; \ @@ -62,10 +60,10 @@ post-patch: s|@TCL_BUILD_STUB_LIB_PATH@|@TCL_STUB_LIB_PATH@|; \ s|@TCL_SRC_DIR@|${PREFIX}/include/tcl${TCL_VER}|' \ ${WRKSRC}/tclConfig.sh.in -.if !${PORT_OPTIONS:MTCLMAN} + +post-patch-TCLMAN-off: @${FIND} ${WRKSRC}/../pkgs -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \ -e '/^install:/s|install-doc||' -.endif post-configure: ${REINPLACE_CMD} \ diff --git a/lang/tcl86/files/patch-unix-Makefile.in b/lang/tcl86/files/patch-unix-Makefile.in index d0d175ebf217..fff304404c4f 100644 --- a/lang/tcl86/files/patch-unix-Makefile.in +++ b/lang/tcl86/files/patch-unix-Makefile.in @@ -1,6 +1,6 @@ ---- Makefile.in.orig 2016-02-16 19:00:36 UTC -+++ Makefile.in -@@ -54,6 +54,8 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TC +--- Makefile.in.orig 2016-03-01 01:59:35.000000000 +0000 ++++ Makefile.in 2016-03-01 10:27:50.303199000 +0000 +@@ -54,6 +54,8 @@ # Directory in which to install the include file tcl.h: INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) @@ -9,7 +9,7 @@ # Path to the private tcl header dir: PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ -@@ -80,10 +82,10 @@ HTML_DIR = @HTML_DIR@ +@@ -80,10 +82,10 @@ HTML_INSTALL_DIR = $(INSTALL_ROOT)$(HTML_DIR) # Directory in which to install the configuration file tclConfig.sh @@ -22,7 +22,7 @@ # Package search path. TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@ -@@ -612,9 +614,9 @@ SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $ +@@ -612,9 +614,9 @@ # Start of rules #-------------------------------------------------------------------------- @@ -34,7 +34,7 @@ libraries: -@@ -625,6 +627,12 @@ doc: +@@ -625,6 +627,12 @@ ${LIB_FILE}: ${STUB_LIB_FILE} ${OBJS} rm -f $@ @MAKE_LIB@ @@ -47,7 +47,7 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} @if test "x${LIB_FILE}" = "xlibtcl${MAJOR_VERSION}.${MINOR_VERSION}.dll"; then \ -@@ -768,13 +776,13 @@ trace-test: ${TCLTEST_EXE} +@@ -768,13 +776,13 @@ # Installation rules #-------------------------------------------------------------------------- @@ -64,7 +64,7 @@ install: $(INSTALL_TARGETS) -@@ -796,6 +804,11 @@ install-binaries: binaries +@@ -796,6 +804,11 @@ @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" @@INSTALL_LIB@ @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)" @@ -76,7 +76,7 @@ @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/" -@@ -808,12 +821,20 @@ install-binaries: binaries +@@ -808,12 +821,17 @@ @INSTALL_STUB_LIB@ ; \ fi @EXTRA_INSTALL_BINARIES@ @@ -91,9 +91,6 @@ + do \ + $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"; \ + done; -+ @echo "Customizing tcl module path"; \ -+ echo "::tcl::tm::path add {$(TCL_LIBRARY)}" >> \ -+ "$(SCRIPT_INSTALL_DIR)"/tm.tcl; install-libraries: libraries - @for i in "$(SCRIPT_INSTALL_DIR)"; \ @@ -101,7 +98,7 @@ do \ if [ ! -d "$$i" ] ; then \ echo "Making directory $$i"; \ -@@ -821,7 +842,13 @@ install-libraries: libraries +@@ -821,7 +839,13 @@ else true; \ fi; \ done; @@ -116,7 +113,7 @@ do \ if [ ! -d "$(SCRIPT_INSTALL_DIR)"/$$i ] ; then \ echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ -@@ -841,21 +868,21 @@ install-libraries: libraries +@@ -841,31 +865,31 @@ $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/http1.0; \ done; @echo "Installing package http 2.8.9 as a Tcl Module"; @@ -143,7 +140,22 @@ @echo "Installing encoding files to $(SCRIPT_INSTALL_DIR)/encoding/"; @for i in $(TOP_DIR)/library/encoding/*.enc ; do \ -@@ -940,7 +967,7 @@ install-doc: doc + $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/encoding; \ + done; +- @if [ -n "$(TCL_MODULE_PATH)" -a -f $(TOP_DIR)/library/tm.tcl ]; then \ +- echo "Customizing tcl module path"; \ +- echo "if {![interp issafe]} { ::tcl::tm::roots {$(TCL_MODULE_PATH)} }" >> \ +- "$(SCRIPT_INSTALL_DIR)"/tm.tcl; \ +- fi ++ @echo "Customizing tcl module path"; \ ++ echo "if {![interp issafe]} { ::tcl::tm::roots {$(TCL_MODULE_PATH)} }" >> \ ++ "$(SCRIPT_INSTALL_DIR)"/tm.tcl; \ ++ echo "::tcl::tm::path add {$(TCL_LIBRARY)}" >> \ ++ "$(SCRIPT_INSTALL_DIR)"/tm.tcl; \ + + install-tzdata: + @for i in tzdata; \ +@@ -940,7 +964,7 @@ done install-headers: @@ -152,7 +164,7 @@ do \ if [ ! -d "$$i" ] ; then \ echo "Making directory $$i"; \ -@@ -949,14 +976,19 @@ install-headers: +@@ -949,14 +973,19 @@ fi; \ done; @echo "Installing header files to $(INCLUDE_INSTALL_DIR)/"; @@ -165,10 +177,10 @@ - $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \ + @for i in $(GENERIC_DIR)/*.h; do \ + $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"/; \ - done; ++ done; + @for i in $(UNIX_DIR)/*.h; do \ + $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"/; \ -+ done; + done; + @ln -sf generic/tcl.h "$(INCLUDE_INSTALL_DIR)"/tcl.h + @ln -sf generic/tclDecls.h "$(INCLUDE_INSTALL_DIR)"/tclDecls.h + @ln -sf generic/tclPlatDecls.h "$(INCLUDE_INSTALL_DIR)"/tclPlatDecls.h diff --git a/lang/tcl86/files/patch-unix-configure b/lang/tcl86/files/patch-unix-configure index 73ba15164141..08d3f06fe6ca 100644 --- a/lang/tcl86/files/patch-unix-configure +++ b/lang/tcl86/files/patch-unix-configure @@ -1,6 +1,6 @@ ---- configure.orig 2014-08-29 15:40:10.000000000 +0200 -+++ configure 2014-08-29 15:40:23.000000000 +0200 -@@ -7764,15 +7764,11 @@ +--- configure.orig 2016-03-01 01:59:35 UTC ++++ configure +@@ -7617,15 +7617,11 @@ fi LDFLAGS="$LDFLAGS $PTHREAD_LIBS" fi diff --git a/lang/tcl86/files/patch-unix-installManPage b/lang/tcl86/files/patch-unix-installManPage index faa571e09f8e..0b0785b6560f 100644 --- a/lang/tcl86/files/patch-unix-installManPage +++ b/lang/tcl86/files/patch-unix-installManPage @@ -1,6 +1,6 @@ ---- installManPage.orig 2013-01-15 15:06:06.000000000 +0100 -+++ installManPage 2013-01-15 15:07:17.000000000 +0100 -@@ -100,7 +100,7 @@ +--- installManPage.orig 2016-03-01 01:59:35 UTC ++++ installManPage +@@ -100,7 +100,7 @@ SrcDir=`dirname $ManPage` First="" for Target in $Names; do |