[85161] trunk/dports/python

snc at macports.org snc at macports.org
Mon Oct 10 11:17:14 PDT 2011


Revision: 85161
          http://trac.macports.org/changeset/85161
Author:   snc at macports.org
Date:     2011-10-10 11:17:13 -0700 (Mon, 10 Oct 2011)
Log Message:
-----------
py-gnupg: unify, take ownership

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

Removed Paths:
-------------
    trunk/dports/python/py25-gnupg/
    trunk/dports/python/py26-gnupg/
    trunk/dports/python/py27-gnupg/

Modified: trunk/dports/python/py-gnupg/Portfile
===================================================================
--- trunk/dports/python/py-gnupg/Portfile	2011-10-10 17:13:04 UTC (rev 85160)
+++ trunk/dports/python/py-gnupg/Portfile	2011-10-10 18:17:13 UTC (rev 85161)
@@ -1,14 +1,20 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem        1.0
-PortGroup         python24 1.0
+PortGroup           python 1.0
 
 name              py-gnupg
 version           0.3.2
-revision          1
+if {$subport == "py24-gnupg"} {
+    revision          1
+}
+python.versions     24 25 26 27
+# must default to python2.4
 categories        python
 platforms         darwin
-maintainers       nomaintainer
+maintainers         snc openmaintainer
+license             LGPL
 
 description       GnuPGInterface is a Python module to interface with GnuPG
 long_description  GnuPGInterface is a Python module to interface with \
@@ -19,27 +25,40 @@
 master_sites      sourceforge:py-gnupg
 distname          GnuPGInterface-${version}
 
-checksums         md5 d4627d83446f96bd8c22f8d15db3f7c2 \
-                  sha1 4d916b0fa1ba2d1894efdc1bc0c14ea4e6b43fa6 \
-                  rmd160 7bc5ae75bf17203442cfda8bbdb430b2f02fdd75
+checksums           rmd160  7bc5ae75bf17203442cfda8bbdb430b2f02fdd75 \
+                    sha256  0ea672251e2e3f71b62fef0c01539519d500f6b338f803af6b57e67a73cca8e6
 
-patchfiles        patch-setup.py.diff
+universal_variant   no
 
-depends_lib-append  port:gnupg
+if {$subport != $name} {
+    patchfiles        patch-setup.py.diff
 
-post-patch {
-  reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
-}
+    depends_lib-append  port:gnupg
 
-test.run          yes
-test.cmd          ${python.bin} unittests.py
-test.target
+    post-extract {
+        fs-traverse dir ${workpath} {
+            if {[file isdirectory ${dir}]} {
+                file attributes ${dir} -permissions 0755
+            } elseif {[file isfile ${dir}]} {
+                file attributes ${dir} -permissions 0644
+            }
+        }
+    }
 
-post-destroot {
-  xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog NEWS README \
-    THANKS ${destroot}${prefix}/share/doc/${name}
-}
+    post-patch {
+      reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+    }
 
-universal_variant no
+    test.run          yes
+    test.cmd          ${python.bin} unittests.py
+    test.target
 
-livecheck.distname GnuPGInterface
+    post-destroot {
+      xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog NEWS README \
+        THANKS ${destroot}${prefix}/share/doc/${subport}
+    }
+
+    livecheck.type      none
+} else {
+    livecheck.distname  GnuPGInterface
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111010/7af5873f/attachment.html>


More information about the macports-changes mailing list