summaryrefslogtreecommitdiffstats
path: root/graphics/py-amanith
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2006-09-26 15:54:41 +0000
committeracm <acm@FreeBSD.org>2006-09-26 15:54:41 +0000
commitcb1ff32a82d5d0bd89c3d314b07d8445e71f93bc (patch)
treef6e378eab50328ea9948ae1c3964215ea8fdb019 /graphics/py-amanith
parente1b679f3561b5f84c1e90dd35603c41025dbd9c2 (diff)
downloadFreeBSD-ports-cb1ff32a82d5d0bd89c3d314b07d8445e71f93bc.zip
FreeBSD-ports-cb1ff32a82d5d0bd89c3d314b07d8445e71f93bc.tar.gz
- New port: graphics/py-amanith
PyAmanith is a Python wrapper for the Amanith 2D vector graphics library. It strives to offer a pythonic interface to the library and make all its features accessible. WWW: http://louhi.kempele.fi/~skyostil/projects/pyamanith/ PR: ports/103655 Submitted by: Dmitry Marakasov <amdmi3__at__mail.ru>
Diffstat (limited to 'graphics/py-amanith')
-rw-r--r--graphics/py-amanith/Makefile29
-rw-r--r--graphics/py-amanith/distinfo3
-rw-r--r--graphics/py-amanith/files/patch-ignore.i10
-rw-r--r--graphics/py-amanith/files/patch-setup.py40
-rw-r--r--graphics/py-amanith/pkg-descr5
-rw-r--r--graphics/py-amanith/pkg-plist4
6 files changed, 91 insertions, 0 deletions
diff --git a/graphics/py-amanith/Makefile b/graphics/py-amanith/Makefile
new file mode 100644
index 0000000..484655f
--- /dev/null
+++ b/graphics/py-amanith/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: py-amanith
+# Date created: 2006-09-01
+# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= amanith
+PORTVERSION= 0.3.34
+CATEGORIES= graphics python
+MASTER_SITES= http://louhi.kempele.fi/~skyostil/projects/pyamanith/dist/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= PyAmanith-${PORTVERSION}
+DIST_SUBDIR= python
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Python wrapper for the amanith 2D vector graphics library
+
+LIB_DEPENDS= GLEW.1:${PORTSDIR}/graphics/glew \
+ amanith.1:${PORTSDIR}/graphics/amanith
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
+
+USE_PYTHON= 2.4+
+USE_PYDISTUTILS=yes
+
+post-patch:
+ ${REINPLACE_CMD} -i "" -e 's|^swig-cpp.*|swig-opts = -c++|g' ${WRKSRC}/setup.cfg
+
+.include <bsd.port.mk>
diff --git a/graphics/py-amanith/distinfo b/graphics/py-amanith/distinfo
new file mode 100644
index 0000000..0c828b0
--- /dev/null
+++ b/graphics/py-amanith/distinfo
@@ -0,0 +1,3 @@
+MD5 (python/PyAmanith-0.3.34.tar.gz) = e6d44980ba8d1260f4e8dc73b93c63d4
+SHA256 (python/PyAmanith-0.3.34.tar.gz) = d4923309473ae037316e5294a612823ee5812e62e77979ffc70e14ff8f57afb2
+SIZE (python/PyAmanith-0.3.34.tar.gz) = 53214
diff --git a/graphics/py-amanith/files/patch-ignore.i b/graphics/py-amanith/files/patch-ignore.i
new file mode 100644
index 0000000..8116f83
--- /dev/null
+++ b/graphics/py-amanith/files/patch-ignore.i
@@ -0,0 +1,10 @@
+--- ignore.i Fri May 5 01:23:47 2006
++++ ignore.i Tue Sep 26 03:54:57 2006
+@@ -15,6 +15,7 @@
+ %ignore Amanith::GEllipseCurve2D::YAxis;
+ %ignore Amanith::GFont2D::CharMap;
+ %ignore Amanith::GRenderingContext::GRenderingContext;
++%ignore Amanith::GDrawBoard::DrawEllipseArc;
+
+ /* Don't mind these unsupported things */
+ %warnfilter(362) Amanith::GInterval::operator=;
diff --git a/graphics/py-amanith/files/patch-setup.py b/graphics/py-amanith/files/patch-setup.py
new file mode 100644
index 0000000..2aaca0e
--- /dev/null
+++ b/graphics/py-amanith/files/patch-setup.py
@@ -0,0 +1,40 @@
+--- setup.py Thu Apr 6 16:23:35 2006
++++ setup.py Sat Sep 2 17:34:01 2006
+@@ -6,15 +6,19 @@
+ import os
+ from os.path import join
+
++LOCALBASE = os.environ['LOCALBASE']
++X11BASE = os.environ['X11BASE']
++
+ try:
+ amanith_base = os.environ["AMANITHDIR"]
+ except:
+- amanith_base = "amanith"
++ amanith_base = os.environ['LOCALBASE']
++ X11BASE = os.environ['X11BASE']
+
+ debug = False
+ libs = ["amanith"]
+-inc = [join("changes", "include"), join(amanith_base, "include"), "include"]
+-lib = [join(amanith_base, "lib")]
++inc = [join("changes", "include"), join(amanith_base, "include"), join(X11BASE,"include") ,"include"]
++lib = [join(amanith_base, "lib"), join(X11BASE, "lib")]
+ cc_args = []
+ swig_args = ["-Ibuild/amanith"]
+
+@@ -41,10 +45,10 @@
+ def run(self):
+ # Ultimately this should use patch(1) or something, but for now
+ # we just copy the stuff over.
+- if not os.path.isdir(join("build", "amanith")):
+- os.makedirs(join("build", "amanith"))
+- shutil.copytree(join(amanith_base, "include"), join("build", "amanith", "include"))
+- self.copy("changes", join("build", "amanith"))
++ if not os.path.isdir(join("build", "amanith","include")):
++ os.makedirs(join("build", "amanith","include"))
++ shutil.copytree(join(amanith_base, "include","amanith"), join("build", "amanith", "include","amanith"))
++ self.copy(join("changes","include"), join("build", "amanith","include"))
+ _build_ext.run(self)
+
+ ext_amanith = Extension('_amanith', ['amanith.i'],
diff --git a/graphics/py-amanith/pkg-descr b/graphics/py-amanith/pkg-descr
new file mode 100644
index 0000000..1d42e85
--- /dev/null
+++ b/graphics/py-amanith/pkg-descr
@@ -0,0 +1,5 @@
+PyAmanith is a Python wrapper for the Amanith 2D vector graphics
+library. It strives to offer a pythonic interface to the library
+and make all its features accessible.
+
+WWW: http://louhi.kempele.fi/~skyostil/projects/pyamanith/
diff --git a/graphics/py-amanith/pkg-plist b/graphics/py-amanith/pkg-plist
new file mode 100644
index 0000000..6026143
--- /dev/null
+++ b/graphics/py-amanith/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/amanith.py
+%%PYTHON_SITELIBDIR%%/_amanith.so
+%%PYTHON_SITELIBDIR%%/amanith.pyc
+%%PYTHON_SITELIBDIR%%/amanith.pyo
OpenPOWER on IntegriCloud