aboutsummaryrefslogblamecommitdiff
path: root/lang/tcl-manual/Makefile
blob: efd1226d26a7274bd8ead27d20709bb7ab7a79f2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 

                          
                        
                    
                           
          
 
                                 
                                                             


                   
                   
 


                        




                                    
           







                                                                    
                                               
                                                        
                                              
                                                
       

           
                     
                                                               
                                                                                        
       

                      
# Created by: Edwin Groothuis (edwin@mavetju.org)

PORTNAME=	tcl-manual
PORTVERSION=	20131001
CATEGORIES=	lang
MASTER_SITES=	SF/tcl/Tcl/
DISTFILES=

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Documentation for TCL (Tool Command Language)

NO_WRKSUBDIR=	yes
NO_BUILD=	yes
NO_ARCH=	yes

VERSIONS=	8.4.20 \
		8.5.15 \
		8.6.1

.for v in ${VERSIONS}
DISTFILES+=	$v/tcl$v-html.tar.gz
.endfor

post-patch:
.for v in ${VERSIONS}
	@${REINPLACE_CMD} -e 's|<b>tclsh</b>|<b>tclsh${v:R}</b>|g; \
	    s|/usr/local/bin/tclsh|${PREFIX}/bin/tclsh${v:R}|g' \
	    ${WRKSRC}/tcl${v}/html/UserCmd/tclsh.htm
	@${REINPLACE_CMD} -e 's|<b>wish</b>|<b>wish${v:R}</b>|g; \
	    s|/usr/local/bin/wish|${PREFIX}/bin/wish${v:R}|g' \
	    ${WRKSRC}/tcl${v}/html/UserCmd/wish.htm
	@${REINPLACE_CMD} -e 's|tcl\.h|tcl${v:R}/tcl.h|g' \
		${WRKSRC}/tcl${v}/html/TclLib/*
	@${REINPLACE_CMD} -e 's|tk\.h|tk${v:R}/tk.h|g' \
		${WRKSRC}/tcl${v}/html/TkLib/*
	@${FIND} ${WRKSRC} -name "*.bak" -delete
.endfor

do-install:
.for v in ${VERSIONS}
	${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/tcl${v:R:S/.//}
	${CP} -R ${WRKSRC}/tcl${v}/html/* ${STAGEDIR}${PREFIX}/share/doc/tcl${v:R:S/.//}
.endfor

.include <bsd.port.mk>