[125802] trunk/dports/python/py-pylzma

stromnov at macports.org stromnov at macports.org
Fri Sep 26 13:14:12 PDT 2014


Revision: 125802
          https://trac.macports.org/changeset/125802
Author:   stromnov at macports.org
Date:     2014-09-26 13:14:12 -0700 (Fri, 26 Sep 2014)
Log Message:
-----------
py-pylzma: update to version 0.4.5

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

Added Paths:
-----------
    trunk/dports/python/py-pylzma/files/
    trunk/dports/python/py-pylzma/files/patch-setup.py.diff

Modified: trunk/dports/python/py-pylzma/Portfile
===================================================================
--- trunk/dports/python/py-pylzma/Portfile	2014-09-26 20:04:08 UTC (rev 125801)
+++ trunk/dports/python/py-pylzma/Portfile	2014-09-26 20:14:12 UTC (rev 125802)
@@ -5,11 +5,14 @@
 PortGroup           python 1.0
 
 name                py-pylzma
-version             0.4.4
+version             0.4.5
+revision            0
 categories-append   archivers
+platforms           darwin
 license             LGPL-2.1+
-platforms           darwin
 
+python.versions     26 27 33 34
+
 maintainers         stromnov openmaintainer
 
 description         Python bindings for the LZMA compression library.
@@ -17,25 +20,26 @@
 
 homepage            http://www.joachim-bauch.de/projects/pylzma/
 master_sites        http://pypi.python.org/packages/source/p/pylzma/
+
 distname            pylzma-${version}
 
-checksums           md5     a2be89cb2288174ebb18bec68fa559fb \
-                    sha1    703818c6bbba96dd843b583c3725b07f64ed6e73 \
-                    rmd160  a57c7e6a145cd19424b9bbb0ce4da4d20439ada3
+checksums           rmd160  1a5685029d15fd5fbcb91b12321d6e02dbb2ae1a \
+                    sha256  02eb860567bf760a7dd48e55e9834f7668f0c3ffbaedefcb82f954438253b3e4
 
-python.versions     26
-
 if {${name} ne ${subport}} {
     depends_build-append \
                         port:py${python.version}-setuptools
 
+    patchfiles-append   patch-setup.py.diff
+
     post-destroot {
-        xinstall -m 644 -W ${worksrcpath} LICENSE.txt readme.txt doc/usage.txt \
+        xinstall -m 644 -W ${worksrcpath} LICENSE README.md doc/USAGE.md \
             ${destroot}${prefix}/share/doc/${subport}
     }
+
     livecheck.type      none
 } else {
     livecheck.type      regex
     livecheck.url       ${master_sites}
-    livecheck.regex     pylzma-(\\d+(\\.\\d+)+)${extract.suffix}
+    livecheck.regex     {pylzma-(\d+(?:\.\d+)*)\.[tz]}
 }

Added: trunk/dports/python/py-pylzma/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pylzma/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pylzma/files/patch-setup.py.diff	2014-09-26 20:14:12 UTC (rev 125802)
@@ -0,0 +1,29 @@
+--- setup.py.orig	2014-09-27 00:12:17.000000000 +0400
++++ setup.py	2014-09-27 00:12:33.000000000 +0400
+@@ -97,7 +97,7 @@
+             log.info('adding support for multithreaded compression')
+             ext.define_macros.append(('COMPRESS_MF_MT', 1))
+             ext.sources += ('src/sdk/LzFindMt.c', 'src/sdk/Threads.c', )
+-        
++
+         if isinstance(self.compiler, MSVCCompiler):
+             # set flags only available when using MSVC
+             ext.extra_link_args.append('/MANIFEST')
+@@ -107,7 +107,7 @@
+                 ext.extra_link_args.append('/DEBUG')
+             else:
+                 ext.extra_compile_args.append('/MT')
+-        
++
+         _build_ext.build_extension(self, ext)
+ 
+ descr = "Python bindings for the LZMA library by Igor Pavlov."
+@@ -141,7 +141,7 @@
+ 
+ setup(
+     name = "pylzma",
+-    version = get_git_version().decode('utf-8'),
++    version = get_git_version(),
+     description = descr,
+     author = "Joachim Bauch",
+     author_email = "mail at joachim-bauch.de",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140926/227c3688/attachment.html>


More information about the macports-changes mailing list