blob: fb4e4d20a8bb782d70e99f4410777753830229ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# New ports collection makefile for: tcllib
# Date created: 27 Apr 2000
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#
PORTNAME= tcllib
PORTVERSION= 1.10
CATEGORIES= devel tcl
PORTREVISION= 1
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tcllib
MAINTAINER= mi@aldan.algebra.com
COMMENT= A collection of utility modules for Tcl
USE_TCL_BUILD= 82+
USE_TCL_RUN= ${USE_TCL_BUILD}
USE_BZIP2= yes
GNU_CONFIGURE= yes
ALL_TARGET= all
MAKE_ENV+= LANG=C
.if defined(NO_INSTALL_MANPAGES)
INSTALL_TARGET= install-libraries install-applications
.else
MANN= aes.n ansi_cattr.n ansi_cctrl.n ansi_cmacros.n ansi_code.n \
ansi_ctrlu.n ansi_send.n asn.n autoproxy.n base32.n \
base32core.n base32hex.n base64.n bee.n bibtex.n bigfloat.n \
bignum.n blowfish.n calculus.n changelog.n cksum.n cmdline.n \
combinatorics.n comm.n comm_wire.n connect.n constants.n \
control.n copyops.n counter.n crc16.n crc32.n csv.n cvs.n \
dacceptor.n ddest.n deleg_method.n deleg_proc.n des.n \
dexec.n docidx.n docidx_intro.n docidx_lang_cmdref.n \
docidx_lang_faq.n docidx_lang_intro.n docidx_lang_syntax.n \
docidx_plugin_apiref.n docstrip.n docstrip_util.n doctoc.n \
doctoc_intro.n doctoc_lang_cmdref.n doctoc_lang_faq.n \
doctoc_lang_intro.n doctoc_lang_syntax.n doctoc_plugin_apiref.n \
doctools.n doctools_intro.n doctools_lang_cmdref.n \
doctools_lang_faq.n doctools_lang_intro.n doctools_lang_syntax.n \
doctools_plugin_apiref.n dsource.n dtplite.n exif.n \
expander.n fa.n faop.n filetypes.n fileutil.n fourier.n \
ftp.n ftpd.n fuzzy.n geometry.n graph.n graph1.n html.n \
htmlparse.n ident.n imenu.n ini.n interpolate.n ipager.n \
irc.n javascript.n jpeg.n json.n ldap.n ldapx.n linalg.n \
log.n logger.n loggerAppender.n loggerUtils.n mapproj.n \
math.n matrix.n matrix1.n md4.n md5.n md5crypt.n me_ast.n \
me_cpu.n me_cpucore.n me_intro.n me_tcl.n me_util.n me_vm.n \
mime.n mimetypes.n mpexpand.n multi.n multiop.n multiplexer.n \
ncgi.n nmea.n nns_auto.n nns_client.n nns_common.n \
nns_procotol.n nns_server.n nntp.n ntp_time.n optimize.n \
otp.n page.n page_intro.n page_pluginmgr.n page_util_flow.n \
page_util_norm_lemon.n page_util_norm_peg.n page_util_peg.n \
page_util_quote.n peg.n peg_interp.n pluginmgr.n png.n \
polynomials.n pool.n pop3.n pop3d.n pop3d_dbox.n pop3d_udb.n \
prioqueue.n profiler.n qcomplex.n queue.n rational_funcs.n \
rc4.n rcs.n receive.n receiver.n record.n report.n ripemd128.n \
ripemd160.n roman.n romberg.n sasl.n sha1.n skiplist.n \
smtp.n smtpd.n snit.n snitfaq.n soundex.n special.n stack.n \
statistics.n stooop.n struct_list.n struct_set.n struct_tree.n \
struct_tree1.n sum.n tar.n tcldocstrip.n tcllib_dns.n \
tcllib_interp.n tcllib_ip.n term.n term_bind.n term_send.n \
textutil.n tie.n tiff.n tqueue.n transmitter.n traverse.n \
treeql.n uevent.n units.n uri.n uuencode.n uuid.n wip.n \
yencode.n
MANCOMPRESSED= no
.endif
.include <bsd.port.pre.mk>
CONFIGURE_ENV+= ac_cv_path_tclsh="${TCLSH}"
post-patch:
#
# Ensure, the detailed output of vendors' self-tests is
# available in addition to the pretty progress report:
#
${REINPLACE_CMD} -e 's,test run,test run -l testlog,' \
-e 's,$$(libdir)/@PACKAGE@@VERSION@,$$(libdir)/@PACKAGE@,' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's,exec tclsh,exec ${TCLSH},' \
${WRKSRC}/apps/dtplite ${WRKSRC}/apps/page \
${WRKSRC}/apps/tcldocstrip ${WRKSRC}/apps/nns \
${WRKSRC}/apps/nnsd
RUNTEST= ${SETENV} LANG=C DISPLAY= ${MAKE} -C ${WRKSRC} test
MYID != ${ID} -u
.if ${MYID} == 0
RUNTEST:= ${SU_CMD:S/root/-m nobody/} "${RUNTEST}"
pre-build:
#
# Preparing to run the tests as `nobody'
#
${FIND} ${WRKSRC} -type d | ${XARGS} ${CHOWN} nobody
.endif
test:
@set -x ; if ! ${RUNTEST}; \
then \
${AWK} '$$NF == "FAILED" { echo = 1 } \
echo { if ($$NF == "start") echo = 0; else print }' \
${WRKSRC}/testlog.log; \
${CAT} ${WRKSRC}/testlog.failures; \
${UNAME} -a; \
${ECHO_MSG} Please, analyze and report the test failures; \
fi
post-build: test
.include <bsd.port.post.mk>
|