source: trunk/dports/python/py-cdb/Portfile @ 5325

Last change on this file since 5325 was 5325, checked in by mww, 17 years ago

prefer xinstall over file copy/mkdir

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# $Id: Portfile,v 1.2 2004/02/08 13:24:57 mww Exp $
2
3PortSystem 1.0
4
5name            py-cdb
6version         0.32
7categories      python
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     python module for using the constant database package
11long_description        The python-cdb extension module is an adaptation of \
12                        D. J. Bernstein's constant database package (see \
13                        http://cr.yp.to/cdb.html). The cdb files are mappings \
14                        of keys to values, designed for wickedly fast lookups \
15                        and atomic updates.  This module mimics the normal cdb \
16                        utilities, cdb(get|dump|make), via convenient, \
17                        high-level Python objects.
18
19homepage        http://pilcrow.madison.wi.us/
20master_sites    ${homepage}/python-cdb/
21distname        python-cdb-${version}
22checksums       md5 0e303095f8c0ea9f09d7f11faf89805f
23
24depends_lib     bin:python:python
25
26use_configure   no
27
28build.cmd       python setup.py
29build.target    build
30
31destroot.cmd    python setup.py
32destroot.destdir        --prefix=${destroot}${prefix}
33
34post-destroot   {
35        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
36        xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README \
37                ${destroot}${prefix}/share/doc/${name}
38        xinstall -m 644 ${worksrcpath}/Example \
39                ${destroot}${prefix}/share/doc/${name}/examples/example.py
40}
Note: See TracBrowser for help on using the repository browser.