[134870] trunk/dports/python/py-paho-mqtt/Portfile

mojca at macports.org mojca at macports.org
Thu Apr 9 03:45:58 PDT 2015


Revision: 134870
          https://trac.macports.org/changeset/134870
Author:   mojca at macports.org
Date:     2015-04-09 03:45:58 -0700 (Thu, 09 Apr 2015)
Log Message:
-----------
py-paho-mqtt: fix livecheck, use 'internal_name' for the name of python module

Modified Paths:
--------------
    trunk/dports/python/py-paho-mqtt/Portfile

Modified: trunk/dports/python/py-paho-mqtt/Portfile
===================================================================
--- trunk/dports/python/py-paho-mqtt/Portfile	2015-04-09 10:33:43 UTC (rev 134869)
+++ trunk/dports/python/py-paho-mqtt/Portfile	2015-04-09 10:45:58 UTC (rev 134870)
@@ -5,6 +5,7 @@
 PortGroup           python 1.0
 
 name                py-paho-mqtt
+set internal_name   paho-mqtt
 version             1.1
 platforms           darwin
 # Eclipse Public License v1.0 / Eclipse Distribution License v1.0
@@ -15,8 +16,8 @@
 long_description    Eclipse Paho MQTT Python client library
 
 homepage            http://eclipse.org/paho
-master_sites        https://pypi.python.org/packages/source/p/paho-mqtt
-distname            paho-mqtt-${version}
+master_sites        https://pypi.python.org/packages/source/p/${internal_name}
+distname            ${internal_name}-${version}
 
 checksums           rmd160  db8334537cdbbf938b52749ea15e92c30dbf9711 \
                     sha256  0f7a629efe6e3a2c61b59d3550aa9f2c4529b5689a65fde45e6f1ac36b9a261e
@@ -30,5 +31,6 @@
     livecheck.type      none
 } else {
     livecheck.type      regex
-    livecheck.url       ${master_sites}
+    livecheck.url       https://pypi.python.org/pypi/${internal_name}
+    livecheck.regex     ${internal_name}-(\[0-9.\]+)\\.tar\\.gz
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150409/a72e0066/attachment.html>


More information about the macports-changes mailing list