[127501] trunk/dports/python/py-pyttsx/Portfile
petr at macports.org
petr at macports.org
Tue Oct 28 17:29:47 PDT 2014
Revision: 127501
https://trac.macports.org/changeset/127501
Author: petr at macports.org
Date: 2014-10-28 17:29:47 -0700 (Tue, 28 Oct 2014)
Log Message:
-----------
py-pyttsx: switch to PyPI distfile.
Modified Paths:
--------------
trunk/dports/python/py-pyttsx/Portfile
Modified: trunk/dports/python/py-pyttsx/Portfile
===================================================================
--- trunk/dports/python/py-pyttsx/Portfile 2014-10-29 00:18:23 UTC (rev 127500)
+++ trunk/dports/python/py-pyttsx/Portfile 2014-10-29 00:29:47 UTC (rev 127501)
@@ -4,9 +4,12 @@
PortSystem 1.0
PortGroup python 1.0
-name py-pyttsx
+set _name pyttsx
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 1.1
-revision 1
+revision 2
categories-append devel audio
platforms darwin
license BSD
@@ -16,18 +19,21 @@
long_description ${description}
homepage https://github.com/parente/pyttsx
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+checksums md5 9426e15cc34e2d38f70b7bc61bd326dc \
+ rmd160 a7fc99cb0457ef07abaf46ee9c85412170ab4747 \
+ sha256 f435937d8c30e30f8fe034030e4ecbd0a69c3eaa4205e7280d5c9e19bf153df6
+
python.versions 27
if {${name} ne ${subport}} {
- depends_build port:py${python.version}-setuptools
- fetch.type git
- git.url https://github.com/parente/pyttsx.git
- git.branch 3d13e83b76e9d43d1e86afde8953fcabebb96c01
+ depends_build-append port:py${python.version}-setuptools
livecheck.type none
} else {
livecheck.type regex
- livecheck.url https://raw.github.com/parente/pyttsx/master/setup.py
- livecheck.regex {version='(\d+(?:\.\d+)*)'}
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141028/12509bc7/attachment-0001.html>
More information about the macports-changes
mailing list