diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-07 23:53:59 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-07 23:53:59 +0800 |
commit | b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f (patch) | |
tree | d6bc2f4fed27aea9bce753ba99c091e18b1744b5 /x11-toolkits | |
parent | 7cdb30fa7779d93a73f29a6c1659cd476950a864 (diff) | |
download | marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar.gz marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar.bz2 marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar.lz marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar.xz marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.tar.zst marcuscom-ports-b32cbaeedb0ec2326bd66a7fe41c1fce17c8004f.zip |
- Fix build
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7611 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/py-gtkscintilla/Makefile | 37 | ||||
-rw-r--r-- | x11-toolkits/py-gtkscintilla/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/py-gtkscintilla/files/patch-aa | 25 | ||||
-rw-r--r-- | x11-toolkits/py-gtkscintilla/pkg-descr | 3 | ||||
-rw-r--r-- | x11-toolkits/py-gtkscintilla/pkg-plist | 5 |
5 files changed, 73 insertions, 0 deletions
diff --git a/x11-toolkits/py-gtkscintilla/Makefile b/x11-toolkits/py-gtkscintilla/Makefile new file mode 100644 index 000000000..69c30f535 --- /dev/null +++ b/x11-toolkits/py-gtkscintilla/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-gtkscintilla +# Date created: 14 December 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ + +PORTNAME= py-gtkscintilla +PORTVERSION= 0.8.2 +PORTREVISION= 4 +CATEGORIES= x11-toolkits python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= moleskine +DISTNAME= PyGtkScintilla-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org +COMMENT= A Python bindings for gtkscintilla library + +LIB_DEPENDS= gtkscintilla.0:${PORTSDIR}/x11-toolkits/gtkscintilla + +USE_PYTHON= yes +USE_GNOME= gtk12 +MAKE_ENV= PYTHON_INCLUDE="${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 000000000..2847bc5da --- /dev/null +++ b/x11-toolkits/py-gtkscintilla/distinfo @@ -0,0 +1,3 @@ +MD5 (PyGtkScintilla-0.8.2.tar.gz) = 3b6d1e7818b1ed3f59e2dbde17d87c33 +SHA256 (PyGtkScintilla-0.8.2.tar.gz) = e582c8951ea23b68104bc316422ff18f65d04778b81010f2c2426f5d554d9568 +SIZE (PyGtkScintilla-0.8.2.tar.gz) = 79158 diff --git a/x11-toolkits/py-gtkscintilla/files/patch-aa b/x11-toolkits/py-gtkscintilla/files/patch-aa new file mode 100644 index 000000000..d0a8b14ed --- /dev/null +++ b/x11-toolkits/py-gtkscintilla/files/patch-aa @@ -0,0 +1,25 @@ +--- Makefile.orig Thu Feb 7 08:34:54 2002 ++++ Makefile Mon Mar 15 04:10:30 2004 +@@ -1,14 +1,16 @@ + NAME = PyGtkScintilla + VERSION = 0.8.2 + +-CC = gcc ++CC ?= gcc + +-PYTHON_PREFIX = $(shell python -c "import sys ; print '%s/lib/python%s' % (sys.exec_prefix,sys.version[:3])") +-PYTHON_SITE = $(PYTHON_PREFIX)/site-packages +-PYTHON_INCLUDE = $(shell python -c "import sys ; print '%s/include/python%s' % (sys.exec_prefix,sys.version[:3])") ++#PYTHON_PREFIX = $(shell python -c "import sys ; print '%s/lib/python%s' % (sys.exec_prefix,sys.version[:3])") ++#PYTHON_SITE = $(PYTHON_PREFIX)/site-packages ++#PYTHON_INCLUDE = $(shell python -c "import sys ; print '%s/include/python%s' % (sys.exec_prefix,sys.version[:3])") + +-LDFLAGS = -shared `gtk-config --libs` -lgtkscintilla +-CFLAGS = `gtk-config --cflags` -I$(PYTHON_INCLUDE) ++GTK_LDFLAGS != $(GTK_CONFIG) --libs ++GTK_CFLAGS != $(GTK_CONFIG) --cflags ++LDFLAGS = -pthread -shared $(GTK_LDFLAGS) -lgtkscintilla ++CFLAGS += -D_THREAD_SAFE -fPIC $(GTK_CFLAGS) -I$(PYTHON_INCLUDE) -I${LOCALBASE}/include/scintilla + + all: _gtkscintillamodule.so + diff --git a/x11-toolkits/py-gtkscintilla/pkg-descr b/x11-toolkits/py-gtkscintilla/pkg-descr new file mode 100644 index 000000000..132119a82 --- /dev/null +++ b/x11-toolkits/py-gtkscintilla/pkg-descr @@ -0,0 +1,3 @@ +Python bindings for gtkscintilla library. + +WWW: http://www.micampe.it/software/moleskine/ diff --git a/x11-toolkits/py-gtkscintilla/pkg-plist b/x11-toolkits/py-gtkscintilla/pkg-plist new file mode 100644 index 000000000..0eb824632 --- /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 |