svn commit: r441573 - in head/lang/tcl87: . files

Pietro Cerutti gahr at FreeBSD.org
Wed May 24 11:11:45 UTC 2017


Author: gahr
Date: Wed May 24 11:11:43 2017
New Revision: 441573
URL: https://svnweb.freebsd.org/changeset/ports/441573

Log:
  lang/tcl87: update to fossil checkin f1c99ff14c
  
  Restructure a bit the installation so that it matches more what upstream
  provides.
  
  Changelog: http://core.tcl.tk/tcl/timeline?from=f590914719&to=f1c99ff14c&sbs=1

Deleted:
  head/lang/tcl87/files/patch-generic-tclPort.h
  head/lang/tcl87/files/patch-unix-configure
Modified:
  head/lang/tcl87/Makefile
  head/lang/tcl87/distinfo
  head/lang/tcl87/files/patch-unix-Makefile.in
  head/lang/tcl87/files/patch-unix-installManPage
  head/lang/tcl87/pkg-plist

Modified: head/lang/tcl87/Makefile
==============================================================================
--- head/lang/tcl87/Makefile	Wed May 24 10:35:48 2017	(r441572)
+++ head/lang/tcl87/Makefile	Wed May 24 11:11:43 2017	(r441573)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	tcl
-DISTVERSION=	8.7.a0.20170426
+DISTVERSION=	8.7.a0.20170524
 PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://core.tcl.tk/tcl/tarball/
@@ -32,13 +32,13 @@ OPTIONS_EXCLUDE+=	DTRACE
 
 OPTIONS_EXCLUDE_FreeBSD_10=	DTRACE
 
-FOSSIL_CHECKIN=	f590914719
+FOSSIL_CHECKIN=	f1c99ff14c
 
 PATCH_WRKSRC=	${WRKDIR}/Tcl_Source_Code
 WRKSRC=		${PATCH_WRKSRC}/unix
 
 ALL_TARGET=	all
-INSTALL_TARGET=	install-strip install-libraries
+INSTALL_TARGET=	install-strip
 TEST_TARGET=	test-tcl
 
 USE_LDCONFIG=	yes
@@ -89,5 +89,9 @@ post-configure:
 	${REINPLACE_CMD} \
 		-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
 		-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
+post-install:
+	# Make sure users of USES=tcl:87 are able to look up the library
+	${LN} -s libtcl${TCL_VER}.so ${STAGEDIR}${PREFIX}/lib/libtcl${PKGNAMESUFFIX}.so
+	${LN} -s libtcl${PKGNAMESUFFIX}.so ${STAGEDIR}${PREFIX}/lib/libtcl${PKGNAMESUFFIX}.so.1
 
 .include <bsd.port.mk>

Modified: head/lang/tcl87/distinfo
==============================================================================
--- head/lang/tcl87/distinfo	Wed May 24 10:35:48 2017	(r441572)
+++ head/lang/tcl87/distinfo	Wed May 24 11:11:43 2017	(r441573)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1493214151
-SHA256 (Tcl+Source+Code.tar.gz?uuid=f590914719) = bc361e30952738f8cdd3211604edca63f48a4b7415884aba4787ee40e40d02da
-SIZE (Tcl+Source+Code.tar.gz?uuid=f590914719) = 6694594
+TIMESTAMP = 1495624201
+SHA256 (Tcl+Source+Code.tar.gz?uuid=f1c99ff14c) = 82670b87b2b03090195008ce6a41b10248720e75948e3703b52e2e85e7330896
+SIZE (Tcl+Source+Code.tar.gz?uuid=f1c99ff14c) = 6825206

Modified: head/lang/tcl87/files/patch-unix-Makefile.in
==============================================================================
--- head/lang/tcl87/files/patch-unix-Makefile.in	Wed May 24 10:35:48 2017	(r441572)
+++ head/lang/tcl87/files/patch-unix-Makefile.in	Wed May 24 11:11:43 2017	(r441573)
@@ -1,15 +1,6 @@
---- unix/Makefile.in.orig	2016-06-01 12:03:50 UTC
+--- unix/Makefile.in.orig	2017-04-20 14:47:01 UTC
 +++ unix/Makefile.in
-@@ -54,6 +54,8 @@ SCRIPT_INSTALL_DIR	= $(INSTALL_ROOT)$(TC
- 
- # Directory in which to install the include file tcl.h:
- INCLUDE_INSTALL_DIR	= $(INSTALL_ROOT)$(includedir)
-+GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/generic
-+UNIX_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/unix
- 
- # Path to the private tcl header dir:
- PRIVATE_INCLUDE_DIR	= @PRIVATE_INCLUDE_DIR@
-@@ -80,10 +82,10 @@ HTML_DIR		= @HTML_DIR@
+@@ -80,10 +80,10 @@ HTML_DIR		= @HTML_DIR@
  HTML_INSTALL_DIR	= $(INSTALL_ROOT)$(HTML_DIR)
  
  # Directory in which to install the configuration file tclConfig.sh
@@ -22,38 +13,16 @@
  
  # Package search path.
  TCL_PACKAGE_PATH	= @TCL_PACKAGE_PATH@
-@@ -612,9 +614,9 @@ SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $
+@@ -613,7 +613,7 @@ SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $
  # Start of rules
  #--------------------------------------------------------------------------
  
 -all: binaries libraries doc packages
 +all: binaries libraries doc
  
--binaries: ${LIB_FILE} ${TCL_EXE}
-+binaries: ${LIB_FILE} ${TCL_EXE} libtcl${SHORT_TCL_VER}.a
- 
- libraries:
+ binaries: ${LIB_FILE} ${TCL_EXE}
  
-@@ -625,6 +627,12 @@ doc:
- ${LIB_FILE}: ${STUB_LIB_FILE} ${OBJS}
- 	rm -f $@
- 	@MAKE_LIB@
-+	@ln -sf ${LIB_FILE} ./libtcl${SHORT_TCL_VER}.so
-+
-+libtcl${SHORT_TCL_VER}.a: ${OBJS}
-+	rm -f libtcl${SHORT_TCL_VER}.a
-+	ar cr libtcl${SHORT_TCL_VER}.a ${OBJS}
-+	${RANLIB} libtcl${SHORT_TCL_VER}.a
- 
- ${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}
- # Installation rules
- #--------------------------------------------------------------------------
- 
--INSTALL_BASE_TARGETS = install-binaries install-libraries install-msgs $(INSTALL_TZDATA)
-+INSTALL_BASE_TARGETS = install-binaries install-msgs $(INSTALL_TZDATA)
- INSTALL_DOC_TARGETS = install-doc
+@@ -774,8 +774,8 @@ INSTALL_DOC_TARGETS = install-doc
  INSTALL_PACKAGE_TARGETS = install-packages
  INSTALL_DEV_TARGETS = install-headers
  INSTALL_EXTRA_TARGETS = @EXTRA_INSTALL@
@@ -64,19 +33,7 @@
  
  install: $(INSTALL_TARGETS)
  
-@@ -796,6 +804,11 @@ install-binaries: binaries
- 	@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
- 	@@INSTALL_LIB@
- 	@chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
-+	@ln -sf $(LIB_FILE) "$(DLL_INSTALL_DIR)"/libtcl${SHORT_TCL_VER}.so
-+	@echo "Installing libtcl${SHORT_TCL_VER}.a to $(DLL_INSTALL_DIR)"
-+	@$(INSTALL_DATA) libtcl${SHORT_TCL_VER}.a "$(DLL_INSTALL_DIR)"/libtcl${SHORT_TCL_VER}.a
-+	@(cd "$(DLL_INSTALL_DIR)" && ${RANLIB} libtcl${SHORT_TCL_VER}.a)
-+	@chmod 555 "$(DLL_INSTALL_DIR)"/libtcl${SHORT_TCL_VER}.a
- 	@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,17 @@ install-binaries: binaries
+@@ -809,12 +809,17 @@ install-binaries: binaries
  	    @INSTALL_STUB_LIB@ ; \
  	fi
  	@EXTRA_INSTALL_BINARIES@
@@ -98,7 +55,7 @@
  	    do \
  	    if [ ! -d "$$i" ] ; then \
  		echo "Making directory $$i"; \
-@@ -821,7 +839,13 @@ install-libraries: libraries
+@@ -822,7 +827,13 @@ install-libraries: libraries
  		else true; \
  		fi; \
  	    done;
@@ -113,12 +70,12 @@
  	    do \
  	    if [ ! -d "$(SCRIPT_INSTALL_DIR)"/$$i ] ; then \
  		echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \
-@@ -841,31 +865,31 @@ install-libraries: libraries
+@@ -842,31 +853,31 @@ install-libraries: libraries
  	    $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/http1.0; \
  	    done;
- 	@echo "Installing package http 2.8.10 as a Tcl Module";
--	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.6/http-2.8.10.tm;
-+	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/http-2.8.10.tm;
+ 	@echo "Installing package http 2.8.11 as a Tcl Module";
+-	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.6/http-2.8.11.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/http-2.8.11.tm;
  	@echo "Installing package opt0.4 files to $(SCRIPT_INSTALL_DIR)/opt0.4/";
  	@for i in $(TOP_DIR)/library/opt/*.tcl ; \
  	    do \
@@ -155,39 +112,3 @@
  
  install-tzdata:
  	@for i in tzdata; \
-@@ -940,7 +964,7 @@ install-doc: doc
- 	done
- 
- install-headers:
--	@for i in "$(INCLUDE_INSTALL_DIR)"; \
-+	@for i in "$(INCLUDE_INSTALL_DIR)" "$(GENERIC_INCLUDE_INSTALL_DIR)" "$(UNIX_INCLUDE_INSTALL_DIR)"; \
- 	    do \
- 	    if [ ! -d "$$i" ] ; then \
- 		echo "Making directory $$i"; \
-@@ -949,14 +973,19 @@ install-headers:
- 		fi; \
- 	    done;
- 	@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
--	@for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \
--		$(GENERIC_DIR)/tclOO.h $(GENERIC_DIR)/tclOODecls.h \
--		$(GENERIC_DIR)/tclPlatDecls.h \
--		$(GENERIC_DIR)/tclTomMath.h \
--		$(GENERIC_DIR)/tclTomMathDecls.h ; \
--	    do \
--	    $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \
-+	@for i in $(GENERIC_DIR)/*.h; do \
-+	    $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"/; \
-+	    done;
-+	@for i in $(UNIX_DIR)/*.h; do \
-+	    $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"/; \
- 	    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
-+	@ln -sf generic/tclOO.h "$(INCLUDE_INSTALL_DIR)"/tclOO.h
-+	@ln -sf generic/tclOODecls.h "$(INCLUDE_INSTALL_DIR)"/tclOODecls.h
-+	@ln -sf generic/tclTomMath.h "$(INCLUDE_INSTALL_DIR)"/tclTomMath.h
-+	@ln -sf generic/tclTomMathDecls.h "$(INCLUDE_INSTALL_DIR)"/tclTomMathDecls.h
- 
- # Optional target to install private headers
- install-private-headers:

Modified: head/lang/tcl87/files/patch-unix-installManPage
==============================================================================
--- head/lang/tcl87/files/patch-unix-installManPage	Wed May 24 10:35:48 2017	(r441572)
+++ head/lang/tcl87/files/patch-unix-installManPage	Wed May 24 11:11:43 2017	(r441573)
@@ -1,4 +1,4 @@
---- unix/installManPage.orig	2016-06-01 12:03:50 UTC
+--- unix/installManPage.orig	2017-04-20 14:47:01 UTC
 +++ unix/installManPage
 @@ -100,7 +100,7 @@ SrcDir=`dirname $ManPage`
  

Modified: head/lang/tcl87/pkg-plist
==============================================================================
--- head/lang/tcl87/pkg-plist	Wed May 24 10:35:48 2017	(r441572)
+++ head/lang/tcl87/pkg-plist	Wed May 24 11:11:43 2017	(r441573)
@@ -1,45 +1,16 @@
 bin/tclsh%%TCL_VER%%
-lib/libtcl%%PKGNAMESUFFIX%%.a
+lib/libtclstub%%TCL_VER%%.a
+lib/libtcl%%TCL_VER%%.so
 lib/libtcl%%PKGNAMESUFFIX%%.so
 lib/libtcl%%PKGNAMESUFFIX%%.so.1
-lib/libtclstub%%PKGNAMESUFFIX%%.a
-include/tcl%%TCL_VER%%/generic/regcustom.h
-include/tcl%%TCL_VER%%/generic/regerrs.h
-include/tcl%%TCL_VER%%/generic/regex.h
-include/tcl%%TCL_VER%%/generic/regguts.h
-include/tcl%%TCL_VER%%/generic/tcl.h
-include/tcl%%TCL_VER%%/generic/tclCompile.h
-include/tcl%%TCL_VER%%/generic/tclDecls.h
-include/tcl%%TCL_VER%%/generic/tclFileSystem.h
-include/tcl%%TCL_VER%%/generic/tclIO.h
-include/tcl%%TCL_VER%%/generic/tclInt.h
-include/tcl%%TCL_VER%%/generic/tclIntDecls.h
-include/tcl%%TCL_VER%%/generic/tclIntPlatDecls.h
-include/tcl%%TCL_VER%%/generic/tclOO.h
-include/tcl%%TCL_VER%%/generic/tclOODecls.h
-include/tcl%%TCL_VER%%/generic/tclOOInt.h
-include/tcl%%TCL_VER%%/generic/tclOOIntDecls.h
-include/tcl%%TCL_VER%%/generic/tclParse.h
-include/tcl%%TCL_VER%%/generic/tclPlatDecls.h
-include/tcl%%TCL_VER%%/generic/tclPort.h
-include/tcl%%TCL_VER%%/generic/tclRegexp.h
-include/tcl%%TCL_VER%%/generic/tclStringRep.h
-include/tcl%%TCL_VER%%/generic/tclStringTrim.h
-include/tcl%%TCL_VER%%/generic/tclTomMath.h
-include/tcl%%TCL_VER%%/generic/tclTomMathDecls.h
-include/tcl%%TCL_VER%%/generic/tclTomMathInt.h
-include/tcl%%TCL_VER%%/generic/tommath.h
 include/tcl%%TCL_VER%%/tcl.h
 include/tcl%%TCL_VER%%/tclDecls.h
-%%DTRACE%%include/tcl%%TCL_VER%%/unix/tclDTrace.h
 include/tcl%%TCL_VER%%/tclOO.h
 include/tcl%%TCL_VER%%/tclOODecls.h
 include/tcl%%TCL_VER%%/tclPlatDecls.h
 include/tcl%%TCL_VER%%/tclTomMath.h
 include/tcl%%TCL_VER%%/tclTomMathDecls.h
-include/tcl%%TCL_VER%%/unix/tclUnixPort.h
-include/tcl%%TCL_VER%%/unix/tclUnixThrd.h
-%%MODULES%%lib/tcl%%TCL_VER%%/http-2.8.10.tm
+%%MODULES%%lib/tcl%%TCL_VER%%/http-2.8.11.tm
 %%MODULES%%lib/tcl%%TCL_VER%%/http1.0/http.tcl
 %%MODULES%%lib/tcl%%TCL_VER%%/http1.0/pkgIndex.tcl
 %%MODULES%%lib/tcl%%TCL_VER%%/msgcat-1.6.0.tm


More information about the svn-ports-all mailing list