Tkp4 lets you read its documentation at run time. Patch it to find in

the doc directory and unconditionalize document install -- so the
texts are found even in the case of NOPORTDOCS.

Not bumping the REVISION, since so little time elapsed since this port's
appearance.
This commit is contained in:
Mikhail Teterin 2002-05-17 20:05:59 +00:00
parent 6be3f6fb40
commit a1c94af743
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59348
3 changed files with 20 additions and 11 deletions

View file

@ -20,13 +20,9 @@ do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.tcl ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/tkp4 ${PREFIX}/bin
.ifndef NOPORTDOCS
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/[A-Z]* ${DOCSDIR}
.else
PKGNAMESUFFIX= -nodocs
.endif
${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/P4WINdifferences \
${WRKSRC}/UsingTkP4 ${DOCSDIR}
.include <bsd.port.pre.mk>

View file

@ -0,0 +1,14 @@
On FreeBSD, the customary places for documentation of the ported software
is under /usr/local/share/doc/<port name>.
--- tkp4.tcl Thu Sep 13 18:48:49 2001
+++ tkp4.tcl Fri May 17 15:48:48 2002
@@ -1893 +1893 @@
- p4_viewDialog show "TkP4 - Changes" [p4_fileGetText [file join $p4(libdir) CHANGES]]
+ p4_viewDialog show "TkP4 - Changes" [p4_fileGetText [file join $p4(libdir) .. doc tkp4 CHANGES]]
@@ -2032 +2032 @@
- p4_viewDialog show "TkP4 - P4Win Differences" [p4_fileGetText [file join $p4(libdir) P4WINdifferences]]
+ p4_viewDialog show "TkP4 - P4Win Differences" [p4_fileGetText [file join $p4(libdir) .. doc tkp4 P4WINdifferences]]
@@ -2038 +2038 @@
- p4_viewDialog show "TkP4 - Using" [p4_fileGetText [file join $p4(libdir) UsingTkP4]]
+ p4_viewDialog show "TkP4 - Using" [p4_fileGetText [file join $p4(libdir) .. doc tkp4 UsingTkP4]]

View file

@ -3,8 +3,7 @@ bin/tkp4
%%SCRIPTS%%/tkp4.tcl
%%SCRIPTS%%/tree.tcl
@dirrm %%SCRIPTS%%
%%PORTDOCS%%%%DOCS%%/CHANGES
%%PORTDOCS%%%%DOCS%%/P4WINdifferences
%%PORTDOCS%%%%DOCS%%/README
%%PORTDOCS%%%%DOCS%%/UsingTkP4
%%PORTDOCS%%@dirrm %%DOCS%%
%%DOCS%%/CHANGES
%%DOCS%%/P4WINdifferences
%%DOCS%%/UsingTkP4
@dirrm %%DOCS%%