Ticket #37628: Portfile

File Portfile, 1.8 KB (added by larryv (Lawrence Velázquez), 11 years ago)
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
3PortSystem          1.0
4PortGroup           python 1.0
5PortGroup           select 1.0
6
7name                py-autopep8
8set realname        autopep8
9version             0.8
10categories-append   devel
11platforms           darwin
12license             Expat License
13maintainers         gmail.com:patrik.hartlen openmaintainer
14
15description         A tool that automatically formats Python code to conform to the PEP 8 style guide
16long_description    autopep8 formats Python code based on the output of the pep8_ utility. \
17                    Home-page: https://github.com/hhatto/autopep8 \
18                    Author: Hideo Hattori \
19                    Author-email: hhatto.jp@gmail.com
20
21homepage            http://pypi.python.org/pypi/${realname}
22
23master_sites        http://pypi.python.org/packages/source/p/${realname}
24distname            ${realname}-${version}
25checksums           rmd160  b071390601a2c8a78d5976f9c36ee3b535121041 \
26                    sha256  b363982590c9f764c1614464a13b1820421e72ddf6d32bb0bbbc5bc3bf14d1a8
27
28python.versions     26 27 31 32 33
29
30if {${subport} != ${name}} {
31    depends_build-append    port:py${python.version}-distribute
32    depends_run-append      port:py${python.version}-distribute \
33                            port:${realname}_select \
34                            port:py${python.version}-pep8
35    select.group            ${realname}
36    select.file             ${filespath}/${realname}${python.version}
37    notes "
38To make the Python ${python.branch} version of autopep8 the one that is run\
39when you execute the commands without a version suffix, e.g. 'autopep8', run:
40
41port select --set ${select.group} [file tail ${select.file}]
42"
43
44}