Ticket #45958: Portfile

File Portfile, 1.9 KB (added by cro (C. R. Oldham), 10 years ago)

raet Portfile

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           github 1.0
6PortGroup           python 1.0
7PortGroup           select 1.0
8
9set realname        raet
10
11github.setup        saltstack raet 0.3.8 v
12name                py-raet
13categories          net
14platforms           darwin
15maintainers         saltstack.com:cr
16license             Apache-2
17supported_archs     noarch
18distname            v0.3.8
19
20description         RAET is a 'Reliable Asynchronous Event Transport' \
21                    library.
22
23long_description    RAET allows reliable, asynchronous, encrypted communications \
24                    in a one-to-one, one-to-many, or many-to-many fashion.
25
26homepage            http://github.com/saltstack/raet
27
28python.versions 27 34
29python.default_version 27
30
31checksums           rmd160 de868b2d0d7c8ade35b3fe2d9321278d7e990911 \
32                    sha256 db5df3837bee4478243b55e6459da9822ccbbe87f6bc8aee68177acedb9d29d4
33
34if {${name} ne ${subport}} {
35    depends_lib-append  port:py${python.version}-setuptools \
36                        port:py${python.version}-six \
37                        port:py${python.version}-libnacl \
38                        port:py${python.version}-ioflo
39    depends_run         port:raet_select
40
41    post-destroot {
42        delete ${destroot}${prefix}/bin/raetflo[string range ${python.version} 0 end-1]-${python.branch}
43        delete ${destroot}${prefix}/bin/raetflo${python.branch}-${python.branch}
44    }
45
46    select.group        ${realname}
47    select.file         ${filespath}/raetflo${python.version}
48
49    notes "
50    To make the Python ${python.branch} version of raet the one that is run \
51    when you execute the commands without a version suffix, e.g. 'raetflo', run:
52
53    port select --set ${select.group} [file tail ${select.file}]
54    "
55
56}
57
58depends_lib-append  port:libsodium