summaryrefslogtreecommitdiff
path: root/graphics/py-amanith/files/patch-setup.py
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-09-26 15:54:41 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-09-26 15:54:41 +0000
commita7e8c702ee21dceea3457f919bf09c03f1d5b3cd (patch)
treef22dd4baba34bf38a02e9cb3a71e98cb0b1c278a /graphics/py-amanith/files/patch-setup.py
parent- use fixed PKGNAMEPREFIX instead of dynamic one based on PHP_VER (diff)
- 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>
Notes
Notes: svn path=/head/; revision=173913
Diffstat (limited to '')
-rw-r--r--graphics/py-amanith/files/patch-setup.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/py-amanith/files/patch-setup.py b/graphics/py-amanith/files/patch-setup.py
new file mode 100644
index 000000000000..2aaca0ef825e
--- /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'],