Update databases/mariadb104-server to version 10.4.13_2
[dports.git] / lang / tcl-manual / Makefile
1 # Created by: Edwin Groothuis (edwin@mavetju.org)
2 # $FreeBSD$
3
4 PORTNAME=       tcl-manual
5 PORTVERSION=    20131001
6 CATEGORIES=     lang
7 MASTER_SITES=   SF/tcl/Tcl/
8 DISTFILES=
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Documentation for TCL (Tool Command Language)
12
13 NO_WRKSUBDIR=   yes
14 NO_BUILD=       yes
15 NO_ARCH=        yes
16
17 VERSIONS=       8.4.20 \
18                 8.5.15 \
19                 8.6.1
20
21 .for v in ${VERSIONS}
22 DISTFILES+=     $v/tcl$v-html.tar.gz
23 .endfor
24
25 post-patch:
26 .for v in ${VERSIONS}
27         @${REINPLACE_CMD} -e 's|<b>tclsh</b>|<b>tclsh${v:R}</b>|g; \
28             s|/usr/local/bin/tclsh|${PREFIX}/bin/tclsh${v:R}|g' \
29             ${WRKSRC}/tcl${v}/html/UserCmd/tclsh.htm
30         @${REINPLACE_CMD} -e 's|<b>wish</b>|<b>wish${v:R}</b>|g; \
31             s|/usr/local/bin/wish|${PREFIX}/bin/wish${v:R}|g' \
32             ${WRKSRC}/tcl${v}/html/UserCmd/wish.htm
33         @${REINPLACE_CMD} -e 's|tcl\.h|tcl${v:R}/tcl.h|g' \
34                 ${WRKSRC}/tcl${v}/html/TclLib/*
35         @${REINPLACE_CMD} -e 's|tk\.h|tk${v:R}/tk.h|g' \
36                 ${WRKSRC}/tcl${v}/html/TkLib/*
37         @${FIND} ${WRKSRC} -name "*.bak" -delete
38 .endfor
39
40 do-install:
41 .for v in ${VERSIONS}
42         ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/tcl${v:R:S/.//}
43         ${CP} -R ${WRKSRC}/tcl${v}/html/* ${STAGEDIR}${PREFIX}/share/doc/tcl${v:R:S/.//}
44 .endfor
45
46 .include <bsd.port.mk>