Ticket #34022: Portfile

File Portfile, 1.9 KB (added by paumard, 12 years ago)

python/py-svipc/Portfile; no need for patches anymore

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           github 1.0
7
8set uname           svipc
9github.setup        mdcb yp-${uname} 0.14
10name                py-${uname}
11license             GPL-3
12platforms           darwin
13maintainers         users.sourceforge.net:paumard openmaintainer
14description         System V InterProcess Communication (Yorick/Python plug-ins)
15long_description    This plug-in for python and yorick gives access to the \
16                    System V IPC framework. This allows sharing memory and \
17                    passing messages and semaphores between several distinct \
18                    processes.
19homepage            https://github.com/mdcb/yp-svipc
20
21checksums           rmd160  5faa9b3943e638bdae084018316ddfe50d1c9aa4 \
22                    sha256  9f879670ecb4df71f1851cd3ac0250fdd2317baeb25e200f924037cc120dd1e3
23
24python.versions     24 25 26 27 31 32
25python.default_version       27
26
27if {${subport} != ${name} && ${subport} != "yorick-svipc"} {
28    depends_lib-append  port:py${python.version}-numpy
29    pre-configure {
30        reinplace "s/define_macros=\\\[/define_macros=\\\[('SVIPC_HACKS', True),/" ${worksrcpath}/setup.py
31    }
32
33}
34
35subport yorick-svipc {
36    categories          science
37    depends_build       
38    depends_lib         path:bin/yorick:yorick
39    depends_run         
40    use_configure       yes
41    universal_variant   no
42    configure.dir       ${worksrcpath}/yorick
43    configure.cmd       ${prefix}/bin/yorick
44    configure.pre_args  {}
45    configure.args      -batch make.i
46    build.dir           ${worksrcpath}/yorick
47    build.cmd           make
48    build.target        {}
49    pre-destroot        {}
50    destroot.cmd        make
51    destroot.destdir    DESTDIR=${destroot}
52}
53