aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-gtkscintilla
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-12-14 20:24:39 +0800
committersobomax <sobomax@FreeBSD.org>2000-12-14 20:24:39 +0800
commitb20f355787e3aff9fa41c7d71287dd2c43c06a3f (patch)
treec98544e52edbe7371cb3d917d23aef00e2d0cf56 /x11-toolkits/py-gtkscintilla
parentf544f3f8c48d1b66d4c1e7d3f17e8b8e65c0bd2e (diff)
downloadfreebsd-ports-gnome-b20f355787e3aff9fa41c7d71287dd2c43c06a3f.tar.gz
freebsd-ports-gnome-b20f355787e3aff9fa41c7d71287dd2c43c06a3f.tar.zst
freebsd-ports-gnome-b20f355787e3aff9fa41c7d71287dd2c43c06a3f.zip
Add py-gtkscintilla - a Python bindings for GtkScintilla library.
Diffstat (limited to 'x11-toolkits/py-gtkscintilla')
-rw-r--r--x11-toolkits/py-gtkscintilla/Makefile35
-rw-r--r--x11-toolkits/py-gtkscintilla/distinfo1
-rw-r--r--x11-toolkits/py-gtkscintilla/files/patch-aa22
-rw-r--r--x11-toolkits/py-gtkscintilla/pkg-comment1
-rw-r--r--x11-toolkits/py-gtkscintilla/pkg-descr3
-rw-r--r--x11-toolkits/py-gtkscintilla/pkg-plist5
6 files changed, 67 insertions, 0 deletions
diff --git a/x11-toolkits/py-gtkscintilla/Makefile b/x11-toolkits/py-gtkscintilla/Makefile
new file mode 100644
index 000000000000..e09439825b44
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: py-gtkscintilla
+# Date created: 14 December 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= py-gtkscintilla
+PORTVERSION= 0.1
+CATEGORIES= x11-toolkits python
+MASTER_SITES= http://www.moleskine.f2s.com/
+DISTNAME= PyGtkScintilla-${PORTVERSION}
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= gtkscintilla.0:${PORTSDIR}/x11-toolkits/gtkscintilla
+
+USE_PYTHON= yes
+USE_GTK= yes
+USE_GMAKE= yes
+MAKE_ENV= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}"
+
+INST_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
+
+post-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${WRKSRC}
+
+do-install:
+ ${MKDIR} ${INST_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/_gtkscintillamodule.so ${INST_DIR}
+.for file in gtkscintilla.py GTKSCINTILLA.py
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${WRKSRC}/${file}c ${INST_DIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/py-gtkscintilla/distinfo b/x11-toolkits/py-gtkscintilla/distinfo
new file mode 100644
index 000000000000..b1ea365aec70
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/distinfo
@@ -0,0 +1 @@
+MD5 (PyGtkScintilla-0.1.tar.gz) = 28b0df62c0ee6d2b9b7da7cf608abdf3
diff --git a/x11-toolkits/py-gtkscintilla/files/patch-aa b/x11-toolkits/py-gtkscintilla/files/patch-aa
new file mode 100644
index 000000000000..6dababbd17ca
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/files/patch-aa
@@ -0,0 +1,22 @@
+--- Makefile 2000/12/14 10:44:19 1.1
++++ Makefile 2000/12/14 10:50:08
+@@ -1,13 +1,14 @@
+ NAME = PyGtkScintilla
+ VERSION = 0.1
+
+-CC = gcc
++CC ?= gcc
+
+-PYTHON_PREFIX = /usr
+-INSTALL_DIR = $(PYTHON_PREFIX)/lib/python1.5/site-packages
++PYTHON_PREFIX ?= /usr
++PITHON_INCLUDEDIR ?= $(PYTHON_PREFIX)/include/python1.5
++INSTALL_DIR ?= $(PYTHON_PREFIX)/lib/python1.5/site-packages
+
+-LDFLAGS = -shared `gtk-config --libs` -lgtkscintilla
+-CFLAGS = `gtk-config --cflags` -I$(PYTHON_PREFIX)/include/python1.5
++LDFLAGS = -pthread -shared `$(GTK_CONFIG) --libs` -lgtkscintilla -lgcc_r
++CFLAGS = -D_THREAD_SAFE `$(GTK_CONFIG) --cflags` -I$(PYTHON_INCLUDEDIR) -I${X11BASE}/include/scintilla
+
+ all: _gtkscintillamodule.so
+
diff --git a/x11-toolkits/py-gtkscintilla/pkg-comment b/x11-toolkits/py-gtkscintilla/pkg-comment
new file mode 100644
index 000000000000..ce47ebf0f5d4
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/pkg-comment
@@ -0,0 +1 @@
+A Python bindings for gtkscintilla library
diff --git a/x11-toolkits/py-gtkscintilla/pkg-descr b/x11-toolkits/py-gtkscintilla/pkg-descr
new file mode 100644
index 000000000000..96be959af251
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/pkg-descr
@@ -0,0 +1,3 @@
+Python bindings for gtkscintilla library.
+
+WWW: http://www.moleskine.f2s.com/
diff --git a/x11-toolkits/py-gtkscintilla/pkg-plist b/x11-toolkits/py-gtkscintilla/pkg-plist
new file mode 100644
index 000000000000..0eb8246328ce
--- /dev/null
+++ b/x11-toolkits/py-gtkscintilla/pkg-plist
@@ -0,0 +1,5 @@
+lib/%%PYTHON_VERSION%%/site-packages/GTKSCINTILLA.py
+lib/%%PYTHON_VERSION%%/site-packages/GTKSCINTILLA.pyc
+lib/%%PYTHON_VERSION%%/site-packages/_gtkscintillamodule.so
+lib/%%PYTHON_VERSION%%/site-packages/gtkscintilla.py
+lib/%%PYTHON_VERSION%%/site-packages/gtkscintilla.pyc