aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-06-27 19:52:12 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-06-27 19:52:12 +0000
commitce27ca0061ebb24d697f1ac55515c6091608cc65 (patch)
treeb9cb3b1cc44c5af26ff7e2013bf11772cd05f8e5
parent343172df80027705228a061c90ca8ca16dfbd3ac (diff)
downloadports-ce27ca0061ebb24d697f1ac55515c6091608cc65.tar.gz
ports-ce27ca0061ebb24d697f1ac55515c6091608cc65.zip
Notes
-rw-r--r--devel/tcllib/Makefile12
-rw-r--r--devel/tcllib/scripts/post-patch9
2 files changed, 8 insertions, 13 deletions
diff --git a/devel/tcllib/Makefile b/devel/tcllib/Makefile
index d816be918d9e..1605429c5103 100644
--- a/devel/tcllib/Makefile
+++ b/devel/tcllib/Makefile
@@ -16,13 +16,13 @@ MAINTAINER= mi@aldan.algebra.com
COMMENT= A collection of utility modules for Tcl
BUILD_DEPENDS= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER:S/.//}
+USE_TCL_BUILD= yes
+USE_TCL_RUN= ${USE_TCL_BUILD}
-TCL_VER?= 8.4
USE_BZIP2= yes
GNU_CONFIGURE= yes
ALL_TARGET= all
MAKE_ENV+= LANG=C
-SCRIPTS_ENV+= TCL_VER=${TCL_VER} PATCH="${PATCH}"
PLIST_SUB+= PORTVERSION=${PORTVERSION}
@@ -58,6 +58,10 @@ MANN= aes.n asn.n ansi_cmacros.n ansi_cctrl.n ansi_cattr.n \
MANCOMPRESSED= no
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ENV+= ac_cv_path_tclsh="${TCLSH}"
+
post-patch:
#
# Ensure, the detailed output of vendors' self-tests is
@@ -65,8 +69,8 @@ post-patch:
#
${REINPLACE_CMD} -e 's,test run,test run -l testlog,' \
${WRKSRC}/Makefile.in
-
-.include <bsd.port.pre.mk>
+ ${REINPLACE_CMD} -e 's,exec tclsh,exec ${TCLSH},' \
+ ${WRKSRC}/apps/dtplite
RUNTEST= ${SETENV} LANG=C DISPLAY= ${MAKE} -C ${WRKSRC} test
MYID != ${ID} -u
diff --git a/devel/tcllib/scripts/post-patch b/devel/tcllib/scripts/post-patch
deleted file mode 100644
index 3ff853ec0461..000000000000
--- a/devel/tcllib/scripts/post-patch
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-${PATCH} -f ${WRKSRC}/apps/dtplite << EOP
-@@ -1,3 +1,1 @@
--#! /bin/sh
--# -*- tcl -*-
--exec tclsh "$0" ${1+"$@"}
-+#!${PREFIX}/bin/tclsh${TCL_VER}
-EOP