diff options
author | lawrance <lawrance@FreeBSD.org> | 2005-04-18 16:18:24 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2005-04-18 16:18:24 +0800 |
commit | 84c10a79537fe4b4936a527cd3448f425cee20df (patch) | |
tree | f0ea5168081f2473f515f0b9a19f84acdbbda7e0 /graphics/skencil | |
parent | 93451b16ca5dbf60ee4970b3ab1bb71da825c60e (diff) | |
download | freebsd-ports-gnome-84c10a79537fe4b4936a527cd3448f425cee20df.tar.gz freebsd-ports-gnome-84c10a79537fe4b4936a527cd3448f425cee20df.tar.zst freebsd-ports-gnome-84c10a79537fe4b4936a527cd3448f425cee20df.zip |
Add patch to make skencil work with python 2.4.
PR: ports/79280
Submitted by: Marian Cerny <jojo@matfyz.cz>
Approved by: clement (mentor)
Diffstat (limited to 'graphics/skencil')
-rw-r--r-- | graphics/skencil/Makefile | 9 | ||||
-rw-r--r-- | graphics/skencil/files/py24-patch-Pax_paxtkinter.c | 25 |
2 files changed, 33 insertions, 1 deletions
diff --git a/graphics/skencil/Makefile b/graphics/skencil/Makefile index 5e7336f645d8..09febcdf4a12 100644 --- a/graphics/skencil/Makefile +++ b/graphics/skencil/Makefile @@ -7,6 +7,7 @@ PORTNAME= skencil PORTVERSION= 0.6.16 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sketch @@ -23,6 +24,12 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinte USE_PYTHON= yes USE_PYDISTUTILS= yes +.include <bsd.port.pre.mk> + +.if ${PYTHON_VERSION} == "python2.4" +EXTRA_PATCHES= ${FILESDIR}/py24-patch-Pax_paxtkinter.c +.endif + CONFFLAGS= --tk-autoconf --tk-flags="-I${X11BASE}/include -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 -L${LOCALBASE}/lib -ltk84 -ltcl84 -L${X11BASE}/lib -lX11" SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO @@ -56,4 +63,4 @@ do-install: ${CHOWN} ${BINOWN}:${BINGROUP} ${PREFIX}/bin/${exec} .endfor -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/skencil/files/py24-patch-Pax_paxtkinter.c b/graphics/skencil/files/py24-patch-Pax_paxtkinter.c new file mode 100644 index 000000000000..cd1ea8d6ab85 --- /dev/null +++ b/graphics/skencil/files/py24-patch-Pax_paxtkinter.c @@ -0,0 +1,25 @@ +--- Pax/paxtkinter.c.orig Sun May 4 04:55:36 2003 ++++ Pax/paxtkinter.c Mon Apr 18 12:40:08 2005 +@@ -1866,6 +1866,9 @@ + char *className = NULL; + int interactive = 0; + ++ int ignored_int = 0; ++ char *ignored_charp = NULL; ++ + baseName = strrchr(Py_GetProgramName(), '/'); + if (baseName != NULL) + baseName++; +@@ -1873,9 +1876,10 @@ + baseName = Py_GetProgramName(); + className = "Tk"; + +- if (!PyArg_ParseTuple(args, "|zssi", ++ if (!PyArg_ParseTuple(args, "|zssiiiiz:create", + &screenName, &baseName, &className, +- &interactive)) ++ &interactive, &ignored_int, &ignored_int, ++ &ignored_int, &ignored_charp)) + return NULL; + + return (PyObject *) Tkapp_New(screenName, baseName, className, |