source: trunk/dports/python/py-bsddb/Portfile @ 20374

Last change on this file since 20374 was 20374, checked in by blair@…, 13 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1# $Id: Portfile 20374 2006-11-02 19:37:36Z blair@macports.org $
2
3PortSystem 1.0
4PortGroup python24 1.0
5
6name                    py-bsddb
7version                 2.4.3
8categories              python databases
9platforms               darwin
10maintainers             mww@opendarwin.org
11description             Python bindings to the db4 and db3 library
12long_description        ${description}
13
14homepage                http://www.python.org/doc/current/lib/module-dbm.html
15master_sites    http://www.python.org/ftp/python/${version}/
16distname                Python-${version}
17dist_subdir             python24
18checksums               md5 141c683447d5e76be1d2bd4829574f02
19use_bzip2               yes
20
21worksrcdir              ${worksrcdir}/Modules
22
23extract.post_args       "| tar -xf - ${distname}/Modules/bsddbmodule.c \
24                                ${distname}/Modules/_bsddb.c"
25post-extract {
26        file copy       ${filespath}/setup.py ${worksrcpath}
27}
28
29set db_version  4
30depends_lib-append      lib:libdb-4:db4
31
32variant db3     {
33        set db_version  3
34        depends_lib-delete      lib:libdb-4:db4
35        depends_lib-append      lib:libdb-3:db3
36}
37
38post-patch      {
39        cd ${worksrcpath}
40        reinplace "s|__VERSION__|${version}|g" setup.py
41        reinplace "s|__PREFIX__|${prefix}|g" setup.py
42        reinplace "s|<db.h>|<db${db_version}/db.h>|g" _bsddb.c
43}
44
Note: See TracBrowser for help on using the repository browser.