[22091] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Sat Feb 17 08:01:01 PST 2007
Revision: 22091
http://trac.macosforge.org/projects/macports/changeset/22091
Author: mww at macports.org
Date: 2007-02-17 08:01:01 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
new port py25-bsddb - python 2.5 bindings for db44
Added Paths:
-----------
trunk/dports/python/py25-bsddb/
trunk/dports/python/py25-bsddb/Portfile
trunk/dports/python/py25-bsddb/files/
trunk/dports/python/py25-bsddb/files/setup.py
Added: trunk/dports/python/py25-bsddb/Portfile
===================================================================
--- trunk/dports/python/py25-bsddb/Portfile (rev 0)
+++ trunk/dports/python/py25-bsddb/Portfile 2007-02-17 16:01:01 UTC (rev 22091)
@@ -0,0 +1,46 @@
+# $Id: Portfile 21460 2007-01-25 20:57:54Z mww at macports.org $
+
+PortSystem 1.0
+#PortGroup python25 1.0
+
+name py25-bsddb
+version 2.5
+categories python databases
+platforms darwin
+maintainers mww at macports.org
+description Python bindings to the db44 library
+long_description ${description}
+
+homepage http://www.python.org/doc/current/lib/module-dbm.html
+master_sites http://www.python.org/ftp/python/${version}/
+distname Python-${version}
+dist_subdir python25
+checksums sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078
+use_bzip2 yes
+
+worksrcdir ${worksrcdir}/Modules
+
+extract.post_args "| tar -xf - ${distname}/Modules/bsddbmodule.c \
+ ${distname}/Modules/_bsddb.c"
+post-extract {
+ file copy ${filespath}/setup.py ${worksrcpath}
+}
+
+set libdir ${prefix}/lib/db44
+set incdir ${prefix}/include/db44
+#depends_lib-append port:db44
+depends_lib port:python25 port:db44
+
+configure {
+ cd ${worksrcpath}
+ reinplace "s|__VERSION__|${version}|g" setup.py
+ reinplace "s|__LIBDIR__|${libdir}|g" setup.py
+ reinplace "s|__INCDIR__|${incdir}|g" setup.py
+}
+
+# remove these lines when python25 port group is available
+build.cmd ${prefix}/bin/python2.5 setup.py
+build.target build
+destroot.cmd ${build.cmd}
+destroot.destdir --prefix=${prefix} --root=${destroot}
+
Added: trunk/dports/python/py25-bsddb/files/setup.py
===================================================================
--- trunk/dports/python/py25-bsddb/files/setup.py (rev 0)
+++ trunk/dports/python/py25-bsddb/files/setup.py 2007-02-17 16:01:01 UTC (rev 22091)
@@ -0,0 +1,21 @@
+try:
+ import distutils
+ from distutils import sysconfig
+ from distutils.command.install import install
+ from distutils.core import setup, Extension
+except:
+ raise SystemExit, "Distutils problem"
+
+inc_dirs = ["__INCDIR__"]
+lib_dirs = ["__LIBDIR__"]
+libs = ["db"]
+
+setup(name = "_bsddb",
+ version = "__VERSION__",
+ description = "BSDDB Extension to Python",
+
+ ext_modules = [Extension('_bsddb', ['_bsddb.c'],
+ include_dirs = inc_dirs,
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070217/c57fe4a4/attachment.html
More information about the macports-changes
mailing list