summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-09-30 18:01:33 +0000
committergarga <garga@FreeBSD.org>2005-09-30 18:01:33 +0000
commit0b8b179148476bd78cde84ce80d9b9ba3c103cf5 (patch)
tree1a15529cdbe014bf841c40e3a4395516988d08a4
parente2c93018109718cdb5769ebb0beff1ce9eb257b5 (diff)
downloadFreeBSD-ports-0b8b179148476bd78cde84ce80d9b9ba3c103cf5.zip
FreeBSD-ports-0b8b179148476bd78cde84ce80d9b9ba3c103cf5.tar.gz
Add py-gdchart2 , python interface to GDChart2.
PR: ports/82821 Submitted by: Choe, Cheng-Dae <whitekid@gmail.com>
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-gdchart2/Makefile29
-rw-r--r--graphics/py-gdchart2/distinfo2
-rw-r--r--graphics/py-gdchart2/files/patch-setup.py15
-rw-r--r--graphics/py-gdchart2/pkg-descr5
-rw-r--r--graphics/py-gdchart2/pkg-plist5
6 files changed, 57 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 139e8e4..5dd400d 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -463,6 +463,7 @@
SUBDIR += py-freeimagepy
SUBDIR += py-gd
SUBDIR += py-gdchart
+ SUBDIR += py-gdchart2
SUBDIR += py-graphviz
SUBDIR += py-imaging
SUBDIR += py-imaging-handbook
diff --git a/graphics/py-gdchart2/Makefile b/graphics/py-gdchart2/Makefile
new file mode 100644
index 0000000..2f6c27b
--- /dev/null
+++ b/graphics/py-gdchart2/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: py-gdchart2
+# Date created: 2005-06-30
+# Whom: Choe, Cheng-Dae <whitekid@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gdchart
+DISTVERSION= 2.0-beta1
+CATEGORIES= graphics python
+MASTER_SITES= http://www.nullcube.com/software/pygdchart2/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pygdchart2
+
+MAINTAINER= whitekid@gmail.com
+COMMENT= Python interface to GDChart2
+
+LIB_DEPENDS= gdc.1:${PORTSDIR}/graphics/gdchart
+
+CONFLICTS= ${PYTHON_PKGNAMEPREFIX}gdchart-0.*
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/graphics/py-gdchart2/distinfo b/graphics/py-gdchart2/distinfo
new file mode 100644
index 0000000..5a65ad4
--- /dev/null
+++ b/graphics/py-gdchart2/distinfo
@@ -0,0 +1,2 @@
+MD5 (pygdchart2.tar.gz) = 9beabe40589d5e567ee090602e4e8336
+SIZE (pygdchart2.tar.gz) = 1947995
diff --git a/graphics/py-gdchart2/files/patch-setup.py b/graphics/py-gdchart2/files/patch-setup.py
new file mode 100644
index 0000000..673ac1c
--- /dev/null
+++ b/graphics/py-gdchart2/files/patch-setup.py
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- setup.py.orig
++++ setup.py
+@@ -1,7 +1,7 @@
+ from distutils.core import setup, Extension
+
+-GDCHART_PATH = "../gdchart0.11.4dev"
+-GD_PATH = "../gd-1.8.4"
++GDCHART_PATH = "%%LOCALBASE%%/include"
++GD_PATH = "%%LOCALBASE%%/lib"
+ setup(
+ name="pygdchart",
+ version="2.0 Beta",
diff --git a/graphics/py-gdchart2/pkg-descr b/graphics/py-gdchart2/pkg-descr
new file mode 100644
index 0000000..7f52e30
--- /dev/null
+++ b/graphics/py-gdchart2/pkg-descr
@@ -0,0 +1,5 @@
+This is a simple python interface to gdchart which is
+excellent for creating charts and graphs in PNG, JPEG,
+and GIF format.
+
+WWW: http://www.nullcube.com/software/pygdchart2.html
diff --git a/graphics/py-gdchart2/pkg-plist b/graphics/py-gdchart2/pkg-plist
new file mode 100644
index 0000000..9e74417
--- /dev/null
+++ b/graphics/py-gdchart2/pkg-plist
@@ -0,0 +1,5 @@
+@comment $FreeBSD$
+%%PYTHON_SITELIBDIR%%/gdchart.py
+%%PYTHON_SITELIBDIR%%/_gdchartc.so
+%%PYTHON_SITELIBDIR%%/gdchart.pyc
+%%PYTHON_SITELIBDIR%%/gdchart.pyo
OpenPOWER on IntegriCloud