import itcl 3.3

[incr Tcl] is an object-oriented extension of the Tcl language. It
was created to support more structured programming in Tcl. Tcl scripts
that grow beyond a few thousand lines become extremely difficult to
maintain. This is because the building blocks of vanilla Tcl are
procedures and global variables, and all of these building blocks
must reside in a single global namespace. There is no support for
protection or encapsulation.

from nikns at secure.lv
This commit is contained in:
steven 2006-10-25 14:24:03 +00:00
parent ec593ff068
commit ce3d3e0317
9 changed files with 154 additions and 0 deletions

43
devel/itcl/Makefile Normal file
View File

@ -0,0 +1,43 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
COMMENT= "object-oriented extensions to Tcl"
VERSION= 3.3
DISTNAME= itcl${VERSION}
PKGNAME= itcl-${VERSION}
SHARED_LIBS= itcl33 0.0
CATEGORIES= devel lang/tcl
HOMEPAGE= http://incrtcl.sourceforge.net/itcl/
MAINTAINER= Nikns Siankin <nikns@secure.lv>
# BSD style
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=incrtcl/}
RUN_DEPENDS= :tcl-8.4.*:lang/tcl/8.4
BUILD_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-tcl=${LOCALBASE}/lib/tcl8.4 \
--includedir=${LOCALBASE}/include/itcl \
--libdir=${LOCALBASE}/lib/itcl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/tcl8.4/generic \
-I${LOCALBASE}/include/tcl8.4/unix" \
LIBitcl33_VERSION=${LIBitcl33_VERSION}
do-regress:
@cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
${PREFIX}/bin/tclsh8.4 tests/all.tcl -load \
"load ./libitcl33.so.${LIBitcl33_VERSION}"
.include <bsd.port.mk>

4
devel/itcl/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (itcl3.3.tar.gz) = d958b3d1c52fa5336b5aacc1251b5ce3
RMD160 (itcl3.3.tar.gz) = cd9feed78938add3a8f9163bc52a9aff49fe7773
SHA1 (itcl3.3.tar.gz) = 6210420f544d944747f333628468678e1209fd7a
SIZE (itcl3.3.tar.gz) = 306364

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
--- Makefile.in.orig Fri Mar 25 23:58:48 2005
+++ Makefile.in Wed Oct 25 16:22:20 2006
@@ -77,7 +77,7 @@ DESTDIR =
PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION)
pkgdatadir = $(datadir)/$(PKG_DIR)
-pkglibdir = $(libdir)/$(PKG_DIR)
+pkglibdir = $(libdir)
pkgincludedir = $(includedir)/$(PKG_DIR)
top_builddir = .
@@ -341,12 +341,12 @@ install-lib-binaries:
@mkdir -p $(DESTDIR)$(pkglibdir)
@list='$(lib_BINARIES)'; for p in $$list; do \
if test -f $$p; then \
- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
+ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/../$$p"; \
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/../$$p; \
stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
if test "x$$stub" = "xstub"; then \
- echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
- $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
+ echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/../$$p"; \
+ $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/../$$p; \
else \
echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-configure,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
--- configure.orig Fri Mar 25 20:37:41 2005
+++ configure Wed Oct 25 16:24:20 2006
@@ -8034,11 +8034,11 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
$EGREP "yes" >/dev/null 2>&1; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBitcl33_VERSION}'
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBitcl33_VERSION}'
fi
rm -f conftest*
@@ -9474,7 +9474,7 @@ echo "$as_me: error: No tclsh found in P
#--------------------------------------------------------------------
# pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
-eval pkglibdir="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}"
+eval pkglibdir="${libdir}"
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
eval itcl_LIB_FLAG="-litcl${PACKAGE_VERSION}${DBGX}"
eval itcl_STUB_LIB_FLAG="-litclstub${PACKAGE_VERSION}${DBGX}"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-generic_itcl_cmds_c,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
--- generic/itcl_cmds.c.orig Fri Mar 25 23:58:08 2005
+++ generic/itcl_cmds.c Wed Oct 25 16:22:20 2006
@@ -64,7 +64,7 @@ namespace eval ::itcl {\n\
}\n\
lappend dirs [file join [file dirname $tcl_library] itcl$version]\n\
set bindir [file dirname [info nameofexecutable]]\n\
- lappend dirs [file join $bindir .. lib itcl$version]\n\
+ lappend dirs [file join $bindir .. lib itcl]\n\
lappend dirs [file join $bindir .. library]\n\
lappend dirs [file join $bindir .. .. library]\n\
lappend dirs [file join $bindir .. .. itcl library]\n\

View File

@ -0,0 +1,7 @@
--- pkgIndex.tcl.in.orig Thu Jul 20 18:25:18 2006
+++ pkgIndex.tcl.in Thu Jul 20 18:25:28 2006
@@ -1,3 +1,3 @@
# Tcl package index file, version 1.0
-package ifneeded Itcl @PACKAGE_VERSION@ [list load [file join $dir "@PKG_LIB_FILE@"] Itcl]
+package ifneeded Itcl @PACKAGE_VERSION@ [list load [file join $dir .. "@PKG_LIB_FILE@"] Itcl]

7
devel/itcl/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
[incr Tcl] is an object-oriented extension of the Tcl language. It
was created to support more structured programming in Tcl. Tcl scripts
that grow beyond a few thousand lines become extremely difficult to
maintain. This is because the building blocks of vanilla Tcl are
procedures and global variables, and all of these building blocks
must reside in a single global namespace. There is no support for
protection or encapsulation.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
@lib lib/libitcl33.so.${LIBitcl33_VERSION}

24
devel/itcl/pkg/PLIST Normal file
View File

@ -0,0 +1,24 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/25 14:24:03 steven Exp $
%%SHARED%%
include/itcl/
include/itcl/itcl.h
include/itcl/itclDecls.h
include/itcl/itclInt.h
include/itcl/itclIntDecls.h
lib/itcl/
lib/itcl/itcl.tcl
lib/itcl/itclConfig.sh
lib/itcl/pkgIndex.tcl
lib/libitclstub33.a
@man man/mann/body.n
@man man/mann/class.n
@man man/mann/code.n
@man man/mann/configbody.n
@man man/mann/delete.n
@man man/mann/ensemble.n
@man man/mann/find.n
@man man/mann/is.n
@man man/mann/itcl.n
@man man/mann/itclvars.n
@man man/mann/local.n
@man man/mann/scope.n