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

Last change on this file was 148976, checked in by raimue@…, 14 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-appscript
8set real_name       appscript
9version             1.0.1
10categories          python
11platforms           darwin
12license             public-domain
13maintainers         internode.on.net:arsptr
14description         High-level application scripting package for Python
15long_description    Appscript is a high-level, user-friendly MacPython to \
16                    Apple event bridge that allows you to control scriptable \
17                    Mac OS X applications using ordinary Python scripts. \
18                    Appscript makes MacPython a serious alternative to Apple's \
19                    own AppleScript language for automating your Mac.
20
21homepage            http://appscript.sourceforge.net/
22master_sites        pypi:a/${real_name}
23distname            ${real_name}-${version}
24
25checksums           rmd160  d5bc7581a0149500b6bed18c47711ddc31024658 \
26                    sha256  24eae98bb50bd6788be9e7ce03cea1187788d63e70712eedcf186dc1b9fb6578
27
28python.versions     27 34
29
30if {${name} ne ${subport}} {
31    depends_build-append    port:py${python.version}-setuptools
32    post-destroot {
33        set subdir appscript_[string index ${python.version} 0]x
34        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/${subdir}
35        file copy ${worksrcpath}/${subdir}/sample \
36            ${destroot}${prefix}/share/doc/${subport}/${subdir}/sample
37        file copy ${worksrcpath}/${subdir}/doc \
38            ${destroot}${prefix}/share/doc/${subport}/${subdir}/doc
39    }
40    livecheck.type  none
41} else {
42    livecheck.type  regex
43    livecheck.url   [lindex ${master_sites} 0]
44    livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
45}
46
Note: See TracBrowser for help on using the repository browser.