diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/xbase/Makefile | 26 | ||||
-rw-r--r-- | databases/xbase/distinfo | 2 | ||||
-rw-r--r-- | databases/xbase/files/patch-tv::tvbrowse.cpp | 13 | ||||
-rw-r--r-- | databases/xbase/files/patch-tv::tvxbase.cpp | 11 | ||||
-rw-r--r-- | databases/xbase/files/patch-xbase::dbf.h | 11 | ||||
-rw-r--r-- | databases/xbase/files/patch-xbase::ndx.cpp | 12 | ||||
-rw-r--r-- | databases/xbase/files/patch-xbase::stack.cpp | 12 | ||||
-rw-r--r-- | databases/xbase/files/patch-xbase::xbstring.cpp | 11 | ||||
-rw-r--r-- | databases/xbase/files/patch-xbase::xbstring.h | 24 | ||||
-rw-r--r-- | databases/xbase/pkg-descr | 8 | ||||
-rw-r--r-- | databases/xbase/pkg-plist | 30 |
12 files changed, 161 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index ddb4328b8af4..bd7925f81ba2 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -279,6 +279,7 @@ SUBDIR += useracc SUBDIR += usogres SUBDIR += wfb2sql + SUBDIR += xbase SUBDIR += xmbase-grok SUBDIR += xmysqladmin SUBDIR += zodb diff --git a/databases/xbase/Makefile b/databases/xbase/Makefile new file mode 100644 index 000000000000..817453fcfa97 --- /dev/null +++ b/databases/xbase/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: xbase +# Date created: Nov 22, 2003 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ + +PORTNAME= xbase +PORTVERSION= 2.0.0 +CATEGORIES= databases +MASTER_SITES= http://www.rekallrevealed.org/packages/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@FreeBSD.org +COMMENT= An xbase (i.e. dBase, FoxPro, etc.) compatible C++ class library + +USE_LIBTOOL_VER= 13 +INSTALLS_SHLIB= yes + +.if defined(MAINTAINER_MODE) +test: install +.for exi in sample1 sample2 sample3 sample4 sample5 + (cd /tmp && ${WRKSRC}/examples/${exi}) +.endfor +.endif + +.include <bsd.port.mk> diff --git a/databases/xbase/distinfo b/databases/xbase/distinfo new file mode 100644 index 000000000000..5f8ce73a35e9 --- /dev/null +++ b/databases/xbase/distinfo @@ -0,0 +1,2 @@ +MD5 (xbase-2.0.0.tgz) = f3a65965af6bda221c89b2f3e1d24bb0 +SIZE (xbase-2.0.0.tgz) = 493106 diff --git a/databases/xbase/files/patch-tv::tvbrowse.cpp b/databases/xbase/files/patch-tv::tvbrowse.cpp new file mode 100644 index 000000000000..852e69302634 --- /dev/null +++ b/databases/xbase/files/patch-tv::tvbrowse.cpp @@ -0,0 +1,13 @@ +--- tv/tvbrowse.cpp.orig Wed Sep 20 22:34:02 2000 ++++ tv/tvbrowse.cpp Sat Nov 22 22:06:16 2003 +@@ -28,8 +28,8 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> +-#include <iomanip.h> +-#include <strstream.h> ++#include <sstream> ++#include <iomanip> + + #define Uses_TEvent + #include <tvision/tv.h> diff --git a/databases/xbase/files/patch-tv::tvxbase.cpp b/databases/xbase/files/patch-tv::tvxbase.cpp new file mode 100644 index 000000000000..c43fdff075e2 --- /dev/null +++ b/databases/xbase/files/patch-tv::tvxbase.cpp @@ -0,0 +1,11 @@ +--- tv/tvxbase.cpp.orig Wed Sep 20 22:34:02 2000 ++++ tv/tvxbase.cpp Sat Nov 22 21:51:40 2003 +@@ -23,7 +23,7 @@ + Foundation, Inc., or see http://www.gnu.org/. + */ + +-#include <iostream.h> ++#include <iostream> + + #define Uses_TApplication + #define Uses_TButton diff --git a/databases/xbase/files/patch-xbase::dbf.h b/databases/xbase/files/patch-xbase::dbf.h new file mode 100644 index 000000000000..27cb0668fbf9 --- /dev/null +++ b/databases/xbase/files/patch-xbase::dbf.h @@ -0,0 +1,11 @@ +--- xbase/dbf.h.orig Sat Jan 13 21:20:53 2001 ++++ xbase/dbf.h Sat Nov 22 21:53:05 2003 +@@ -65,7 +65,7 @@ + #include <xbase/xtypes.h> + #include <xbase/xdate.h> + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + + /*! \file dbf.h diff --git a/databases/xbase/files/patch-xbase::ndx.cpp b/databases/xbase/files/patch-xbase::ndx.cpp new file mode 100644 index 000000000000..3e9db183157c --- /dev/null +++ b/databases/xbase/files/patch-xbase::ndx.cpp @@ -0,0 +1,12 @@ +--- xbase/ndx.cpp.orig Wed Mar 21 01:28:53 2001 ++++ xbase/ndx.cpp Sat Nov 22 21:56:03 2003 +@@ -66,7 +66,8 @@ + #endif + + #include <xbase/xbase.h> +-#include <iostream.h> ++#include <iostream> ++using std::cout; + + #ifdef XB_INDEX_NDX + diff --git a/databases/xbase/files/patch-xbase::stack.cpp b/databases/xbase/files/patch-xbase::stack.cpp new file mode 100644 index 000000000000..d54616fa5a9b --- /dev/null +++ b/databases/xbase/files/patch-xbase::stack.cpp @@ -0,0 +1,12 @@ +--- xbase/stack.cpp.orig Fri Nov 10 20:04:17 2000 ++++ xbase/stack.cpp Sat Nov 22 21:57:49 2003 +@@ -59,7 +59,8 @@ + + #include <string.h> + #include <stdlib.h> +-#include <iostream.h> ++#include <iostream> ++using std::cout; + + #include <xbase/xstack.h> + diff --git a/databases/xbase/files/patch-xbase::xbstring.cpp b/databases/xbase/files/patch-xbase::xbstring.cpp new file mode 100644 index 000000000000..fed3521ce2fc --- /dev/null +++ b/databases/xbase/files/patch-xbase::xbstring.cpp @@ -0,0 +1,11 @@ +--- ./xbase/xbstring.cpp.orig Tue Feb 20 18:53:26 2001 ++++ ./xbase/xbstring.cpp Sat Nov 22 22:25:08 2003 +@@ -582,7 +582,7 @@ + //! Short description. + /*! + */ +-XBDLLEXPORT ostream& operator << ( ostream& os, const xbString& xbs ) { ++XBDLLEXPORT std::ostream& operator << ( std::ostream& os, const xbString& xbs ) { + return os << xbs.data; + } + diff --git a/databases/xbase/files/patch-xbase::xbstring.h b/databases/xbase/files/patch-xbase::xbstring.h new file mode 100644 index 000000000000..16f5b282baf7 --- /dev/null +++ b/databases/xbase/files/patch-xbase::xbstring.h @@ -0,0 +1,24 @@ +--- xbase/xbstring.h.orig Sat Jan 27 06:00:32 2001 ++++ xbase/xbstring.h Sat Nov 22 22:30:42 2003 +@@ -56,7 +56,11 @@ + #endif + + #include <stdlib.h> +-#include <iostream.h> ++#include <iostream> ++ ++using std::endl; ++using std::cin; ++using std::cout; + + /*! \file xbstring.h + */ +@@ -119,7 +123,7 @@ + bool operator <= ( const xbString& ) const; + bool operator >= ( const xbString& ) const; + +- friend ostream& operator << ( ostream&, const xbString& ); ++ friend std::ostream& operator << ( std::ostream&, const xbString& ); + + xbString &remove(size_t pos = 0, int n = npos); + xbString mid(size_t pos = 0, int n = npos) const; diff --git a/databases/xbase/pkg-descr b/databases/xbase/pkg-descr new file mode 100644 index 000000000000..c2e1e354025e --- /dev/null +++ b/databases/xbase/pkg-descr @@ -0,0 +1,8 @@ +XBase is an xbase (i.e. dBase, FoxPro, etc.) compatible C++ class library. + +XBASE is useful for accessing data in legacy dBase 3 and 4 database files as +well as a general light-weight database engine. It includes support for +DBF (dBase version 3 and 4) data files, NDX and NTX indexes, and DBT +(dBase version 3 and 4). It supports file and record locking. + +WWW: http://linux.techass.com/projects/xdb/ diff --git a/databases/xbase/pkg-plist b/databases/xbase/pkg-plist new file mode 100644 index 000000000000..29b65c50b85e --- /dev/null +++ b/databases/xbase/pkg-plist @@ -0,0 +1,30 @@ +bin/checkndx +bin/copydbf +bin/dbfutil1 +bin/dbfxtrct +bin/deletall +bin/dumphdr +bin/dumprecs +bin/packdbf +bin/reindex +bin/undelall +bin/xbase-config +bin/zap +include/xbase/dbf.h +include/xbase/exp.h +include/xbase/html.h +include/xbase/index.h +include/xbase/ndx.h +include/xbase/ntx.h +include/xbase/retcodes.h +include/xbase/xbase.h +include/xbase/xbconfig.h +include/xbase/xbexcept.h +include/xbase/xbfilter.h +include/xbase/xbstring.h +include/xbase/xdate.h +include/xbase/xstack.h +include/xbase/xtypes.h +lib/libxbase-2.0.so.0 +lib/libxbase.so +@dirrm include/xbase |