1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add databases/kinterbasdb, a Python module to access the Firebird

(Interbase (TM) relational database.

Note: there seems to be no way around the portlint gripe.
Further note: this port won't install correctly until the underlying
Firebird DB is upgraded to get rid of its FORBIDDEN state, but
first things first.  (The was one of the oldest "new ports" PRs
in the system, predating the breakage).
PR:		ports/30823
Submitted by:	Dmytro Rud <unixoid@yahoo.com>
This commit is contained in:
Mark Linimon 2003-12-04 06:42:39 +00:00
parent c45c5c8d33
commit 082b4d1b5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94879
5 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: kinterbasdb
# Date created: 19 November 2003
# Whom: Dmytro Rud <rud@cs.uni-magdeburg.de>
#
# $FreeBSD$
#
PORTNAME= kinterbasdb
PORTVERSION= 3.1
VERSIONSUFFIX= _pre6
CATEGORIES= python databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= kinterbasdb
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION}${VERSIONSUFFIX}-src
MAINTAINER= rud@cs.uni-magdeburg.de
COMMENT= Python extension for Firebird/Interbase(R) relational databases
LIB_DEPENDS= gds.1:${PORTSDIR}/databases/firebird
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py:${PORTSDIR}/lang/py-mx-base
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}${VERSIONSUFFIX}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
PLIST_SUB= INSTALLDIR=lib/${PYTHON_VERSION}/site-packages/${PORTNAME}
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (kinterbasdb-3.1_pre6-src.tar.gz) = 60776283a744b87dc4e04c06f526657c

View File

@ -0,0 +1,22 @@
--- _kinterbasdb_constants.c.dist Wed Dec 3 00:07:47 2003
+++ _kinterbasdb_constants.c Wed Dec 3 00:09:09 2003
@@ -45,8 +45,8 @@
** The point of SET_TPB_CONST is to enter into dict d the equivalent of the
** Python string '\020', when passed the name and value of isc_some_dumb_const.
*/
-#define SET_TPB_CONST(name, value) \
- convArray[0] = (char) value; \
+#define SET_TPB_CONST(name, value) \
+ convArray[0] = (char) value; \
PyDict_SetItemString(d, name, PyString_FromStringAndSize(convArray, 1));
/* 2003.02.20: added isc_tpb_version3: */
@@ -85,7 +85,7 @@
static void _init_kidb_ibase_header_constants_database_info(PyObject *d) {
/* SET_INT_CONST is just a shortcut for entering database info constants into
** dict d. */
-#define SET_INT_CONST(name, value) \
+#define SET_INT_CONST(name, value) \
PyDict_SetItemString(d, name, PyInt_FromLong(value));
SET_INT_CONST("isc_info_db_id", isc_info_db_id);

View File

@ -0,0 +1,7 @@
KinterbasDB Python module is a client part for the Interbase
(Firebird) SQL Server. It enables you to store, retrieve and handle
relational data in Interbase within Python program. It provides the
functionality to execute SQL statements, control transactions, to use
special data types and supports Python DB API 2.0 specifications.
WWW: http://sourceforge.net/projects/kinterbasdb/

View File

@ -0,0 +1,50 @@
%%INSTALLDIR%%/__init__.py
%%INSTALLDIR%%/__init__.pyc
%%INSTALLDIR%%/__init__.pyo
%%INSTALLDIR%%/_kinterbasdb.so
%%INSTALLDIR%%/_kiservices.so
%%INSTALLDIR%%/k_exceptions.py
%%INSTALLDIR%%/k_exceptions.pyc
%%INSTALLDIR%%/k_exceptions.pyo
%%INSTALLDIR%%/services.py
%%INSTALLDIR%%/services.pyc
%%INSTALLDIR%%/services.pyo
%%INSTALLDIR%%/typeconv_23plus.py
%%INSTALLDIR%%/typeconv_23plus.pyc
%%INSTALLDIR%%/typeconv_23plus.pyo
%%INSTALLDIR%%/typeconv_backcompat.py
%%INSTALLDIR%%/typeconv_backcompat.pyc
%%INSTALLDIR%%/typeconv_backcompat.pyo
%%INSTALLDIR%%/typeconv_datetime_mx.py
%%INSTALLDIR%%/typeconv_datetime_mx.pyc
%%INSTALLDIR%%/typeconv_datetime_mx.pyo
%%INSTALLDIR%%/typeconv_datetime_naked.py
%%INSTALLDIR%%/typeconv_datetime_naked.pyc
%%INSTALLDIR%%/typeconv_datetime_naked.pyo
%%INSTALLDIR%%/typeconv_datetime_stdlib.py
%%INSTALLDIR%%/typeconv_datetime_stdlib.pyc
%%INSTALLDIR%%/typeconv_datetime_stdlib.pyo
%%INSTALLDIR%%/typeconv_fixed_fixedpoint.py
%%INSTALLDIR%%/typeconv_fixed_fixedpoint.pyc
%%INSTALLDIR%%/typeconv_fixed_fixedpoint.pyo
%%INSTALLDIR%%/typeconv_fixed_stdlib.py
%%INSTALLDIR%%/typeconv_fixed_stdlib.pyc
%%INSTALLDIR%%/typeconv_fixed_stdlib.pyo
%%INSTALLDIR%%/typeconv_naked.py
%%INSTALLDIR%%/typeconv_naked.pyc
%%INSTALLDIR%%/typeconv_naked.pyo
%%INSTALLDIR%%/typeconv_util_isinstance.py
%%INSTALLDIR%%/typeconv_util_isinstance.pyc
%%INSTALLDIR%%/typeconv_util_isinstance.pyo
%%INSTALLDIR%%/docs/Python-DB-API-2.0.html
%%INSTALLDIR%%/docs/changelog.txt
%%INSTALLDIR%%/docs/global.css
%%INSTALLDIR%%/docs/index.html
%%INSTALLDIR%%/docs/installation-binary.html
%%INSTALLDIR%%/docs/installation-source.html
%%INSTALLDIR%%/docs/license.txt
%%INSTALLDIR%%/docs/links.html
%%INSTALLDIR%%/docs/usage.html
%%INSTALLDIR%%/docs/w3c.png
@dirrm %%INSTALLDIR%%/docs
@dirrm %%INSTALLDIR%%