diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-30 18:39:29 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-30 18:39:29 +0000 |
commit | 257758c1da74ccac881590408c314a341e294cee (patch) | |
tree | 85813b0e327db5f64562e05f473a50e65fe843c8 /x11/tk/Makefile | |
parent | 898abf64ac1b967132128da6d1bd47b14ff843e8 (diff) | |
download | pkgsrc-257758c1da74ccac881590408c314a341e294cee.tar.gz |
Don't install the short names for section 3 manpages as the names are
too generic. Approved by jwise@netbsd.org.
Diffstat (limited to 'x11/tk/Makefile')
-rw-r--r-- | x11/tk/Makefile | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/x11/tk/Makefile b/x11/tk/Makefile index 3c42947b830..2f8f5521f4f 100644 --- a/x11/tk/Makefile +++ b/x11/tk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2001/06/21 20:16:26 jlam Exp $ +# $NetBSD: Makefile,v 1.12 2001/06/30 18:39:29 jlam Exp $ DISTNAME= tk8.3.2 PKGNAME= tk-8.3.2nb1 @@ -19,9 +19,31 @@ USE_X11= yes USE_BUILDLINK_ONLY= yes USE_LIBTOOL= yes -.include "../../lang/tcl/buildlink.mk" +# 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 ${RM} -f ${PREFIX}/bin/wish cd ${PREFIX}/bin && ${LN} -s wish8.3 wish ${INSTALL_DATA_DIR} ${PREFIX}/include/tk @@ -56,4 +78,5 @@ post-install: test: cd ${WRKSRC}; ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test +.include "../../lang/tcl/buildlink.mk" .include "../../mk/bsd.pkg.mk" |