[106115] trunk/dports/python

jmr at macports.org jmr at macports.org
Wed May 15 05:33:42 PDT 2013


Revision: 106115
          https://trac.macports.org/changeset/106115
Author:   jmr at macports.org
Date:     2013-05-15 05:33:42 -0700 (Wed, 15 May 2013)
Log Message:
-----------
py26-pytidylib: use unified portgroup, license, noarch

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

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

Removed Paths:
-------------
    trunk/dports/python/py26-pytidylib/

Modified: trunk/dports/python/py-pytidylib/Portfile
===================================================================
--- trunk/dports/python/py26-pytidylib/Portfile	2013-05-15 08:26:21 UTC (rev 106113)
+++ trunk/dports/python/py-pytidylib/Portfile	2013-05-15 12:33:42 UTC (rev 106115)
@@ -1,10 +1,12 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
-name                py26-pytidylib
+PortGroup           python 1.0
+
+name                py-pytidylib
 version             0.2.1
 categories-append   textproc www
+license             MIT
 maintainers         nomaintainer
 description         Python wrapper for tidylib
 long_description \
@@ -17,6 +19,7 @@
    an HTML or XHTML doctype, numeric entities work in generic XML data).
 
 platforms           darwin
+supported_archs     noarch
 
 homepage            http://countergram.com/open-source/pytidylib/
 master_sites        http://cloud.github.com/downloads/countergram/pytidylib/
@@ -26,17 +29,21 @@
                     sha1    0e3d89ce52289af641996fe0243417607bc5e941 \
                     rmd160  82db29a4cdd530aa7eb72c2da1131b7615c2def5
 
-depends_lib-append  port:tidy
+python.versions     26
 
-post-destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath} LICENSE README \
-      ${destroot}${prefix}/share/doc/${name}
-   eval file copy [glob ${worksrcpath}/docs/*] \
-      ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    depends_lib-append  port:tidy
+
+    post-destroot {
+       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+       xinstall -m 644 -W ${worksrcpath} LICENSE README \
+          ${destroot}${prefix}/share/doc/${subport}
+       eval file copy [glob ${worksrcpath}/docs/*] \
+          ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type      none
+} else {
+    livecheck.url       http://github.com/countergram/pytidylib/downloads
+    livecheck.type      regex
+    livecheck.regex     {pytidylib-([0-9.]+)\.tar\.gz}
 }
-
-livecheck.url       http://github.com/countergram/pytidylib/downloads
-livecheck.type      regex
-livecheck.regex     {pytidylib-([0-9.]+)\.tar\.gz}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130515/6ad607e0/attachment.html>


More information about the macports-changes mailing list