diff options
author | Martin Matuska <mm@FreeBSD.org> | 2009-02-26 14:19:53 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2009-02-26 14:19:53 +0000 |
commit | a152a878b7d2d67c239f5ff20fbb852443024b96 (patch) | |
tree | 14a1306c13dc49231b11959cfef6994fa2640077 /lang/tcl85 | |
parent | Update to 1.23 (diff) |
- Disable install of function manpages by default
- Add manual page for tclsh8.x and wish8.x
- Bump PORTREVISION
Notes
Notes:
svn path=/head/; revision=229081
Diffstat (limited to 'lang/tcl85')
-rw-r--r-- | lang/tcl85/Makefile | 38 | ||||
-rw-r--r-- | lang/tcl85/files/patch-unix-Makefile.in | 55 | ||||
-rw-r--r-- | lang/tcl85/pkg-plist | 4 |
3 files changed, 57 insertions, 40 deletions
diff --git a/lang/tcl85/Makefile b/lang/tcl85/Makefile index f8fbe9a7e3c0..ac8ba9c2021b 100644 --- a/lang/tcl85/Makefile +++ b/lang/tcl85/Makefile @@ -7,6 +7,7 @@ PORTNAME= tcl PORTVERSION= 8.5.6 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= tcl @@ -31,7 +32,7 @@ PLIST_SUB= TCL_VER=${TCL_VER} SHORT_TCL_VER=${SHORT_TCL_VER} EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/ .if !defined(BUILDING_TCL_THREADS) -OPTIONS= TCL85_MAN "Install tcl 8.5 manpages" off \ +OPTIONS= TCL85_MAN "Install tcl 8.5 function manpages" off \ TZDATA "Install tcl timezone data" off .else USE_TCL= ${SHORT_TCL_VER} @@ -41,12 +42,18 @@ THREADS_SUFFIX= -threads .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + .if defined(WITH_TZDATA) PLIST_SUB+= TZDATA="" .else PLIST_SUB+= TZDATA="@comment " .endif +.if !defined(NO_INSTALL_MANPAGES) +MAN1= tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.endif + .if defined(BUILDING_TCL_THREADS) . if (${ARCH} == "ia64") BROKEN= does not compile on ia64 @@ -65,16 +72,8 @@ CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS CONFIGURE_ARGS+= --disable-threads -.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TCL85_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' -MAN1= tclsh.1 +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL85_MAN) MAN3= Access.3 AddErrInfo.3 Alloc.3 AllowExc.3 AppInit.3 AssocData.3 \ Async.3 BackgdErr.3 Backslash.3 BoolObj.3 ByteArrObj.3 CallDel.3 \ @@ -701,8 +700,12 @@ LATEST_LINK= tcl85${THREADS_SUFFIX} TCLBASE?= ${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK} -.if defined(BUILDING_TCL_THREADS) post-patch: + @${REINPLACE_CMD} -e 's|tclsh |tclsh${TCL_VER}${THREADS_SUFFIX} |g' -e 's|Tclsh |Tclsh${TCL_VER}${THREADS_SUFFIX} |g' \ + -e 's|tclsh\\fR|tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' -e 's|Tclsh\\fR|Tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' \ + -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/tclsh.1 +.if defined(BUILDING_TCL_THREADS) @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ -e 's|$${TCL_TRIM_DOTS}|$${TCL_TRIM_DOTS}${THREADS_SUFFIX}|g' \ -e 's|-ltcl$${TCL_VERSION}|-ltcl$${TCL_VERSION}${THREADS_SUFFIX}|g' \ @@ -740,22 +743,27 @@ do-install: @cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -f Makefile install-binaries @${MKDIR} ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX} @${LN} -s ${PREFIX}/lib/tcl${TCL_VER}/tclConfig${THREADS_SUFFIX}.sh ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX}/tclConfig.sh -.else +.endif + post-install: .if defined(WITH_TZDATA) @cd ${WRKSRC} && ${MAKE} -f Makefile install-tzdata ${MAKE_ENV} .endif -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL85_MAN) ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} +.if !defined(NO_INSTALL_MANPAGES) + ${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/../doc/tclsh.1 ${MANPREFIX}/man/man1/tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.if !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL85_MAN) . for mp in ${MAN1} ${MAN3} ${MANN} @${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ ${WRKSRC}/../doc/${mp} . endfor @cd ${WRKSRC} && ${MAKE} -f Makefile install-doc ${MAKE_ENV} -.endif -.endif # !defined(BUILDING_TCL_THREADS) +.endif # !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL85_MAN) + +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC} && LC_ALL=C ${MAKE} test diff --git a/lang/tcl85/files/patch-unix-Makefile.in b/lang/tcl85/files/patch-unix-Makefile.in index 333badbf8c00..66dd98728f1b 100644 --- a/lang/tcl85/files/patch-unix-Makefile.in +++ b/lang/tcl85/files/patch-unix-Makefile.in @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2008-03-28 19:41:53.000000000 +0100 -+++ Makefile.in 2008-04-02 11:49:46.000000000 +0200 +--- Makefile.in.orig 2008-12-22 18:45:06.000000000 +0100 ++++ Makefile.in 2009-02-26 11:53:11.121953378 +0100 @@ -55,6 +55,8 @@ # Directory in which to install the include file tcl.h: @@ -9,7 +9,7 @@ # Path to the private tcl header dir: PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ -@@ -98,7 +100,7 @@ +@@ -101,7 +103,7 @@ #CFLAGS = $(CFLAGS_DEBUG) #CFLAGS = $(CFLAGS_OPTIMIZE) #CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) @@ -18,9 +18,12 @@ # Flags to pass to the linker LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ -@@ -538,7 +540,8 @@ +@@ -579,9 +581,10 @@ + SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $(UNIX_SRCS) $(NOTIFY_SRCS) \ + $(OO_SRCS) $(STUB_SRCS) @PLAT_SRCS@ @ZLIB_SRCS@ - all: binaries libraries doc +-all: binaries libraries doc packages ++all: binaries libraries doc -binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh +binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) \ @@ -28,7 +31,7 @@ libraries: -@@ -549,6 +552,15 @@ +@@ -592,6 +595,15 @@ ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} rm -f $@ @MAKE_LIB@ @@ -44,16 +47,16 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} rm -f $@ -@@ -697,7 +709,7 @@ +@@ -726,7 +738,7 @@ dltest.marker: ${STUB_LIB_FILE} cd dltest ; $(MAKE) --INSTALL_TARGETS = install-binaries install-libraries install-doc @EXTRA_INSTALL@ +-INSTALL_TARGETS = install-binaries install-libraries install-doc install-packages @EXTRA_INSTALL@ +INSTALL_TARGETS = install-binaries install-libraries @EXTRA_INSTALL@ install: $(INSTALL_TARGETS) -@@ -726,6 +738,13 @@ +@@ -755,6 +767,13 @@ @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/" @@INSTALL_LIB@ @chmod 555 "$(LIB_INSTALL_DIR)"/$(LIB_FILE) @@ -67,7 +70,7 @@ @if test "$(TCL_BUILD_EXP_FILE)" != ""; then \ echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \ $(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \ -@@ -733,8 +752,9 @@ +@@ -762,8 +781,9 @@ fi @echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)" @$(INSTALL_PROGRAM) tclsh "$(BIN_INSTALL_DIR)"/tclsh$(VERSION) @@ -79,7 +82,7 @@ @if test "$(STUB_LIB_FILE)" != "" ; then \ echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ @INSTALL_STUB_LIB@ ; \ -@@ -742,7 +762,8 @@ +@@ -771,7 +791,8 @@ @EXTRA_INSTALL_BINARIES@ install-libraries: libraries $(INSTALL_TZDATA) install-msgs @@ -89,36 +92,42 @@ do \ if [ ! -d "$$i" ] ; then \ echo "Making directory $$i"; \ -@@ -764,13 +785,17 @@ - chmod +x $(SRC_DIR)/../unix/install-sh; \ +@@ -793,14 +814,21 @@ + chmod +x $(UNIX_DIR)/install-sh; \ fi @echo "Installing header files"; - @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 ; \ + @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 "$(INCLUDE_INSTALL_DIR)"; \ -+ $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"; \ ++ $(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_INCLUDE_INSTALL_DIR)"/tcl.h "$(INCLUDE_INSTALL_DIR)"/tcl.h + @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclDecls.h "$(INCLUDE_INSTALL_DIR)"/tclDecls.h + @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclPlatDecls.h "$(INCLUDE_INSTALL_DIR)"/tclPlatDecls.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclOO.h "$(INCLUDE_INSTALL_DIR)"/tclOO.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclOODecls.h "$(INCLUDE_INSTALL_DIR)"/tclOODecls.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclTomMath.h "$(INCLUDE_INSTALL_DIR)"/tclTomMath.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclTomMathDecls.h "$(INCLUDE_INSTALL_DIR)"/tclTomMathDecls.h @echo "Installing library files to $(SCRIPT_INSTALL_DIR)"; @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex \ $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix @DTRACE_SRC@; \ -@@ -838,18 +863,27 @@ +@@ -866,20 +894,25 @@ + else true; \ + fi; \ done; - @echo "Installing and cross-linking top-level (.1) docs"; - @for i in $(TOP_DIR)/doc/*.1; do \ +- @echo "Installing and cross-linking top-level (.1) docs"; +- @for i in $(TOP_DIR)/doc/*.1; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN1_INSTALL_DIR)"; \ -+ ${BSD_INSTALL_MAN} $$i "$(MAN1_INSTALL_DIR)"; \ - done +- done @echo "Installing and cross-linking C API (.3) docs"; @for i in $(TOP_DIR)/doc/*.3; do \ diff --git a/lang/tcl85/pkg-plist b/lang/tcl85/pkg-plist index 467e0aaf0c9b..82e1c7ec5379 100644 --- a/lang/tcl85/pkg-plist +++ b/lang/tcl85/pkg-plist @@ -822,8 +822,8 @@ lib/tcl8/8.4/platform/shell-1.1.4.tm lib/tcl8/8.4/platform-1.0.3.tm lib/tcl8/8.5/msgcat-1.4.2.tm lib/tcl8/8.5/tcltest-2.3.0.tm -%%INSTMAN%%%%DATADIR%%/man.macros -%%INSTMAN%%@dirrm %%DATADIR%% +%%DATADIR%%/man.macros +@dirrm %%DATADIR%% %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/US %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/SystemV %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/Pacific |