View | Details | Raw Unified | Return to bug 110086
Collapse All | Expand All

(-)lang/tcl83/Makefile (-5 / +10 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	tcl
8
PORTNAME=	tcl
9
PORTVERSION=	8.3.5
9
PORTVERSION=	8.3.5
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	lang tcl83
11
CATEGORIES=	lang tcl83
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	tcl
13
MASTER_SITE_SUBDIR=	tcl
Lines 24-38 Link Here
24
CONFIGURE_ARGS=	--enable-shared --includedir=${LOCALBASE}/include/tcl${TCL_VER}
24
CONFIGURE_ARGS=	--enable-shared --includedir=${LOCALBASE}/include/tcl${TCL_VER}
25
CONFIGURE_ENV=	PORTSDIR=${PORTSDIR}
25
CONFIGURE_ENV=	PORTSDIR=${PORTSDIR}
26
MAKE_ENV=	SHORT_TCL_VER=83
26
MAKE_ENV=	SHORT_TCL_VER=83
27
PKGINSTALL=	${PKGDIR}/pkg-install.tclsh
28
PKGDEINSTALL=	${PKGDIR}/pkg-deinstall.tclsh
29
TCL_VER=	8.3
27
TCL_VER=	8.3
30
NOPRECIOUSMAKEVARS=	yes # Otherwise 'make readmes' is broken
28
NOPRECIOUSMAKEVARS=	yes # Otherwise 'make readmes' is broken
31
PLIST_SUB=	TCL_VER=${TCL_VER} SHORT_TCL_VER=83
29
PLIST_SUB=	TCL_VER=${TCL_VER} SHORT_TCL_VER=83
32
30
31
OPTIONS=	TCL83_MAN "Install tcl 8.3 manpages" on \
32
		TCLSH_WRAPPER "Require tclsh wrapper from ports" off
33
33
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
34
35
35
.if defined(WITH_TCL83_MAN)
36
.if defined(WITH_TCLSH_WRAPPER)
37
RUN_DEPENDS+=		tclsh:${PORTSDIR}/lang/tcl-tk-wrapper
38
.endif
39
40
.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL83_MAN)
36
41
37
MAN1=	tclsh.1
42
MAN1=	tclsh.1
38
43
Lines 432-438 Link Here
432
	${REINPLACE_CMD} \
437
	${REINPLACE_CMD} \
433
		-e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TCLBASE}|' \
438
		-e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TCLBASE}|' \
434
		${WRKSRC}/tclConfig.sh
439
		${WRKSRC}/tclConfig.sh
435
.if !defined(WITH_TCL83_MAN)
440
.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TCL83_MAN)
436
	${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \
441
	${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \
437
		${WRKSRC}/Makefile
442
		${WRKSRC}/Makefile
438
.endif
443
.endif
(-)lang/tcl83/pkg-deinstall.tclsh (-22 lines)
Lines 1-22 Link Here
1
#! /bin/sh
2
#
3
# Remove the ${PREFIX}/bin/tclsh script that gets installed by INSTALL.tclsh
4
# if we are the last tclsh installation to be pkg_delete'd.
5
#
6
# $FreeBSD: ports/lang/tcl83/pkg-deinstall.tclsh,v 1.2 2000/05/31 18:31:17 hoek Exp $
7
#
8
9
#
10
# Explicitly listing /usr/X11R6/bin here is debatable.
11
#
12
BINDIR="${PKG_PREFIX}/bin /usr/X11R6/bin"
13
TCLSH=${PKG_PREFIX}/bin/tclsh
14
15
tclshs=$(/bin/ls ${BINDIR} 2> /dev/null | \
16
    egrep '^(i?tclsh[0-9]+\.[0-9]+(\_r)?([a-z][a-z])?)|otclsh$')
17
18
if [ "$tclshs" = "" -a -f ${TCLSH} ] && \
19
    (head -3 ${TCLSH} | grep awieYJFnsuILOnfsYEW) > /dev/null 2>&1
20
then
21
	rm -f ${PKG_PREFIX}/bin/tclsh
22
fi
(-)lang/tcl83/pkg-install.tclsh (-35 lines)
Lines 1-35 Link Here
1
#!/bin/sh
2
3
# The user may have a tclsh they want to preserve
4
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
5
    | sed -e 's/.*\*\*//'`
6
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
7
then
8
	[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
9
10
	mkdir -p ${PKG_PREFIX}/bin
11
	cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
12
#!/bin/sh
13
# Installed by ports system.  id: awieYJFnsuILOnfsYEW**002
14
#
15
# $FreeBSD: ports/lang/tcl83/pkg-install.tclsh,v 1.5 2000/05/31 18:31:17 hoek Exp $
16
#
17
 
18
(
19
echo "In FreeBSD, tclsh is named with a version number.  This is because"
20
echo "different versions of tclsh are not compatible with each other and"
21
echo "they can not all be called \"tclsh\"!  You may need multiple versions"
22
echo "installed because a given port may depend on a specific version."
23
echo
24
echo "On your system, tclsh is installed under at least the following names:"
25
echo
26
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^(i?tclsh[0-9]+\.[0-9]+(\_r)?([a-z][a-z])?)|otclsh$')
27
do
28
	echo $name
29
done
30
[ "$name" = "" ] && echo "No tclsh installations found, sorry."
31
) 1>&2
32
exit 1
33
EOF
34
	chmod 555 ${PKG_PREFIX}/bin/tclsh
35
fi

Return to bug 110086