[90539] trunk/dports/python

raphael at macports.org raphael at macports.org
Thu Mar 8 07:17:47 PST 2012


Revision: 90539
          http://trac.macports.org/changeset/90539
Author:   raphael at macports.org
Date:     2012-03-08 07:17:46 -0800 (Thu, 08 Mar 2012)
Log Message:
-----------
py(31)-djvubind:

 * move to unified python portgroup
 * update to version 1.2.0; closes #33529

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

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

Removed Paths:
-------------
    trunk/dports/python/py31-djvubind/

Modified: trunk/dports/python/py-djvubind/Portfile
===================================================================
--- trunk/dports/python/py31-djvubind/Portfile	2012-03-08 13:27:13 UTC (rev 90538)
+++ trunk/dports/python/py-djvubind/Portfile	2012-03-08 15:17:46 UTC (rev 90539)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem                      1.0
-PortGroup                       python31 1.0
+PortGroup                       python 1.0
 
-name                            py31-djvubind
-version                         1.1.0
+name                            py-djvubind
+version                         1.2.0
+python.versions                 30 31 32
+python.default_version          32
 platforms                       darwin
 supported_archs                 noarch
 maintainers                     raphael openmaintainer
@@ -30,35 +32,37 @@
 
 master_sites                    googlecode:djvubind
 
-checksums                       md5     90f90c60723581ee9f322e06ec77c2d2 \
-                                sha1    69886f4ab3767220e4f2cce5016f20160e5f63b4 \
-                                rmd160  2b45ef90d98204097131e9ec38361038a00f8780
+checksums                       md5     d8b8032a12e8d3013bd7a4df2017ce10 \
+                                sha1    c7c6d14ea09c10ef7de867b83798b5d2957e6257 \
+                                rmd160  34ce3f05810ce3582ab64f0a6d7e195ba1191476
 
-patchfiles                      patch-setup.py.diff
-post-patch {
-    reinplace "s|/usr/bin/env python3|${python.bin}|" ${worksrcpath}/bin/djvubind
-}
+if {${subport} != ${name}} {
+    patchfiles                      patch-setup.py.diff
+    post-patch {
+        reinplace "s|/usr/bin/env python3|${python.bin}|" ${worksrcpath}/bin/djvubind
+    }
 
-python.link_binaries_suffix
+    python.link_binaries_suffix
 
-set sysconfigdir etc/djvubind
+    set sysconfigdir etc/djvubind
 
-post-destroot {
-    ln -s "${python.prefix}/share/man/man1/djvubind.1.gz" \
-        "${destroot}${prefix}/share/man/man1/djvubind${python.link_binaries_suffix}.1.gz"
-    set docdir ${destroot}${prefix}/share/doc/${name}
-    xinstall -d ${docdir}
-    xinstall -m 644 -W ${worksrcpath} \
-        README \
-        docs/changelog \
-        ${docdir}
-    xinstall -d ${destroot}${prefix}/${sysconfigdir}
-    move ${destroot}${python.prefix}/etc/djvubind/config \
-        ${destroot}${prefix}/${sysconfigdir}/config.sample
-}
+    post-destroot {
+        ln -s "${python.prefix}/share/man/man1/djvubind.1.gz" \
+            "${destroot}${prefix}/share/man/man1/djvubind${python.link_binaries_suffix}.1.gz"
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
+        xinstall -m 644 -W ${worksrcpath} \
+            README \
+            docs/changelog \
+            ${docdir}
+        xinstall -d ${destroot}${prefix}/${sysconfigdir}
+        move ${destroot}${python.prefix}/etc/djvubind/config \
+            ${destroot}${prefix}/${sysconfigdir}/config.sample
+    }
 
-post-activate {
-    if {![file exists ${prefix}/${sysconfigdir}/config]} {
-        copy ${prefix}/${sysconfigdir}/config.sample ${prefix}/${sysconfigdir}/config
+    post-activate {
+        if {![file exists ${prefix}/${sysconfigdir}/config]} {
+            copy ${prefix}/${sysconfigdir}/config.sample ${prefix}/${sysconfigdir}/config
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120308/efacf4e9/attachment.html>


More information about the macports-changes mailing list