[139768] trunk/dports/python

petr at macports.org petr at macports.org
Wed Aug 26 09:08:49 PDT 2015


Revision: 139768
          https://trac.macports.org/changeset/139768
Author:   petr at macports.org
Date:     2015-08-26 09:08:49 -0700 (Wed, 26 Aug 2015)
Log Message:
-----------
py-bottle py-bottle-sqlalchemy: fix livecheck

Modified Paths:
--------------
    trunk/dports/python/py-bottle/Portfile
    trunk/dports/python/py-bottle-sqlalchemy/Portfile

Modified: trunk/dports/python/py-bottle/Portfile
===================================================================
--- trunk/dports/python/py-bottle/Portfile	2015-08-26 15:55:53 UTC (rev 139767)
+++ trunk/dports/python/py-bottle/Portfile	2015-08-26 16:08:49 UTC (rev 139768)
@@ -1,10 +1,13 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
-PortGroup python 1.0
+PortSystem          1.0
+PortGroup           python 1.0
 
-name                py-bottle
+set _name           bottle
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
 version             0.10.9
 
 categories-append   devel
@@ -22,10 +25,17 @@
 supported_archs     noarch
 
 homepage            http://bottlepy.org/
-master_sites        http://pypi.python.org/packages/source/b/bottle/
-distname            bottle-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+distname            ${_name}-${version}
 
 python.versions     26 27 34
 
 checksums           rmd160 2d09fb3346e7249f54f495812a4868070fdf05ed \
                     sha256 bfe88bcf920880d9c355f58b651a97e7f8b56437b104ff951fb985a129c06794
+
+if {${name} ne ${subport}} {
+    livecheck.type  none
+} else {
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
+}

Modified: trunk/dports/python/py-bottle-sqlalchemy/Portfile
===================================================================
--- trunk/dports/python/py-bottle-sqlalchemy/Portfile	2015-08-26 15:55:53 UTC (rev 139767)
+++ trunk/dports/python/py-bottle-sqlalchemy/Portfile	2015-08-26 16:08:49 UTC (rev 139768)
@@ -1,10 +1,13 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
-PortGroup python 1.0
+PortSystem          1.0
+PortGroup           python 1.0
 
-name                py-bottle-sqlalchemy
+set _name           bottle-sqlalchemy
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
 version             0.3
 
 categories-append   databases devel
@@ -20,8 +23,9 @@
 supported_archs     noarch
 
 homepage            https://github.com/iurisilvio/bottle-sqlalchemy
-master_sites        http://pypi.python.org/packages/source/b/bottle-sqlalchemy/
-distname            bottle-sqlalchemy-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+distname            ${_name}-${version}
+
 checksums           md5 b139d97424efcf917474f142851f0231 \
                     sha256 197189c4aa92dad32c49fcb6e8a1c365679b1d024129640a4f30eee0b2db6b78
 
@@ -29,4 +33,9 @@
 
 if {${name} ne ${subport}} {
     depends_lib     port:py${python.version}-bottle
+
+    livecheck.type  none
+} else {
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150826/b8d9edfb/attachment.html>


More information about the macports-changes mailing list