Ticket #45957: Portfile

File Portfile, 2.2 KB (added by cro (C. R. Oldham), 9 years ago)

py-ioflo 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        ioflo
10
11github.setup        ioflo ioflo 1.0.2 v
12name                py-ioflo
13categories          lang
14platforms           darwin
15maintainers         saltstack.com:cr
16license             Apache-2
17supported_archs     noarch
18distname            v1.0.2
19
20description         ioflo is a framework and DSL for building reasoning \
21                    automation systems.
22
23long_description    IoFlo is a magically powerful open interoperable software \
24                    framework that enables non experts to intelligently \
25                    automate their own programmable world. IoFlo has its roots \
26                    in the research and development of autonomous underwater \
27                    vehicles, autonomic ships, and automated buildings. These \
28                    are cool applications that can be scarily complex. That \
29                    complexity was the prime motivation for IoFlo and its \
30                    ancestors, to make programming autonomous/autonomic systems \
31                    easy even for people without PhDs.
32
33homepage            http://ioflo.com
34
35
36python.versions 27 34
37python.default_version 27
38
39checksums           rmd160 bb99fc946fd6f1b3ffd81cc9ac5508918fc86213 \
40                    sha256 9fb388505b551b057c62a4bf4d5b33b0cb72a593b2d4a5018ac5eced9f0be5a5
41
42if {${name} ne ${subport}} {
43    depends_lib-append port:py${python.version}-setuptools
44    depends_run        port:ioflo_select
45
46    post-destroot {
47        delete ${destroot}${prefix}/bin/ioflo[string range ${python.version} 0 end-1]-${python.branch}
48        delete ${destroot}${prefix}/bin/ioflo${python.branch}-${python.branch}
49    }
50
51    select.group        ${realname}
52    select.file         ${filespath}/${realname}${python.version}
53
54    notes "
55    To make the Python ${python.branch} version of ioflo the one that is run \
56    when you execute the commands without a version suffix, e.g. 'ioflo', run:
57
58    port select --set ${select.group} [file tail ${select.file}]
59    "
60}