[126328] trunk/dports/python/py-jcc/Portfile

petr at macports.org petr at macports.org
Tue Oct 7 16:27:40 PDT 2014


Revision: 126328
          https://trac.macports.org/changeset/126328
Author:   petr at macports.org
Date:     2014-10-07 16:27:40 -0700 (Tue, 07 Oct 2014)
Log Message:
-----------
py-jcc: fix livecheck, use common pattern

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

Modified: trunk/dports/python/py-jcc/Portfile
===================================================================
--- trunk/dports/python/py-jcc/Portfile	2014-10-07 23:23:08 UTC (rev 126327)
+++ trunk/dports/python/py-jcc/Portfile	2014-10-07 23:27:40 UTC (rev 126328)
@@ -4,14 +4,16 @@
 PortSystem          1.0
 PortGroup           python 1.0
 
+set _name           JCC
+set _n              [string index ${_name} 0]
+
 name                py-jcc
 version             2.13
-
 categories-append   devel
 platforms           darwin
 maintainers         gmail.com:petrus.hyvonen openmaintainer
 license             Apache-2
-homepage            http://lucene.apache.org/pylucene/jcc/index.html
+
 description         JCC is a C++ code generator for calling Java from C++/Python
 long_description    JCC is a C++ code generator for producing the code \
                     necessary to call into Java classes from CPython via \
@@ -25,9 +27,10 @@
                     property accessors. Iterators and mappings may also be\
                     declared to JCC.
 
-master_sites        http://pypi.python.org/packages/source/J/JCC/
+homepage            http://lucene.apache.org/pylucene/jcc/index.html
 
-distname            JCC-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+distname            ${_name}-${version}
 
 checksums           md5 5761aaaae3b9082dbc6769014b97dac3 \
                     sha256 4851d8707b72c3d7c75bcba1040c16d2ec17dbacf1d6e722f5c2b0dfdd48b758
@@ -36,4 +39,10 @@
 
 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/20141007/3b0b28be/attachment.html>


More information about the macports-changes mailing list