[115940] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Tue Jan 14 13:49:11 PST 2014
Revision: 115940
https://trac.macports.org/changeset/115940
Author: stromnov at macports.org
Date: 2014-01-14 13:49:11 -0800 (Tue, 14 Jan 2014)
Log Message:
-----------
py-backports-lzma: new port
Added Paths:
-----------
trunk/dports/python/py-backports-lzma/
trunk/dports/python/py-backports-lzma/Portfile
trunk/dports/python/py-backports-lzma/files/
trunk/dports/python/py-backports-lzma/files/patch-setup.py.diff
Added: trunk/dports/python/py-backports-lzma/Portfile
===================================================================
--- trunk/dports/python/py-backports-lzma/Portfile (rev 0)
+++ trunk/dports/python/py-backports-lzma/Portfile 2014-01-14 21:49:11 UTC (rev 115940)
@@ -0,0 +1,54 @@
+# -*- 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 python 1.0
+
+name py-backports-lzma
+version 0.0.2
+revision 0
+categories-append devel
+platforms darwin
+license BSD
+supported_archs noarch
+
+python.versions 27
+
+maintainers stromnov openmaintainer
+
+description Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files.
+long_description ${description}
+
+homepage https://github.com/peterjc/backports.lzma
+master_sites https://pypi.python.org/packages/source/b/backports.lzma/
+
+distname backports.lzma-${version}
+
+checksums rmd160 2634df890548dc7213cd686d3f835154f557f96c \
+ sha256 a0966deeb2533e96ea84dc0fb7948aa23421c7f061197133b62665a52dfa64e6
+
+if {${name} ne ${subport}} {
+ depends_lib-append port:py${python.version}-backports \
+ port:xz
+
+ patchfiles-append patch-setup.py.diff
+
+ post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+ }
+
+ post-destroot {
+ foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
+ set fp "${destroot}${python.pkgd}/backports/$f"
+ if {[file exists ${fp}]} {
+ file delete -force ${fp}
+ }
+ }
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${master_sites}
+ livecheck.regex {backports\.lzma-(\d+(?:\.\d+)*)\.[tz]}
+}
Property changes on: trunk/dports/python/py-backports-lzma/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-backports-lzma/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-backports-lzma/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-backports-lzma/files/patch-setup.py.diff 2014-01-14 21:49:11 UTC (rev 115940)
@@ -0,0 +1,13 @@
+--- setup.py.orig 2014-01-15 01:42:58.000000000 +0400
++++ setup.py 2014-01-15 01:43:56.000000000 +0400
+@@ -32,8 +32,8 @@
+ extens = [Extension('backports/lzma/_lzma',
+ ['backports/lzma/_lzmamodule.c'],
+ libraries = ['lzma'],
+- include_dirs = [os.path.join(home, 'include'), '/opt/local/include', '/usr/local/include'],
+- library_dirs = [os.path.join(home, 'lib'), '/opt/local/lib', '/usr/local/lib']
++ include_dirs = ['@@PREFIX@@/include'],
++ library_dirs = ['@@PREFIX@@/lib']
+ )]
+
+ descr = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140114/180ec5c1/attachment.html>
More information about the macports-changes
mailing list