1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Update to 0.6.17

PR:		ports/82537
Submitted by:	Ports Fury
This commit is contained in:
Sam Lawrance 2005-06-22 17:02:04 +00:00
parent 32f21d42a5
commit c4ff30c35b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137872
8 changed files with 29 additions and 70 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= skencil
PORTVERSION= 0.6.16
PORTREVISION= 1
PORTVERSION= 0.6.17
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sketch
@ -24,12 +23,6 @@ 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
@ -41,26 +34,32 @@ do-configure:
${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} setup.py configure ${CONFFLAGS})
do-install:
@${MKDIR} ${DATADIR}
.for dir in Filter Pax Plugins Resources Script Sketch
(cd ${WRKSRC}; ${TAR} -cf - -X ${FILESDIR}/excludelist ${dir}) | \
(cd ${DATADIR}; ${TAR} xf -)
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${DOCSDIR}; ${TAR} xf -)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${EXAMPLESDIR}; ${TAR} xf -)
.endif
(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
post-build:
.for exec in sk2ppm sk2ps skconvert skencil skshow
${SED} -e "s|@DATADIR@|${DATADIR}|g ; \
s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
< ${FILESDIR}/${exec}.in > ${PREFIX}/bin/${exec}
${CHMOD} ${BINMODE} ${PREFIX}/bin/${exec}
${CHOWN} ${BINOWN}:${BINGROUP} ${PREFIX}/bin/${exec}
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${exec}.in
@${ECHO_CMD} '' >> ${WRKDIR}/${exec}.in
@${ECHO_CMD} 'exec ${PYTHON_CMD} ${DATADIR}/${exec}.py $$@' >> ${WRKDIR}/${exec}.in
.endfor
.include <bsd.port.post.mk>
do-install:
.for exec in sk2ppm sk2ps skconvert skencil skshow
${INSTALL_SCRIPT} ${WRKDIR}/${exec}.in ${PREFIX}/bin/${exec}
.endfor
@${MKDIR} ${DATADIR}
.for dir in Filter Pax Plugins Resources Script Sketch
${TAR} -C ${WRKSRC} -cf - -X ${FILESDIR}/excludelist ${dir} | \
${TAR} -C ${DATADIR} -xf -
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
(cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC} -cf - ${SKETCHDOCS} | ${TAR} -C ${DOCSDIR} -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/Examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (skencil-0.6.16.tar.gz) = 22db4f78151629df428c387e035fdad2
SIZE (skencil-0.6.16.tar.gz) = 1136249
MD5 (skencil-0.6.17.tar.gz) = 03f0a57cf623bcd657a4b8887d3ebe0b
SIZE (skencil-0.6.17.tar.gz) = 1148628

View File

@ -1,25 +0,0 @@
--- 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,

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec @PYTHON_CMD@ @DATADIR@/sk2ppm.py $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec @PYTHON_CMD@ @DATADIR@/sk2ps.py $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec @PYTHON_CMD@ @DATADIR@/skconvert.py $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec @PYTHON_CMD@ @DATADIR@/skencil.py $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec @PYTHON_CMD@ @DATADIR@/skshow.py $@