Lines 7-30
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= tcllib |
8 |
PORTNAME= tcllib |
9 |
PORTVERSION= 1.9 |
9 |
PORTVERSION= 1.9 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= devel tcl83 tcl84 |
11 |
CATEGORIES= devel tcl84 |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= tcllib |
13 |
MASTER_SITE_SUBDIR= tcllib |
|
|
14 |
PKGNAMESUFFIX?= ${THREADS_SUFFIX} |
14 |
|
15 |
|
15 |
MAINTAINER= mi@aldan.algebra.com |
16 |
MAINTAINER= mi@aldan.algebra.com |
16 |
COMMENT= A collection of utility modules for Tcl |
17 |
COMMENT= A collection of utility modules for Tcl |
17 |
|
18 |
|
18 |
BUILD_DEPENDS= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER:S/.//} |
|
|
19 |
|
20 |
TCL_VER?= 8.4 |
21 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
22 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
23 |
ALL_TARGET= all |
21 |
ALL_TARGET= all |
24 |
MAKE_ENV+= LANG=C |
22 |
MAKE_ENV+= LANG=C |
25 |
SCRIPTS_ENV+= TCL_VER=${TCL_VER} PATCH="${PATCH}" |
|
|
26 |
|
23 |
|
27 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
24 |
USE_TCL_VER?= 84 |
|
|
25 |
|
26 |
.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85 |
27 |
IGNORE= supported values for USE_TCL_VER are only 84 and 85 |
28 |
.endif |
29 |
|
30 |
USE_TCL= ${USE_TCL_VER} |
31 |
USE_TCL_BUILD= ${USE_TCL_VER} |
28 |
|
32 |
|
29 |
MANN= aes.n asn.n ansi_cmacros.n ansi_cctrl.n ansi_cattr.n \ |
33 |
MANN= aes.n asn.n ansi_cmacros.n ansi_cctrl.n ansi_cattr.n \ |
30 |
ansi_code.n ansi_ctrlu.n ansi_send.n autoproxy.n base32hex.n \ |
34 |
ansi_code.n ansi_ctrlu.n ansi_send.n autoproxy.n base32hex.n \ |
Lines 58-77
Link Here
|
58 |
|
62 |
|
59 |
MANCOMPRESSED= no |
63 |
MANCOMPRESSED= no |
60 |
|
64 |
|
61 |
post-patch: |
65 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
62 |
# |
|
|
63 |
# Ensure, the detailed output of vendors' self-tests is |
64 |
# available in addition to the pretty progress report: |
65 |
# |
66 |
${REINPLACE_CMD} -e 's,test run,test run -l testlog,' \ |
67 |
${WRKSRC}/Makefile.in |
68 |
|
66 |
|
69 |
.include <bsd.port.pre.mk> |
67 |
.include <bsd.port.pre.mk> |
70 |
|
68 |
|
|
|
69 |
. if exists(${TCLSH}) |
70 |
_TCL_IS_THREADED!= ${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} || return 0 |
71 |
. if !defined(TCL_WITH_THREADS) && !defined(WITH_THREADS) && !empty(_TCL_IS_THREADED) |
72 |
TCL_WITH_THREADS= yes |
73 |
. endif |
74 |
. endif |
75 |
|
76 |
.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS) |
77 |
. if defined(_TCL_IS_THREADED) && empty(_TCL_IS_THREADED) |
78 |
IGNORE= tcl with threads is required. Please install tcl with WITH_THREADS defined or from lang/tcl${USE_TCL} port and try again |
79 |
. endif |
80 |
THREADS_SUFFIX= -threads |
81 |
USE_TCL= ${USE_TCL_VER}-thread |
82 |
USE_TCL_BUILD= ${USE_TCL_VER}-thread |
83 |
CONFLICTS= tcllib-1.* |
84 |
.include "${PORTSDIR}/Mk/bsd.tcl.mk" |
85 |
.else |
86 |
CONFLICTS= tcllib-threads-1.* |
87 |
.endif |
88 |
|
89 |
LATEST_LINK= tcllib${THREADS_SUFFIX} |
90 |
|
91 |
SCRIPTS_ENV+= TCL_VER=${TCL_VER} PATCH="${PATCH}" |
92 |
|
93 |
post-patch: |
94 |
# Ensure that configure looks for the right tclsh |
95 |
@${REINPLACE_CMD} -e 's|\$$dir/tclsh\[8-9\]\*\$${EXEEXT}|${TCLSH}|g' \ |
96 |
-e 's|\$$dir/tclsh\*\$${EXEEXT}|${TCLSH}|g' ${WRKSRC}/configure |
97 |
# |
98 |
# Ensure, the detailed output of vendors' self-tests is |
99 |
# available in addition to the pretty progress report: |
100 |
# |
101 |
@${REINPLACE_CMD} -e 's,test run,test run -l testlog,' \ |
102 |
${WRKSRC}/Makefile.in |
103 |
.for FILE in dtplite tcldocstrip page |
104 |
@${REINPLACE_CMD} -e 's|exec tclsh|exec ${TCLSH}|g' \ |
105 |
${WRKSRC}/apps/${FILE} |
106 |
.endfor |
107 |
|
71 |
RUNTEST= ${SETENV} LANG=C DISPLAY= ${MAKE} -C ${WRKSRC} test |
108 |
RUNTEST= ${SETENV} LANG=C DISPLAY= ${MAKE} -C ${WRKSRC} test |
72 |
MYID != ${ID} -u |
109 |
MYID != ${ID} -u |
73 |
.if ${MYID} == 0 |
110 |
.if ${MYID} == 0 |
74 |
RUNTEST:= ${SU_CMD:S/root/-m nobody/} "${RUNTEST}" |
111 |
RUNTEST:= ${SU_CMD:S/root/-m nobody/} "${RUNTEST}" |
|
|
112 |
|
75 |
pre-build: |
113 |
pre-build: |
76 |
# |
114 |
# |
77 |
# Preparing to run the tests as `nobody' |
115 |
# Preparing to run the tests as `nobody' |
Lines 79-85
Link Here
|
79 |
${FIND} ${WRKSRC} -type d | ${XARGS} ${CHOWN} nobody |
117 |
${FIND} ${WRKSRC} -type d | ${XARGS} ${CHOWN} nobody |
80 |
.endif |
118 |
.endif |
81 |
|
119 |
|
82 |
test: |
120 |
test: configure pre-build |
83 |
@set -x ; if ! ${RUNTEST}; \ |
121 |
@set -x ; if ! ${RUNTEST}; \ |
84 |
then \ |
122 |
then \ |
85 |
${AWK} '$$NF == "FAILED" { echo = 1 } \ |
123 |
${AWK} '$$NF == "FAILED" { echo = 1 } \ |