summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorminskim <minskim>2004-02-13 21:30:34 +0000
committerminskim <minskim>2004-02-13 21:30:34 +0000
commitaedc143f9ad457f924be2e3621421c25d1cf5dc2 (patch)
treed7c84c5e5d0e31cf8fce537b6ac005b03d9cc449 /databases
parentd57dd0263b047dcf939492101724fc74f7d3ee84 (diff)
downloadpkgsrc-aedc143f9ad457f924be2e3621421c25d1cf5dc2.tar.gz
Import py-dbxml from pkgsrc-wip.
This module is built using SWIG (http://www.swig.org) to produce a Python module that maps to the Berkeley DB XML C++ API fairly closely. At present, separate documentation for the Python API is not provided. Refer to the C++ API documentation and the Python examples for more information, or contact Sleepycat Support (support@sleepycat.com).
Diffstat (limited to 'databases')
-rw-r--r--databases/py-dbxml/DESCR5
-rw-r--r--databases/py-dbxml/Makefile25
-rw-r--r--databases/py-dbxml/PLIST5
-rw-r--r--databases/py-dbxml/distinfo5
-rw-r--r--databases/py-dbxml/patches/patch-aa22
5 files changed, 62 insertions, 0 deletions
diff --git a/databases/py-dbxml/DESCR b/databases/py-dbxml/DESCR
new file mode 100644
index 00000000000..d4560b4f802
--- /dev/null
+++ b/databases/py-dbxml/DESCR
@@ -0,0 +1,5 @@
+This module is built using SWIG (http://www.swig.org) to produce a
+Python module that maps to the Berkeley DB XML C++ API fairly closely.
+At present, separate documentation for the Python API is not provided.
+Refer to the C++ API documentation and the Python examples for more
+information, or contact Sleepycat Support (support@sleepycat.com).
diff --git a/databases/py-dbxml/Makefile b/databases/py-dbxml/Makefile
new file mode 100644
index 00000000000..211b895e908
--- /dev/null
+++ b/databases/py-dbxml/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/13 21:30:34 minskim Exp $
+
+DISTNAME= dbxml-1.2.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= databases
+MASTER_SITES= http://www.sleepycat.com/update/snapshot/
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.sleepycat.com/products/xml.shtml
+COMMENT= Python wrapper for Berkeley DB XML C++ API
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src/python
+PYDISTUTILSPKG= YES
+USE_BUILDLINK3= YES
+NO_CONFIGURE= YES
+
+.include "../../lang/python/extension.mk"
+PYSETUPBUILDARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4} \
+ --with-xerces=${BUILDLINK_PREFIX.xerces-c} \
+ --with-pathan=${BUILDLINK_PREFIX.libpathan}
+
+.include "../../databases/dbxml/buildlink3.mk"
+.include "../../textproc/libpathan/buildlink3.mk"
+.include "../../textproc/xerces-c/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-dbxml/PLIST b/databases/py-dbxml/PLIST
new file mode 100644
index 00000000000..8f71882f232
--- /dev/null
+++ b/databases/py-dbxml/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/13 21:30:34 minskim Exp $
+${PYSITELIB}/_dbxml.so
+${PYSITELIB}/dbxml.py
+${PYSITELIB}/dbxml.pyc
+${PYSITELIB}/dbxml.pyo
diff --git a/databases/py-dbxml/distinfo b/databases/py-dbxml/distinfo
new file mode 100644
index 00000000000..f475aa6dc92
--- /dev/null
+++ b/databases/py-dbxml/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/13 21:30:34 minskim Exp $
+
+SHA1 (dbxml-1.2.1.tar.gz) = cc6ce354b3fb2e00d5b424c0b15ecee4ec340842
+Size (dbxml-1.2.1.tar.gz) = 3151529 bytes
+SHA1 (patch-aa) = 9ab84591ec0c6398afc19cb7dfcc1eb8574a8758
diff --git a/databases/py-dbxml/patches/patch-aa b/databases/py-dbxml/patches/patch-aa
new file mode 100644
index 00000000000..e3b9550043d
--- /dev/null
+++ b/databases/py-dbxml/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/13 21:30:34 minskim Exp $
+
+--- setup.py.orig 2003-12-17 14:55:18.000000000 -0600
++++ setup.py
+@@ -42,7 +42,7 @@ if "install" in sys.argv and not "build"
+
+ if os.name == "posix":
+ INCLUDES = ["../../include",
+- os.path.join(db_home, "include"),
++ os.path.join(db_home, "include", "db4"),
+ os.path.join(pathan_home, "include"),
+ os.path.join(xerces_home, "include")]
+
+@@ -52,7 +52,7 @@ if os.name == "posix":
+ os.path.join(xerces_home, "lib")]
+
+ LIBS = ["dbxml-1.2",
+- "db_cxx-4.2",
++ "db4_cxx-4.2",
+ "pathan", "xerces-c"]
+
+ DATAFILES = []