[127624] trunk/dports/python

stromnov at macports.org stromnov at macports.org
Thu Oct 30 15:40:23 PDT 2014


Revision: 127624
          https://trac.macports.org/changeset/127624
Author:   stromnov at macports.org
Date:     2014-10-30 15:40:23 -0700 (Thu, 30 Oct 2014)
Log Message:
-----------
py-wand: new port

Added Paths:
-----------
    trunk/dports/python/py-wand/
    trunk/dports/python/py-wand/Portfile
    trunk/dports/python/py-wand/files/
    trunk/dports/python/py-wand/files/patch-wand_api.py.diff

Added: trunk/dports/python/py-wand/Portfile
===================================================================
--- trunk/dports/python/py-wand/Portfile	                        (rev 0)
+++ trunk/dports/python/py-wand/Portfile	2014-10-30 22:40:23 UTC (rev 127624)
@@ -0,0 +1,46 @@
+# -*- 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-wand
+version             0.3.8
+revision            0
+categories-append   graphics
+platforms           darwin
+license             MIT
+supported_archs     noarch
+
+python.versions     27 34
+
+maintainers         stromnov openmaintainer
+
+description         Ctypes-based simple MagickWand API binding for Python
+long_description    ${description}
+
+homepage            http://wand-py.org/
+master_sites        https://pypi.python.org/packages/source/W/Wand/
+
+distname            Wand-${version}
+
+checksums           rmd160  037de58eef8d0ad17bb452213dad5569a878ef5e \
+                    sha256  5bc4fe0a2b0aa93af16430e979ce6f977ac8d0c82eb8e00d4d9a537f4ef06a9a
+
+if {${name} ne ${subport}} {
+    depends_build-append \
+                        port:py${python.version}-setuptools
+    depends_lib-append  port:ImageMagick
+
+    patchfiles-append   patch-wand_api.py.diff
+
+    post-patch {
+        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/wand/api.py
+    }
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+    livecheck.regex     {Wand-(\d+(?:\.\d+)*)\.[tz]}
+}


Property changes on: trunk/dports/python/py-wand/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-wand/files/patch-wand_api.py.diff
===================================================================
--- trunk/dports/python/py-wand/files/patch-wand_api.py.diff	                        (rev 0)
+++ trunk/dports/python/py-wand/files/patch-wand_api.py.diff	2014-10-30 22:40:23 UTC (rev 127624)
@@ -0,0 +1,11 @@
+--- wand/api.py.orig	2014-10-31 01:34:29.000000000 +0300
++++ wand/api.py	2014-10-31 01:35:15.000000000 +0300
+@@ -52,7 +52,7 @@
+     """
+     libwand = None
+     system = platform.system()
+-    magick_home = os.environ.get('MAGICK_HOME')
++    magick_home = os.environ.get('MAGICK_HOME') or '@PREFIX@'
+     if magick_home:
+         if system == 'Windows':
+             libwand = 'CORE_RL_wand_{0}.dll'.format(suffix),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141030/faf1681f/attachment.html>


More information about the macports-changes mailing list