[128505] trunk/dports/python/py-whoosh/Portfile

petr at macports.org petr at macports.org
Sat Nov 22 09:10:47 PST 2014


Revision: 128505
          https://trac.macports.org/changeset/128505
Author:   petr at macports.org
Date:     2014-11-22 09:10:47 -0800 (Sat, 22 Nov 2014)
Log Message:
-----------
py-whoosh: formating, correct livecheck

Modified Paths:
--------------
    trunk/dports/python/py-whoosh/Portfile

Modified: trunk/dports/python/py-whoosh/Portfile
===================================================================
--- trunk/dports/python/py-whoosh/Portfile	2014-11-22 16:54:10 UTC (rev 128504)
+++ trunk/dports/python/py-whoosh/Portfile	2014-11-22 17:10:47 UTC (rev 128505)
@@ -4,15 +4,16 @@
 PortSystem          1.0
 PortGroup           python 1.0
 
+set _name           Whoosh
+set _n              [string index ${_name} 0]
+
 name                py-whoosh
-set real_name       Whoosh
 version             2.5.7
-python.versions     27
 platforms           darwin
 supported_archs     noarch
 license             BSD
 maintainers         nomaintainer
-homepage            https://bitbucket.org/mchaput/whoosh/wiki/Home
+
 description         Fast pure-Python indexing and search library
 long_description    \
     Whoosh is a fast, featureful full-text indexing and searching library \
@@ -20,13 +21,22 @@
     functionality to their applications and websites. Every part of how Whoosh \
     works can be extended or replaced to meet your needs exactly.
 
-master_sites        https://pypi.python.org/packages/source/W/${real_name}
-distname            ${real_name}-${version}
+homepage            https://bitbucket.org/mchaput/whoosh/wiki/Home
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}
+distname            ${_name}-${version}
 
 checksums           md5     9d35a7498d5c7af8fe162f63719f4eeb \
                     rmd160  e5bd168af8cc5cd601af9d3aff6c6cb85c38d61c \
                     sha256  450d3b76c45dd26ceda101ebafee181c7ab377e8ea37ff5aaca1be79227f73fa
 
+python.versions     27
+
 if {${name} ne ${subport}} {
     depends_build   port:py${python.version}-setuptools
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    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/20141122/0966f368/attachment-0001.html>


More information about the macports-changes mailing list