diff options
author | ryoon <ryoon@pkgsrc.org> | 2011-05-04 11:16:23 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2011-05-04 11:16:23 +0000 |
commit | 8f3f149dde1c646f865c92d01d19bbddd0bea4a2 (patch) | |
tree | e4154b0ab0fdb9e9a035d9280cca8dd8387d6a71 /graphics/mypaint | |
parent | 57bc3273a5f30c461346edc748309ffb315ecb7c (diff) | |
download | pkgsrc-8f3f149dde1c646f865c92d01d19bbddd0bea4a2.tar.gz |
* Replace '#!.../env python' with PYTHONBIN, fix build.
* Bump PKGREVISION.
Diffstat (limited to 'graphics/mypaint')
-rw-r--r-- | graphics/mypaint/Makefile | 11 | ||||
-rw-r--r-- | graphics/mypaint/distinfo | 3 | ||||
-rw-r--r-- | graphics/mypaint/patches/patch-SConstruct | 13 |
3 files changed, 24 insertions, 3 deletions
diff --git a/graphics/mypaint/Makefile b/graphics/mypaint/Makefile index 153692821d3..f0ad3edcf5f 100644 --- a/graphics/mypaint/Makefile +++ b/graphics/mypaint/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.6 2011/04/22 13:43:49 obache Exp $ +# $NetBSD: Makefile,v 1.7 2011/05/04 11:16:23 ryoon Exp $ # DISTNAME= mypaint-0.9.1 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://download.gna.org/mypaint/ EXTRACT_SUFX= .tar.bz2 @@ -32,6 +32,13 @@ SUBST_FILES.locale-dir= SConstruct SUBST_SED.locale-dir= -e 's,share/locale,${PKGLOCALEDIR}/locale,' USE_PKGLOCALEDIR= yes +SUBST_CLASSES+= python +SUBST_STAGE.python= pre-configure +SUBST_FILES.python= brushlib/generate.py \ + SConstruct +SUBST_SED.python= -e 's,/usr/bin/env python,${PYTHONBIN},' +SUBST_SED.python+= -e 's,%PYTHONBIN%,${PYTHONBIN},' + REPLACE_BASH= brushes/label-brush-mypaint.sh do-build: diff --git a/graphics/mypaint/distinfo b/graphics/mypaint/distinfo index 13335be3ad2..82b07c410f3 100644 --- a/graphics/mypaint/distinfo +++ b/graphics/mypaint/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2011/03/06 07:33:52 ryoon Exp $ +$NetBSD: distinfo,v 1.3 2011/05/04 11:16:23 ryoon Exp $ SHA1 (mypaint-0.9.1.tar.bz2) = b2fe2e311619a4c4815cd698abd41e99b6692b43 RMD160 (mypaint-0.9.1.tar.bz2) = 16bd0492b567822b5ea4d6e3153e73436828a728 Size (mypaint-0.9.1.tar.bz2) = 5542866 bytes +SHA1 (patch-SConstruct) = d524789a7053976d06d3d4389869b82c456522bf diff --git a/graphics/mypaint/patches/patch-SConstruct b/graphics/mypaint/patches/patch-SConstruct new file mode 100644 index 00000000000..7b43b15265a --- /dev/null +++ b/graphics/mypaint/patches/patch-SConstruct @@ -0,0 +1,13 @@ +$NetBSD: patch-SConstruct,v 1.1 2011/05/04 11:16:23 ryoon Exp $ + +--- SConstruct.orig 2011-03-04 14:44:59.000000000 +0000 ++++ SConstruct +@@ -84,7 +84,7 @@ if sys.platform == "win32": + + def burn_python_version(target, source, env): + # make sure we run the python version that we built the extension modules for +- s = '#!/usr/bin/env ' + python + '\n' ++ s = '#!%PYTHONBIN%\n' + s += 5*'#\n' + s += '# DO NOT EDIT - edit %s instead\n' % source[0] + s += 5*'#\n' |