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

(-)lang/tcl85/Makefile (-9 / +8 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	tcl
8
PORTNAME=	tcl
9
PORTVERSION=	8.5.a.5
9
PORTVERSION=	8.5.a.5
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	lang
11
CATEGORIES=	lang
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	tcl
13
MASTER_SITE_SUBDIR=	tcl
Lines 25-38 Link Here
25
CONFIGURE_ARGS=	--enable-shared --includedir=${PREFIX}/include/tcl${TCL_VER}
25
CONFIGURE_ARGS=	--enable-shared --includedir=${PREFIX}/include/tcl${TCL_VER}
26
CONFIGURE_ENV=	PORTSDIR=${PORTSDIR}
26
CONFIGURE_ENV=	PORTSDIR=${PORTSDIR}
27
MAKE_ENV=	SHORT_TCL_VER=85 LANG=C LC_ALL=C	# LANG=C is required for some of UTF-using tests
27
MAKE_ENV=	SHORT_TCL_VER=85 LANG=C LC_ALL=C	# LANG=C is required for some of UTF-using tests
28
PKGINSTALL=	${PKGDIR}/pkg-install.tclsh
29
PKGDEINSTALL=	${PKGDIR}/pkg-deinstall.tclsh
30
TCL_VER=	8.5
28
TCL_VER=	8.5
31
NOPRECIOUSMAKEVARS=	Too many _MLINKS for README.html
29
NOPRECIOUSMAKEVARS=	Too many _MLINKS for README.html
32
PLIST_SUB=	TCL_VER=${TCL_VER} SHORT_TCL_VER=85
30
PLIST_SUB=	TCL_VER=${TCL_VER} SHORT_TCL_VER=85
33
EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/
31
EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/
34
32
35
OPTIONS=	NO_TCL85_MAN "Do not install tcl85 manpages" off
33
OPTIONS=	TCL85_MAN "Install tcl 8.5 manpages" on \
34
		TCLSH_WRAPPER "Require tclsh wrapper from ports" off
36
35
37
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
38
37
Lines 50-60 Link Here
50
49
51
LATEST_LINK=	tcl85${THREADS_SUFFIX}
50
LATEST_LINK=	tcl85${THREADS_SUFFIX}
52
51
53
.if defined(NOPORTDOCS)
52
.if defined(WITH_TCLSH_WRAPPER)
54
NO_INSTALL_MANPAGES=	true
53
RUN_DEPENDS+=		tclsh:${PORTSDIR}/lang/tcl-tk-wrapper
55
.endif
54
.endif
56
55
57
.if defined(NO_INSTALL_MANPAGES) || defined(WITH_NO_TCL85_MAN)
56
.if defined(NO_INSTALL_MANPAGES) || defined(WITHOUT_TCL85_MAN)
58
57
59
PLIST_SUB+=	INSTMAN='@comment '
58
PLIST_SUB+=	INSTMAN='@comment '
60
59
Lines 703-709 Link Here
703
	${REINPLACE_CMD} \
702
	${REINPLACE_CMD} \
704
		-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
703
		-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
705
		-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
704
		-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
706
.if defined(NO_INSTALL_MANPAGES) || defined(WITH_NO_TCL85_MAN)
705
.if defined(NO_INSTALL_MANPAGES) || defined(WITHOUT_TCL85_MAN)
707
	${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \
706
	${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \
708
		${WRKSRC}/Makefile
707
		${WRKSRC}/Makefile
709
. for mp in ${MAN1} ${MAN3} ${MANN}
708
. for mp in ${MAN1} ${MAN3} ${MANN}
Lines 724-730 Link Here
724
.if exists(${PKGINSTALL})
723
.if exists(${PKGINSTALL})
725
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
724
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
726
.endif
725
.endif
727
.if !defined(NO_INSTALL_MANPAGES) && !defined(WITH_NO_TCL85_MAN)
726
.if !defined(NO_INSTALL_MANPAGES) && !defined(WITHOUT_TCL85_MAN)
728
	${MKDIR} ${DATADIR}
727
	${MKDIR} ${DATADIR}
729
	${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR}
728
	${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR}
730
.endif
729
.endif
(-)lang/tcl85/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/tcl85/pkg-deinstall.tclsh,v 1.1 2007/01/29 03:06:55 clsung Exp $
7
#
8
9
#
10
# Explicitly listing /usr/X11R6/bin here is debatable.
11
#
12
BINDIR="${PKG_PREFIX}/bin ${X11BASE}/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/tcl85/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/tcl85/pkg-install.tclsh,v 1.1 2007/01/29 03:06:55 clsung 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 110083