1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Add xbase 2.0.0, an xbase (i.e. dBase, FoxPro, etc.) compatible

C++ class library.

Approved by:	pav (mentor).
This commit is contained in:
Thierry Thomas 2004-04-10 18:05:19 +00:00
parent 4feac66b9c
commit b6a30b1048
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106676
12 changed files with 161 additions and 0 deletions

View File

@ -279,6 +279,7 @@
SUBDIR += useracc
SUBDIR += usogres
SUBDIR += wfb2sql
SUBDIR += xbase
SUBDIR += xmbase-grok
SUBDIR += xmysqladmin
SUBDIR += zodb

26
databases/xbase/Makefile Normal file
View File

@ -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>

2
databases/xbase/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (xbase-2.0.0.tgz) = f3a65965af6bda221c89b2f3e1d24bb0
SIZE (xbase-2.0.0.tgz) = 493106

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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;
}

View File

@ -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;

View File

@ -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/

30
databases/xbase/pkg-plist Normal file
View File

@ -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