diff options
author | olivierd <olivierd@FreeBSD.org> | 2012-09-10 00:31:35 +0800 |
---|---|---|
committer | olivierd <olivierd@FreeBSD.org> | 2012-09-10 00:31:35 +0800 |
commit | 51557815b68564432bc8faf249e3a8b7186c5017 (patch) | |
tree | 010efca520275b34cbfc8650caa1a9b025c0c67e /graphics | |
parent | 581cf772bf510f9bb7259159094143f411807af0 (diff) | |
download | freebsd-ports-gnome-51557815b68564432bc8faf249e3a8b7186c5017.tar.gz freebsd-ports-gnome-51557815b68564432bc8faf249e3a8b7186c5017.tar.zst freebsd-ports-gnome-51557815b68564432bc8faf249e3a8b7186c5017.zip |
Wand is a ctypes-based MagickWand API binding for Python.
Approved by: rene, miwi (mentors)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/py-wand/Makefile | 23 | ||||
-rw-r--r-- | graphics/py-wand/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-wand/files/patch-wand_api.py | 11 | ||||
-rw-r--r-- | graphics/py-wand/pkg-descr | 3 |
5 files changed, 40 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 1784bc63c777..ac7dfbe98052 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -841,6 +841,7 @@ SUBDIR += py-soya3d SUBDIR += py-stl SUBDIR += py-visual + SUBDIR += py-wand SUBDIR += py-webcolors SUBDIR += pygts SUBDIR += pymorph diff --git a/graphics/py-wand/Makefile b/graphics/py-wand/Makefile new file mode 100644 index 000000000000..b03f853b6595 --- /dev/null +++ b/graphics/py-wand/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= Wand +PORTVERSION= 0.2.1 +CATEGORIES= graphics python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= olivierd@FreeBSD.org +COMMENT= MagickWand Python binding + +LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick + +USE_PYTHON= 2.6+ +USE_PYDISTUTILS= easy_install + +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% + +post-patch: + @${REINPLACE_CMD} -e "s|cmdclass={'upload_doc': upload_doc}||" \ + ${WRKSRC}/setup.py + +.include <bsd.port.mk> diff --git a/graphics/py-wand/distinfo b/graphics/py-wand/distinfo new file mode 100644 index 000000000000..63bcc0f74cbf --- /dev/null +++ b/graphics/py-wand/distinfo @@ -0,0 +1,2 @@ +SHA256 (Wand-0.2.1.tar.gz) = 202ffe8decfda4f7f29b4ac0043755cfb7bc23ad124ab023db1295ea9ffebdf0 +SIZE (Wand-0.2.1.tar.gz) = 20566 diff --git a/graphics/py-wand/files/patch-wand_api.py b/graphics/py-wand/files/patch-wand_api.py new file mode 100644 index 000000000000..eaaa2e829321 --- /dev/null +++ b/graphics/py-wand/files/patch-wand_api.py @@ -0,0 +1,11 @@ +--- wand/api.py.orig 2012-08-15 16:39:28.000000000 +0000 ++++ wand/api.py 2012-08-19 10:50:48.000000000 +0000 +@@ -273,6 +273,8 @@ + else: + if platform.system() == 'Darwin': + libc = ctypes.cdll.LoadLibrary('libc.dylib') ++ elif platform.system() == 'FreeBSD': ++ libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c')) + else: + libc = ctypes.cdll.LoadLibrary('libc.so.6') + libc.fdopen.argtypes = [ctypes.c_int, ctypes.c_char_p] diff --git a/graphics/py-wand/pkg-descr b/graphics/py-wand/pkg-descr new file mode 100644 index 000000000000..890199be3548 --- /dev/null +++ b/graphics/py-wand/pkg-descr @@ -0,0 +1,3 @@ +Wand is a ctypes-based simple MagickWand API binding for python. + +WWW: http://dahlia.github.com/wand/ |