[86367] trunk/dports/python

devans at macports.org devans at macports.org
Mon Oct 24 13:12:35 PDT 2011


Revision: 86367
          http://trac.macports.org/changeset/86367
Author:   devans at macports.org
Date:     2011-10-24 13:12:35 -0700 (Mon, 24 Oct 2011)
Log Message:
-----------
py-xdg: unify port, update to version 0.19, add license, livecheck.

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

Added Paths:
-----------
    trunk/dports/python/py-xdg/

Removed Paths:
-------------
    trunk/dports/python/py25-xdg/
    trunk/dports/python/py26-xdg/

Modified: trunk/dports/python/py-xdg/Portfile
===================================================================
--- trunk/dports/python/py26-xdg/Portfile	2011-10-24 15:20:10 UTC (rev 86357)
+++ trunk/dports/python/py-xdg/Portfile	2011-10-24 20:12:35 UTC (rev 86367)
@@ -2,37 +2,52 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
 
-name	    	py26-xdg
-version	    	0.16
+name	    	py-xdg
+set gname       pyxdg
+version	    	0.19
+license         LGPL-2
 categories  	python textproc
 platforms       darwin
 maintainers     nomaintainer
+
+supported_archs noarch
+
 description     Python module implementing various freedesktop.org standards
 long_description    \
     PyXDG is a python library to access freedesktop.org standards. Currently \
     supported standards are: \
     \
     *   Base Directory Specification Version 0.6 \
-    *   Menu Specification Version 1.0-draft1 \
-    *   Desktop Entry Specification Version 0.9.4 \
+    *   Menu Specification Version 1.0 \
+    *   Desktop Entry Specification Version 1.0 \
     *   Icon Theme Specification Version 0.8 \
     *   Recent File Spec 0.2 \
     *   Shared-MIME-Database Specification 0.13
 
-homepage        http://www.freedesktop.org/wiki/Software/pyxdg
+homepage        http://www.freedesktop.org/wiki/Software/${gname}
 master_sites    http://www.freedesktop.org/~lanius/
-distname        pyxdg-${version}
-checksums       md5 55b71ec0df9509e05e562ac402b119f7 \
-                sha1 325dbb2cfb12f59877307022f6aa803e7f0819f0
+distname        ${gname}-${version}
 
-depends_lib-append \
-    port:py26-gobject \
-    port:py26-numeric
+checksums       md5     9f33542e846d0fc1e0bfa992a8555b0a \
+                sha1    71162cf78c2fd0152d795ebe57984fc48226249b
 
+python.default_version  27
+python.versions 25 26 27
+
+
+if {$subport != $name} {
+    depends_lib-append  port:py${python.version}-gobject \
+                        port:py${python.version}-numeric
+}
+
 build.env       LDFLAGS=-L${prefix}/lib
 
 post-patch {
     reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
 }
+
+livecheck.type  regex
+livecheck.url   http://www.freedesktop.org/~lanius/
+livecheck.regex "${gname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111024/749448a3/attachment.html>


More information about the macports-changes mailing list