diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-22 18:16:17 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-22 18:16:17 +0000 |
commit | 512cdbfe3a04ef2e42da01ab7bd5c7227751f617 (patch) | |
tree | 10569fc3b91224b460df1226cccb7bb114228af6 /graphics/sketch | |
parent | eaf0cdda73a9d6322d9e550d8c7b14fcbabe661d (diff) | |
download | pkgsrc-512cdbfe3a04ef2e42da01ab7bd5c7227751f617.tar.gz |
use buildlink files for Python and py-imaging, but keep it tied
to Python-2.0 for now because of the py-Tk mess
Diffstat (limited to 'graphics/sketch')
-rw-r--r-- | graphics/sketch/Makefile | 14 | ||||
-rw-r--r-- | graphics/sketch/files/sk2ps.in | 2 | ||||
-rw-r--r-- | graphics/sketch/files/sketch.in | 2 |
3 files changed, 11 insertions, 7 deletions
diff --git a/graphics/sketch/Makefile b/graphics/sketch/Makefile index 1542bdf4baf..13c877bb4e1 100644 --- a/graphics/sketch/Makefile +++ b/graphics/sketch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2001/11/25 21:56:59 hubertf Exp $ +# $NetBSD: Makefile,v 1.19 2002/01/22 18:16:17 drochner Exp $ # DISTNAME= sketch-0.6.12 @@ -9,11 +9,12 @@ MAINTAINER= uebayasi@soum.co.jp HOMEPAGE= http://sketch.sourceforge.net/ COMMENT= Interactive drawing program -DEPENDS+= py-imaging>=1.0:../../graphics/py-imaging DEPENDS+= py-Tk>=1.5.2:../../x11/py-Tk USE_X11= YES +PYTHON_VERSIONS_ACCEPTED= 20 # XXX until some things are cleaned up + SKETCHDIR= ${PREFIX}/share/sketch SKETCHDOCDIR= ${PREFIX}/share/doc/sketch SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO @@ -24,10 +25,11 @@ echo: do-configure: @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ - python setup.py configure --imaging-include=${PREFIX}/include/PIL) + ${PYTHONBIN} setup.py configure \ + --imaging-include=${PREFIX}/include/python2.0/PIL) do-build: - @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} python setup.py build) + @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} setup.py build) do-install: ${INSTALL_DATA_DIR} ${SKETCHDIR} @@ -40,10 +42,12 @@ do-install: cd ${WRKSRC} && ${PAX} -rw -pe -v ${SKETCHDOCS} ${SKETCHDOCDIR} ${INSTALL_DATA_DIR} ${SKETCHEXDIR} cd ${WRKSRC}/Examples && ${PAX} -rw -pe -v . ${SKETCHEXDIR} - (cd ${SKETCHDIR}; python finishinst.py) + (cd ${SKETCHDIR}; ${PYTHONBIN} finishinst.py) ${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sketch.in > ${PREFIX}/bin/sketch ${CHMOD} +x ${PREFIX}/bin/sketch ${SED} -e "s|@PREFIX@|${PREFIX}|g" < ${FILESDIR}/sk2ps.in > ${PREFIX}/bin/sk2ps ${CHMOD} +x ${PREFIX}/bin/sk2ps +.include "../../lang/python/application.buildlink.mk" +.include "../../graphics/py-imaging/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/graphics/sketch/files/sk2ps.in b/graphics/sketch/files/sk2ps.in index a2c4142c4a0..66bda41511f 100644 --- a/graphics/sketch/files/sk2ps.in +++ b/graphics/sketch/files/sk2ps.in @@ -1,4 +1,4 @@ #!/bin/sh cd @PREFIX@/share/sketch -exec @PREFIX@/bin/python sk2ps.py $@ +exec @PREFIX@/bin/python2.0 sk2ps.py $@ diff --git a/graphics/sketch/files/sketch.in b/graphics/sketch/files/sketch.in index f0a9637d703..2011793ca43 100644 --- a/graphics/sketch/files/sketch.in +++ b/graphics/sketch/files/sketch.in @@ -1,4 +1,4 @@ #!/bin/sh cd @PREFIX@/share/sketch -exec @PREFIX@/bin/python sketch.py $@ +exec @PREFIX@/bin/python2.0 sketch.py $@ |