[110316] trunk/dports/python/py-readline/Portfile
Revision: 110316 https://trac.macports.org/changeset/110316 Author: stromnov@macports.org Date: 2013-08-29 14:42:06 -0700 (Thu, 29 Aug 2013) Log Message: ----------- py-readline: fix whitespaces, reformat, add livecheck Modified Paths: -------------- trunk/dports/python/py-readline/Portfile Modified: trunk/dports/python/py-readline/Portfile =================================================================== --- trunk/dports/python/py-readline/Portfile 2013-08-29 21:38:13 UTC (rev 110315) +++ trunk/dports/python/py-readline/Portfile 2013-08-29 21:42:06 UTC (rev 110316) @@ -1,30 +1,45 @@ +# -*- 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 # $Id$ -PortSystem 1.0 -PortGroup python 1.0 +PortSystem 1.0 +PortGroup python 1.0 -name py-readline -version 6.2.4.1 -platforms darwin -license GPL-3+ PSF -maintainers nomaintainer -description GNU readline extension for Python -long_description ${description} +name py-readline +version 6.2.4.1 +platforms darwin +license GPL-3+ PSF -homepage http://www.python.org/ -master_sites http://pypi.python.org/packages/source/r/readline/ -distname readline-${version} -checksums md5 578237939c81fdbc2c8334d168b17907 \ - sha256 e00f86e03dfe52e7d1502cec5c64070b32621c85509c0081a4cfa6a0294bd107 +python.versions 24 25 26 27 31 32 33 -python.versions 24 25 26 27 31 32 33 +maintainers nomaintainer +description GNU readline extension for Python +long_description ${description} + +homepage http://github.com/ludwigschwardt/python-readline +master_sites http://pypi.python.org/packages/source/r/readline/ + +distname readline-${version} + +checksums rmd160 932c96cce3475344e4f5d7defc162d21f0acc79e \ + sha256 e00f86e03dfe52e7d1502cec5c64070b32621c85509c0081a4cfa6a0294bd107 + if {$subport != $name} { - patchfiles build.sh.patch setup.py.patch - depends_build port:py${python.version}-setuptools + depends_build-append \ + port:py${python.version}-setuptools + + patchfiles build.sh.patch \ + setup.py.patch + post-destroot { copy -force ${filespath}/readline.pth ${filespath}/readline_path.py \ ${destroot}${python.pkgd} reinplace "s|__LIBDIR__|${python.libdir}|" ${destroot}${python.pkgd}/readline_path.py } + + livecheck.type none +} else { + livecheck.type regex + livecheck.url ${master_sites} + livecheck.regex {readline-(\d+(?:\.\d+)*)\.[tz]} }
participants (1)
-
stromnov@macports.org