aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-rabbyt
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-04-08 23:14:43 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-04-08 23:14:43 +0000
commit2e844ae137d78f7752d88096bbf83582f53047ac (patch)
tree1c11997a3c4a322c4d247620fd563c4de6c8fcbd /graphics/py-rabbyt
parent2326d93d2107a45b52f3387a1bd5bdf93bc35cd1 (diff)
downloadports-2e844ae137d78f7752d88096bbf83582f53047ac.tar.gz
ports-2e844ae137d78f7752d88096bbf83582f53047ac.zip
Notes
Diffstat (limited to 'graphics/py-rabbyt')
-rw-r--r--graphics/py-rabbyt/Makefile27
-rw-r--r--graphics/py-rabbyt/distinfo3
-rw-r--r--graphics/py-rabbyt/files/patch-setup.py32
-rw-r--r--graphics/py-rabbyt/pkg-descr7
4 files changed, 69 insertions, 0 deletions
diff --git a/graphics/py-rabbyt/Makefile b/graphics/py-rabbyt/Makefile
new file mode 100644
index 000000000000..6831c25f4c5f
--- /dev/null
+++ b/graphics/py-rabbyt/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: py-rabbyt
+# Date created: 12 Oct 2007
+# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rabbyt
+PORTVERSION= 0.8.2
+CATEGORIES= graphics python
+MASTER_SITES= http://pypi.python.org/packages/source/R/Rabbyt/ \
+ http://mirror.amdmi3.ru/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= Rabbyt-${PORTVERSION}
+
+MAINTAINER= amdmi3@amdmi3.ru
+COMMENT= A fast sprite library for Python
+
+USE_PYTHON= 2.5+
+USE_PYDISTUTILS= easy_install
+PYDISTUTILS_PKGNAME= Rabbyt
+PYEASYINSTALL_ARCHDEP= yes
+USE_GL= gl glu
+
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+
+.include <bsd.port.mk>
diff --git a/graphics/py-rabbyt/distinfo b/graphics/py-rabbyt/distinfo
new file mode 100644
index 000000000000..f694e12df6fc
--- /dev/null
+++ b/graphics/py-rabbyt/distinfo
@@ -0,0 +1,3 @@
+MD5 (Rabbyt-0.8.2.tar.gz) = b8a90d1793ce37fdac47f54aa08a94f4
+SHA256 (Rabbyt-0.8.2.tar.gz) = 7ff4e14a751d398446fe767fe33b66ff9b6cc3e540807adaaee82f2eab52e6fc
+SIZE (Rabbyt-0.8.2.tar.gz) = 131602
diff --git a/graphics/py-rabbyt/files/patch-setup.py b/graphics/py-rabbyt/files/patch-setup.py
new file mode 100644
index 000000000000..9738d8983918
--- /dev/null
+++ b/graphics/py-rabbyt/files/patch-setup.py
@@ -0,0 +1,32 @@
+--- setup.py.orig 2008-09-03 04:07:23.000000000 +0400
++++ setup.py 2009-04-03 05:57:49.000000000 +0400
+@@ -9,18 +9,6 @@
+
+ # If we are going to use pyrex, we need to use at least 0.9.6.3.
+ have_sufficient_pyrex = False
+-try:
+- import Pyrex.Compiler.Version
+- if Pyrex.Compiler.Version.version.split('.') >= ['0','9','6','3']:
+- have_sufficient_pyrex = True
+- else:
+- print "*"*80
+- print "Pyrex is older that 0.9.6.3. C files will not be updated."
+- print "*"*80
+-except ImportError:
+- print "*"*80
+- print "Could not import Pyrex. C files will not be updated."
+- print "*"*80
+
+ # <hack type="ugly">
+ if have_sufficient_pyrex:
+@@ -43,8 +31,8 @@
+
+ transform = {}
+ exclude = []
+- compile_args = ["-O3"]
+- link_args = []
++ compile_args = ["-I"+os.environ['LOCALBASE']+"/include"]
++ link_args = ["-L"+os.environ['LOCALBASE']+"/lib"]
+ if sys.platform == "win32":
+ transform = {'GL':'opengl32', 'GLU':'glu32'}
+ exclude = ['m']
diff --git a/graphics/py-rabbyt/pkg-descr b/graphics/py-rabbyt/pkg-descr
new file mode 100644
index 000000000000..36e948621ff1
--- /dev/null
+++ b/graphics/py-rabbyt/pkg-descr
@@ -0,0 +1,7 @@
+Rabbyt is a sprite library for Python with game development in mind.
+It has two goals:
+
+ 1. Be fast, without sacrificing ease of use.
+ 2. Be easy to use, without sacrificing speed
+
+WWW: http://matthewmarshall.org/projects/rabbyt/