Ticket #19501: Portfile

File Portfile, 1.4 KB (added by voldmar@…, 12 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-pylibmc
8version             0.6.1
9maintainers         nomaintainer
10description         python memcached client wrapped on libmemcached
11long_description    pylibmc is a Python wrapper around the accompanying \
12                    C Python extension _pylibmc, which is a wrapper around \
13                    libmemcached from TangentOrg
14platforms           darwin
15homepage            http://pypi.python.org/pypi/pylibmc
16master_sites        http://pypi.python.org/packages/source/p/pylibmc/
17distname            pylibmc-${version}
18checksums           md5 e1b82eb7dff446a034f174c93b6c9ac2 \
19                    sha1 0743e6df37e22ab16b7f2f8d65508b8966bb77d6 \
20                    rmd160 5b42103b01d086160159e97e0f9553627a6e13f1
21
22depends_lib         port:libmemcached
23
24configure {
25    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py
26}
27
28build.cmd           ${python.bin} setup.py build_ext \
29                    --include-dirs=${prefix}/include:${prefix}/include/libmemcached \
30                    --library-dirs=${prefix}/lib
31
32post-destroot {
33    xinstall -m 644 -W ${worksrcpath} \
34         LICENSE benchmark.py tests.py \
35         ${destroot}${prefix}/share/doc/${name}
36
37}