aboutsummaryrefslogtreecommitdiffstats
path: root/devel/critcl
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-11-05 16:59:18 +0800
committergahr <gahr@FreeBSD.org>2013-11-05 16:59:18 +0800
commit5a05d3ca625075221dc217b07872dabfb38436ad (patch)
treed98d2d8b2d32e3e610c93781d3a2c0d8e1abcefb /devel/critcl
parente0d20420af45da0cd1446f13af1e02857de0517d (diff)
downloadfreebsd-ports-gnome-5a05d3ca625075221dc217b07872dabfb38436ad.tar.gz
freebsd-ports-gnome-5a05d3ca625075221dc217b07872dabfb38436ad.tar.zst
freebsd-ports-gnome-5a05d3ca625075221dc217b07872dabfb38436ad.zip
- New port: devel/critcl
The C Runtime In Tcl, CriTcl for short, is a system to build C extension packages for Tcl on the fly, from C code embedded within Tcl scripts, for all who wish to make their code go faster. WWW: http://andreas-kupries.github.io/critcl/
Diffstat (limited to 'devel/critcl')
-rw-r--r--devel/critcl/Makefile45
-rw-r--r--devel/critcl/distinfo2
-rw-r--r--devel/critcl/files/patch-build.tcl11
-rw-r--r--devel/critcl/files/patch-lib-critcl_Config21
-rw-r--r--devel/critcl/pkg-descr5
-rw-r--r--devel/critcl/pkg-plist114
6 files changed, 198 insertions, 0 deletions
diff --git a/devel/critcl/Makefile b/devel/critcl/Makefile
new file mode 100644
index 000000000000..c2c11678e9c2
--- /dev/null
+++ b/devel/critcl/Makefile
@@ -0,0 +1,45 @@
+# Created by: gahr@FreeBSD.org
+# $FreeBSD$
+
+PORTNAME= critcl
+PORTVERSION= 3.1.10
+CATEGORIES= devel
+
+MAINTAINER= tcltk@FreeBSD.org
+COMMENT= Compiled Runtime in Tcl
+
+OPTIONS_DEFINE= DOCS
+
+USES+= tcl
+USE_GITHUB= yes
+GH_ACCOUNT= andreas-kupries
+GH_COMMIT= ea3f253
+
+PLIST_SUB+= VER=${PORTVERSION}
+PORTDOCS= *
+
+NO_BUILD= yes
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+= dtplite:${PORTSDIR}/devel/tcllib
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl
+ ${REINPLACE_CMD} -e 's|4603|4746|g' ${WRKSRC}/test/cproc.test
+ ${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/lib/critcl/Config
+
+do-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${TCLSH} build.tcl doc
+ cd ${WRKSRC}/embedded/www && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
+.endif
+ cd ${WRKSRC} && ${TCLSH} build.tcl install ${STAGEDIR}${PREFIX}/lib
+
+regression-test:
+ cd ${WRKSRC} && ${TCLSH} test/all.tcl
+
+.include <bsd.port.mk>
diff --git a/devel/critcl/distinfo b/devel/critcl/distinfo
new file mode 100644
index 000000000000..917cd483b8d5
--- /dev/null
+++ b/devel/critcl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (critcl-3.1.10.tar.gz) = f8f599ce75ecbf90abfa23521f477ca206d9053eb1cfd39f5199cde4bd4613d0
+SIZE (critcl-3.1.10.tar.gz) = 1643940
diff --git a/devel/critcl/files/patch-build.tcl b/devel/critcl/files/patch-build.tcl
new file mode 100644
index 000000000000..41ab4851b16d
--- /dev/null
+++ b/devel/critcl/files/patch-build.tcl
@@ -0,0 +1,11 @@
+--- build.tcl.orig 2013-11-05 09:27:29.000000000 +0100
++++ build.tcl 2013-11-05 09:28:22.000000000 +0100
+@@ -249,7 +249,7 @@
+ set dsta [file dirname [file dirname [file normalize [info nameofexecutable]/___]]]
+ } else {
+ set dstl $dst
+- set dsta [file dirname [findlib $dstl]]/bin
++ set dsta $dst/../bin
+ }
+
+ puts {Installing into:}
diff --git a/devel/critcl/files/patch-lib-critcl_Config b/devel/critcl/files/patch-lib-critcl_Config
new file mode 100644
index 000000000000..7cdf191dcb14
--- /dev/null
+++ b/devel/critcl/files/patch-lib-critcl_Config
@@ -0,0 +1,21 @@
+--- lib/critcl/Config.orig 2013-11-05 09:57:26.000000000 +0100
++++ lib/critcl/Config 2013-11-05 09:57:54.000000000 +0100
+@@ -52,13 +52,13 @@
+ # the "copy" option and then specifically setting the config bits that
+ # you want to change. See win32-x86_64-cl for an example.
+
+-compile gcc -c -fPIC
+-version gcc -v
+-link gcc -shared
++compile %%CC%% -c -fPIC
++version %%CC%% -v
++link %%CC%% -shared
+ include -I
+ libinclude -L
+-preproc_define gcc -E -dM
+-preproc_enum gcc -E
++preproc_define %%CC%% -E -dM
++preproc_enum %%CC%% -E
+ tclstubs -DUSE_TCL_STUBS
+ tkstubs -DUSE_TK_STUBS
+ debug_memory -DTCL_MEM_DEBUG
diff --git a/devel/critcl/pkg-descr b/devel/critcl/pkg-descr
new file mode 100644
index 000000000000..3f971e06c198
--- /dev/null
+++ b/devel/critcl/pkg-descr
@@ -0,0 +1,5 @@
+The C Runtime In Tcl, CriTcl for short, is a system to build C extension
+packages for Tcl on the fly, from C code embedded within Tcl scripts,
+for all who wish to make their code go faster.
+
+WWW: http://andreas-kupries.github.io/critcl/
diff --git a/devel/critcl/pkg-plist b/devel/critcl/pkg-plist
new file mode 100644
index 000000000000..8bd2bbaed377
--- /dev/null
+++ b/devel/critcl/pkg-plist
@@ -0,0 +1,114 @@
+bin/critcl
+lib/critcl-app%%VER%%/critcl.tcl
+lib/critcl-app%%VER%%/pkgIndex.tcl
+lib/critcl-app%%VER%%/runtime.tcl
+lib/critcl-app%%VER%%/tea/Config.in
+lib/critcl-app%%VER%%/tea/Makefile.in
+lib/critcl-app%%VER%%/tea/aclocal.m4
+lib/critcl-app%%VER%%/tea/configure.in
+lib/critcl-app%%VER%%/tea/tclconfig/README.txt
+lib/critcl-app%%VER%%/tea/tclconfig/install-sh
+lib/critcl-app%%VER%%/tea/tclconfig/tcl.m4
+lib/critcl-class1.0.6/class.h
+lib/critcl-class1.0.6/class.tcl
+lib/critcl-class1.0.6/pkgIndex.tcl
+lib/critcl-iassoc1.0.1/iassoc.h
+lib/critcl-iassoc1.0.1/iassoc.tcl
+lib/critcl-iassoc1.0.1/pkgIndex.tcl
+lib/critcl-platform/pkgIndex.tcl
+lib/critcl-platform/platform.tcl
+lib/critcl-platform/shell.tcl
+lib/critcl-util1/pkgIndex.tcl
+lib/critcl-util1/util.tcl
+lib/critcl%%VER%%/Config
+lib/critcl%%VER%%/critcl.tcl
+lib/critcl%%VER%%/critcl_c/cdata.c
+lib/critcl%%VER%%/critcl_c/header.c
+lib/critcl%%VER%%/critcl_c/pkginit.c
+lib/critcl%%VER%%/critcl_c/pkginitend.c
+lib/critcl%%VER%%/critcl_c/pkginittk.c
+lib/critcl%%VER%%/critcl_c/preload.c
+lib/critcl%%VER%%/critcl_c/stubs.c
+lib/critcl%%VER%%/critcl_c/stubs_e.c
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/X.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xatom.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xfuncproto.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xlib.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/Xutil.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/cursorfont.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/keysym.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/keysymdef.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/X11/tkIntXlibDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tcl.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tclDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tclPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tk.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tkDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.4/tkPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/X.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xatom.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xfuncproto.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xlib.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/Xutil.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/cursorfont.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/keysym.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/keysymdef.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/tk.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/X11/tkIntXlibDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tcl.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tclDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tclPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tk.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tkDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.5/tkPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/X.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xatom.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xfuncproto.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xlib.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/Xutil.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/cursorfont.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/keysym.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/keysymdef.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/tk.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/X11/tkIntXlibDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tcl.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tclDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tclPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tk.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tkDecls.h
+lib/critcl%%VER%%/critcl_c/tcl8.6/tkPlatDecls.h
+lib/critcl%%VER%%/critcl_c/tclAppInit.c
+lib/critcl%%VER%%/critcl_c/tkstubs.c
+lib/critcl%%VER%%/license.terms
+lib/critcl%%VER%%/pkgIndex.tcl
+lib/stubs/container.tcl
+lib/stubs/gen_decl.tcl
+lib/stubs/gen_header.tcl
+lib/stubs/gen_init.tcl
+lib/stubs/gen_lib.tcl
+lib/stubs/gen_macro.tcl
+lib/stubs/gen_slot.tcl
+lib/stubs/genframe.tcl
+lib/stubs/pkgIndex.tcl
+lib/stubs/reader.tcl
+lib/stubs/writer.tcl
+lib/util84/dict.tcl
+lib/util84/lassign.tcl
+lib/util84/pkgIndex.tcl
+@dirrm lib/util84
+@dirrm lib/stubs
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.6/X11
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.6
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.5/X11
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.5
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.4/X11
+@dirrm lib/critcl%%VER%%/critcl_c/tcl8.4
+@dirrm lib/critcl%%VER%%/critcl_c
+@dirrm lib/critcl%%VER%%
+@dirrm lib/critcl-util1
+@dirrm lib/critcl-platform
+@dirrm lib/critcl-iassoc1.0.1
+@dirrm lib/critcl-class1.0.6
+@dirrm lib/critcl-app%%VER%%/tea/tclconfig
+@dirrm lib/critcl-app%%VER%%/tea
+@dirrm lib/critcl-app%%VER%%