1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 44419 2008-12-28 09:31:44Z akitada@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-pylibmc |
---|
8 | version 0.6.1 |
---|
9 | maintainers nomaintainer |
---|
10 | description python memcached client wrapped on libmemcached |
---|
11 | long_description pylibmc is a Python wrapper around the accompanying \ |
---|
12 | C Python extension _pylibmc, which is a wrapper around \ |
---|
13 | libmemcached from TangentOrg |
---|
14 | platforms darwin |
---|
15 | homepage http://pypi.python.org/pypi/pylibmc |
---|
16 | master_sites http://pypi.python.org/packages/source/p/pylibmc/ |
---|
17 | distname pylibmc-${version} |
---|
18 | checksums md5 e1b82eb7dff446a034f174c93b6c9ac2 \ |
---|
19 | sha1 0743e6df37e22ab16b7f2f8d65508b8966bb77d6 \ |
---|
20 | rmd160 5b42103b01d086160159e97e0f9553627a6e13f1 |
---|
21 | |
---|
22 | depends_lib port:libmemcached |
---|
23 | |
---|
24 | configure { |
---|
25 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py |
---|
26 | } |
---|
27 | |
---|
28 | build.cmd ${python.bin} setup.py build_ext \ |
---|
29 | --include-dirs=${prefix}/include:${prefix}/include/libmemcached \ |
---|
30 | --library-dirs=${prefix}/lib |
---|
31 | |
---|
32 | post-destroot { |
---|
33 | xinstall -m 644 -W ${worksrcpath} \ |
---|
34 | LICENSE benchmark.py tests.py \ |
---|
35 | ${destroot}${prefix}/share/doc/${name} |
---|
36 | |
---|
37 | } |
---|