source: trunk/dports/python/py-smisk/Portfile

Last change on this file was 124630, checked in by aronnax@…, 3 years ago

py-smisk: drop Python versions that are not supported by dependency py-markupsafe (fixes r44743; maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 124630 2014-08-27 06:06:34Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-smisk
7version             1.1.6
8categories          python www
9license             MIT BSD
10platforms           darwin
11
12maintainers         rasmus
13description         High performance web service framework
14long_description    A modern high performance web service framework, written \
15                    in C but controlled by Python.
16homepage            http://python-smisk.org/
17
18master_sites        http://python-smisk.org/dist/ \
19                    http://distfiles.macports.org/python/
20distname            smisk-${version}
21checksums           sha1 e0b1f278816c03967f178b63659f20cf40ec17b4
22
23python.versions     26
24
25if {${name} ne ${subport}} {
26    depends_lib-append  port:fcgi \
27                        port:py${python.version}-cjson \
28                        port:py${python.version}-setuptools \
29                        port:py${python.version}-elixir \
30                        port:py${python.version}-mako \
31                        port:py${python.version}-readline \
32                        port:py${python.version}-yaml
33
34    variant minimal description {Minimize number of dependencies} {
35      # Smisk will tell the user when she is trying to use a part of Smisk which
36      # requires a certain module which is not available, thus no extra
37      # configuration is required.
38      depends_lib-delete  port:py${python.version}-cjson \
39                          port:py${python.version}-elixir \
40                          port:py${python.version}-mako \
41                          port:py${python.version}-readline \
42                          port:py${python.version}-yaml
43    }
44
45    build.env-append  SMISK_BUILD_ID_SUFFIX=:macports:${revision}
46    build.args-append -f
47
48    post-destroot {
49        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
50        xinstall -m 644 -W ${worksrcpath} LICENSE README.rst CHANGELOG.rst ${destroot}${prefix}/share/doc/${subport}
51        copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}/examples
52    }
53}
Note: See TracBrowser for help on using the repository browser.