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

Last change on this file was 147075, checked in by petr@…, 18 months ago

py-django: upgrade to 1.9.4, retire py26 py33 subports, closes #47390
py-django{-htmlmin,-nose}: retire py26 py33 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 147075 2016-03-25 17:46:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-django
8version             1.9.4
9categories-append   www
10platforms           darwin
11license             BSD
12maintainers         nomaintainer
13
14description         Django is a high-level Python Web framework
15long_description    Django is a high-level Python Web framework that \
16                    encourages rapid development and clean, pragmatic \
17                    design.
18
19homepage            http://www.djangoproject.com
20set branch          [join [lrange [split ${version} .] 0 1] .]
21master_sites        https://www.djangoproject.com/m/releases/${branch}/
22distname            Django-${version}
23
24checksums           rmd160  649f869ed0bbc456f89280a3bcb19a1b2d8f024f \
25                    sha256  ada8e7aa697e47c94b5660291cc0a14bb555385e0898da0a119d8f4b648fbde9
26
27python.versions     27 34 35
28
29if {${name} ne ${subport}} {
30    depends_lib-append  port:py${python.version}-setuptools
31
32    variant bash_completion {
33        depends_run-append path:etc/bash_completion:bash-completion
34
35        post-patch {
36            reinplace "s|django-admin.py|django-admin-${python.branch}.py|g" \
37                ${worksrcpath}/extras/django_bash_completion
38        }
39
40        post-destroot {
41            xinstall -d ${destroot}${prefix}/etc/bash_completion.d
42            xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \
43                ${destroot}${prefix}/etc/bash_completion.d/django-admin-${python.branch}.py
44        }
45    }
46
47    # we want *-${python.branch}.py not *.py-${python.branch}
48    python.link_binaries no
49    python.move_binaries no
50    post-destroot   {
51        xinstall -m 644 -W ${worksrcpath} \
52            AUTHORS INSTALL LICENSE README.rst \
53            ${destroot}${prefix}/share/doc/${subport}
54
55        file copy ${worksrcpath}/docs \
56            ${destroot}${prefix}/share/doc/${subport}/docs
57
58        # To avoid conflict between py*-django
59        ln -s ${python.prefix}/bin/django-admin.py \
60            ${destroot}${prefix}/bin/django-admin-${python.branch}.py
61    }
62
63    livecheck.type  none
64} else {
65    livecheck.type  regex
66    livecheck.url   http://www.djangoproject.com/download/
67    livecheck.regex "The latest official version is (1\.\[0-9\]+\.\[0-9\]*)"
68}
Note: See TracBrowser for help on using the repository browser.