View | Details | Raw Unified | Return to bug 82537
Collapse All | Expand All

(-)graphics/skencil/Makefile (-21 / +20 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	skencil
8
PORTNAME=	skencil
9
PORTVERSION=	0.6.16
9
PORTVERSION=	0.6.17
10
PORTREVISION=	1
11
CATEGORIES=	graphics
10
CATEGORIES=	graphics
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	sketch
12
MASTER_SITE_SUBDIR=	sketch
Lines 24-35 Link Here
24
USE_PYTHON=	yes
23
USE_PYTHON=	yes
25
USE_PYDISTUTILS=	yes
24
USE_PYDISTUTILS=	yes
26
25
27
.include <bsd.port.pre.mk>
28
29
.if ${PYTHON_VERSION} == "python2.4"
30
EXTRA_PATCHES=	${FILESDIR}/py24-patch-Pax_paxtkinter.c
31
.endif
32
33
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"
26
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"
34
27
35
SKETCHDOCS=	BUGS Doc NEWS PROJECTS README TODO
28
SKETCHDOCS=	BUGS Doc NEWS PROJECTS README TODO
Lines 41-66 Link Here
41
		${SETENV} ${CONFIGURE_ENV} \
34
		${SETENV} ${CONFIGURE_ENV} \
42
		${PYTHON_CMD} setup.py configure ${CONFFLAGS})
35
		${PYTHON_CMD} setup.py configure ${CONFFLAGS})
43
36
37
post-build:
38
.for exec in sk2ppm sk2ps skconvert skencil skshow
39
	@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${exec}.in
40
	@${ECHO_CMD} '' >> ${WRKDIR}/${exec}.in
41
	@${ECHO_CMD} 'exec ${PYTHON_CMD} ${DATADIR}/${exec}.py $$@' >> ${WRKDIR}/${exec}.in
42
.endfor
43
44
do-install:
44
do-install:
45
.for exec in sk2ppm sk2ps skconvert skencil skshow
46
	${INSTALL_SCRIPT} ${WRKDIR}/${exec}.in ${PREFIX}/bin/${exec}
47
.endfor
45
	@${MKDIR} ${DATADIR}
48
	@${MKDIR} ${DATADIR}
46
.for dir in Filter Pax Plugins Resources Script Sketch
49
.for dir in Filter Pax Plugins Resources Script Sketch
47
	(cd ${WRKSRC}; ${TAR} -cf - -X ${FILESDIR}/excludelist ${dir}) | \
50
	${TAR} -C ${WRKSRC} -cf - -X ${FILESDIR}/excludelist ${dir} | \
48
	    (cd ${DATADIR}; ${TAR} xf -)
51
		${TAR} -C ${DATADIR} -xf -
49
.endfor
52
.endfor
50
	(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
53
	(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
54
	(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
55
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
51
.if !defined(NOPORTDOCS)
56
.if !defined(NOPORTDOCS)
52
	@${MKDIR} ${DOCSDIR}
57
	@${MKDIR} ${DOCSDIR}
53
	(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${DOCSDIR}; ${TAR} xf -)
58
	${TAR} -C ${WRKSRC} -cf - ${SKETCHDOCS} | ${TAR} -C ${DOCSDIR} -xf -
59
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
54
	@${MKDIR} ${EXAMPLESDIR}
60
	@${MKDIR} ${EXAMPLESDIR}
55
	(cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${EXAMPLESDIR}; ${TAR} xf -)
61
	${TAR} -C ${WRKSRC}/Examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
62
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
56
.endif
63
.endif
57
	(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
58
.for exec in sk2ppm sk2ps skconvert skencil skshow
59
	${SED} -e "s|@DATADIR@|${DATADIR}|g ; \
60
		 s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
61
		< ${FILESDIR}/${exec}.in > ${PREFIX}/bin/${exec}
62
	${CHMOD} ${BINMODE} ${PREFIX}/bin/${exec}
63
	${CHOWN} ${BINOWN}:${BINGROUP} ${PREFIX}/bin/${exec}
64
.endfor
65
64
66
.include <bsd.port.post.mk>
65
.include <bsd.port.mk>
(-)graphics/skencil/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (skencil-0.6.16.tar.gz) = 22db4f78151629df428c387e035fdad2
1
MD5 (skencil-0.6.17.tar.gz) = 03f0a57cf623bcd657a4b8887d3ebe0b
2
SIZE (skencil-0.6.16.tar.gz) = 1136249
2
SIZE (skencil-0.6.17.tar.gz) = 1148628
(-)graphics/skencil/files/py24-patch-Pax_paxtkinter.c (-25 lines)
Lines 1-25 Link Here
1
--- Pax/paxtkinter.c.orig	Sun May  4 04:55:36 2003
2
+++ Pax/paxtkinter.c	Mon Apr 18 12:40:08 2005
3
@@ -1866,6 +1866,9 @@
4
 	char *className = NULL;
5
 	int interactive = 0;
6
 
7
+	int ignored_int = 0;
8
+	char *ignored_charp = NULL;
9
+
10
 	baseName = strrchr(Py_GetProgramName(), '/');
11
 	if (baseName != NULL)
12
 		baseName++;
13
@@ -1873,9 +1876,10 @@
14
 		baseName = Py_GetProgramName();
15
 	className = "Tk";
16
   
17
-	if (!PyArg_ParseTuple(args, "|zssi",
18
+	if (!PyArg_ParseTuple(args, "|zssiiiiz:create",
19
 			      &screenName, &baseName, &className,
20
-			      &interactive))
21
+			      &interactive, &ignored_int, &ignored_int,
22
+			      &ignored_int, &ignored_charp))
23
 		return NULL;
24
 
25
 	return (PyObject *) Tkapp_New(screenName, baseName, className, 
(-)graphics/skencil/files/sk2ppm.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
exec @PYTHON_CMD@ @DATADIR@/sk2ppm.py $@
(-)graphics/skencil/files/sk2ps.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
exec @PYTHON_CMD@ @DATADIR@/sk2ps.py $@
(-)graphics/skencil/files/skconvert.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
exec @PYTHON_CMD@ @DATADIR@/skconvert.py $@
(-)graphics/skencil/files/skencil.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
exec @PYTHON_CMD@ @DATADIR@/skencil.py $@
(-)graphics/skencil/files/skshow.in (-3 lines)
Lines 1-3 Link Here
1
#!/bin/sh
2
3
exec @PYTHON_CMD@ @DATADIR@/skshow.py $@

Return to bug 82537