1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Switch to the USE_TCL API. This means, using Tcl-8.5 by default, which,

sadly, necessitates a PORTREVISION bump.
This commit is contained in:
Mikhail Teterin 2010-11-29 20:37:09 +00:00
parent 97c227cf8e
commit 7b5064f6c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265408

View File

@ -7,24 +7,22 @@
PORTNAME= TclExpat
PORTVERSION= 1.1
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= textproc tcl
MASTER_SITES= http://T32.TecNik93.com/FreeBSD/others_ports/${PORTNAME}/sources/
MAINTAINER= mi@aldan.algebra.com
COMMENT= The TCL interface to Expat library
LIB_DEPENDS= tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER} \
expat:${PORTSDIR}/textproc/expat2
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
USE_LDCONFIG= yes
TCL_VERSION?= 8.4
TCL_DVER= ${TCL_VERSION:S/.//}
PLIST_SUB+= TCL_VERSION=${TCL_VERSION}
USE_TCL= 84+
PLIST_SUB+= TCL_VERSION=${TCL_VER}
MAKEFILE= ${FILESDIR}/Makefile
MAKE_ENV+= TCL_VERSION=${TCL_VERSION}
MAKE_ENV+= TCL_VERSION=${TCL_VER}
# Remove the old version of expat bundled with the package:
post-extract:
@ -32,14 +30,14 @@ post-extract:
post-build test:
${LN} -sf libtclexpat.so ${WRKSRC}/tclexpat.so
cd ${WRKSRC} && tclsh${TCL_VERSION} test-break.tcl
cd ${WRKSRC} && tclsh${TCL_VERSION} test-continue.tcl
cd ${WRKSRC} && tclsh${TCL_VERSION} test-error.tcl
cd ${WRKSRC} && ${TCLSH} test-break.tcl
cd ${WRKSRC} && ${TCLSH} test-continue.tcl
cd ${WRKSRC} && ${TCLSH} test-error.tcl
post-install:
${MKDIR} ${LOCALBASE}/lib/tcl${TCL_VERSION}/${PORTNAME}
${MKDIR} ${LOCALBASE}/lib/tcl${TCL_VER}/${PORTNAME}
${SED} 's|PREFIX|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in > \
${LOCALBASE}/lib/tcl${TCL_VERSION}/${PORTNAME}/pkgIndex.tcl
${LOCALBASE}/lib/tcl${TCL_VER}/${PORTNAME}/pkgIndex.tcl
.if !defined(NOPORTDOCS)
${MKDIR} ${LOCALBASE}/share/doc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/README ${LOCALBASE}/share/doc/${PORTNAME}/