From 898abf64ac1b967132128da6d1bd47b14ff843e8 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 30 Jun 2001 18:24:17 +0000 Subject: - Don't install the short names for section 3 manpages as the names are too generic, e.g. Hash, Object, Access. Approved by jwise@netbsd.org. - Touch ${TCL_LIB_FILE} after the build so that the library isn't relinked during installation. --- lang/tcl/Makefile | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'lang/tcl/Makefile') diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile index 896392b122a..4b4fba7fc98 100644 --- a/lang/tcl/Makefile +++ b/lang/tcl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2001/06/21 18:07:51 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2001/06/30 18:24:17 jlam Exp $ # DISTNAME= tcl8.3.2 @@ -17,13 +17,38 @@ CONFLICTS+= tclman80-* WRKSRC= ${WRKDIR}/${DISTNAME}/unix GNU_CONFIGURE= yes +MAKE_ENV+= TOUCH="${TOUCH}" USE_BUILDLINK_ONLY= yes USE_LIBTOOL= yes INSTALL_TARGET= install +# Initially install the man pages into ${WRKDIR}/man, as we need a staged +# install to avoid overwriting existing manpages in ${PREFIX}/man. +# +CONFIGURE_ARGS+= --mandir=${WRKDIR}/man + +# Modify mkLinks script to remove the short-filename manpage if it was +# linked to a longer filename. +# +post-patch: + @cd ${WRKSRC}; \ + ${MV} -f mkLinks mkLinks.tmp; \ + ${GREP} -v "^exit 0" mkLinks.tmp > mkLinks; \ + ${CAT} mkLinks.tmp \ + | ${AWK} '/^ *ln / { print $$2 }' \ + | ${SORT} -u \ + | ${GREP} -v ".*\.n" \ + | ${SED} -e "s,^,${RM} -f ," \ + >> mkLinks; \ + ${RM} -f mkLinks.tmp; \ + ${CHMOD} +x mkLinks; + post-install: + ${CHMOD} -R ugo-w ${WRKDIR}/man + cd ${WRKDIR}; ${PAX} -rw man ${PREFIX} + ${CHMOD} -R ug+rw ${WRKDIR}/man cd ${PREFIX}/bin && ${LN} -s tclsh8.3 tclsh ${INSTALL_DATA_DIR} ${PREFIX}/include/tcl ${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/unix -- cgit v1.2.3