source: trunk/dports/python/py-virtualenv/Portfile @ 106911

Last change on this file since 106911 was 106911, checked in by jmr@…, 6 years ago

Change distribute dependencies back to setuptools and mark py*-distribute replaced_by py*-setuptools (#39237).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
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: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8name                py-virtualenv
9set real_name       virtualenv
10version             1.9.1
11revision            0
12categories-append   devel
13platforms           darwin
14license             MIT
15
16python.versions     24 25 26 27 31 32 33
17
18maintainers         akitada openmaintainer
19
20description         Virtual Python Environment builder
21long_description    virtualenv is a tool to create isolated Python \
22                    environments.
23
24homepage            http://pypi.python.org/pypi/${real_name}
25master_sites        http://pypi.python.org/packages/source/v/${real_name}/
26
27distname            ${real_name}-${version}
28
29checksums           rmd160  67813be5625bf5669bf03d233409d992a207ca28 \
30                    sha256  d04f750c968e18de42ff15f50759f15ba22800b12247b95826e2f8b160f7d99a
31
32subport py24-virtualenv {
33    version             1.7.2
34    revision            0
35    distname            ${real_name}-${version}
36    checksums           rmd160  bdd0c3ef92ed2b954ee60a4d4df31dc1c17e4b1e \
37                        sha256  8cbbe308ab0f446a4ceacf24b2656bedd33ea22825b0750fd079766cc6e91bf4
38}
39
40if {$subport != $name} {
41    depends_lib-append  port:py${python.version}-setuptools
42    depends_run-append  port:virtualenv_select
43
44    select.group        virtualenv
45    select.file         ${filespath}/virtualenv${python.version}
46
47    # The virtualenv build process creates both virtualenv and virtualenv-${python.branch}
48    # but we only want one. We cannot keep the unsuffixed one, because by the time the port's
49    # post-destroot block runs, the portgroup's post-destroot block (which creates suffixed
50    # versions by renaming or symlinking) has already run. Therefore we will keep the
51    # suffixed one and tell the portgroup not to create its own suffixed versions.
52    python.link_binaries_suffix
53    python.move_binaries no
54
55    post-destroot {
56        delete ${destroot}${prefix}/bin/virtualenv
57        if {${prefix} != ${python.prefix}} {
58            delete ${destroot}${python.prefix}/bin/virtualenv
59        }
60
61        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
62        foreach f [glob -directory ${worksrcpath}/docs *] {
63            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
64        }
65    }
66
67    livecheck.type      none
68} else {
69    livecheck.type      regex
70    livecheck.url       http://pypi.python.org/pypi/virtualenv
71    livecheck.regex     virtualenv (1\.\[0-9\]+\.\[0-9\]+)
72}
Note: See TracBrowser for help on using the repository browser.