diff options
author | snj <snj@pkgsrc.org> | 2009-09-12 19:45:29 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2009-09-12 19:45:29 +0000 |
commit | 7134137cfcf1ac05c4098bbadcafa9b3a201d5c4 (patch) | |
tree | 1186d092fb2ab1b82d59e78fe9d893a75e4fa340 /games | |
parent | 2baf6f6df0e9b4ac1e620c9f4ac80ec797ffe6ac (diff) | |
download | pkgsrc-7134137cfcf1ac05c4098bbadcafa9b3a201d5c4.tar.gz |
Remove dependency on py-imagingtk. pysolfc works fine without it. The
problem wiz stumbled upon only occurs if py-imaging is installed and
py-imagingtk is not. pysolfc assumed that if py-imaging was installed,
py-imagingtk was also installed. patch-ac corrects this by simply
disabling the runtime detection of these optional dependencies.
The real issue, it seems to me, is that py-imaging installs ImageTk.py,
which needs py-imagingtk to be useful. This is why pysolfc got
confused. pkgsrc should probably be changed to install ImageTk.py in
the py-imagingtk package instead, but I'd rather not audit all
py-imaging users right now, so I'll leave that for someone else.
Bump PKGREVISION to 4.
Diffstat (limited to 'games')
-rw-r--r-- | games/pysolfc/Makefile | 6 | ||||
-rw-r--r-- | games/pysolfc/distinfo | 3 | ||||
-rw-r--r-- | games/pysolfc/patches/patch-ac | 26 |
3 files changed, 30 insertions, 5 deletions
diff --git a/games/pysolfc/Makefile b/games/pysolfc/Makefile index 27356649b5b..beb77459edc 100644 --- a/games/pysolfc/Makefile +++ b/games/pysolfc/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.6 2009/09/12 14:45:57 wiz Exp $ +# $NetBSD: Makefile,v 1.7 2009/09/12 19:45:29 snj Exp $ DISTNAME= PySolFC-1.1 PKGNAME= ${DISTNAME:tl} -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= games python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pysolfc/} EXTRACT_SUFX= .tar.bz2 @@ -12,8 +12,6 @@ HOMEPAGE= http://pysolfc.sourceforge.net/ COMMENT= Over 1000 solitaire games LICENSE= gnu-gpl-v2 -DEPENDS+= ${PYPKGPREFIX}-imagingtk-[0-9]*:../../graphics/py-imagingtk - PKG_DESTDIR_SUPPORT= user-destdir PYDISTUTILSPKG= yes diff --git a/games/pysolfc/distinfo b/games/pysolfc/distinfo index 1c9cdddbf7f..1c83083c060 100644 --- a/games/pysolfc/distinfo +++ b/games/pysolfc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/11/16 07:12:03 snj Exp $ +$NetBSD: distinfo,v 1.2 2009/09/12 19:45:29 snj Exp $ SHA1 (PySolFC-1.1.tar.bz2) = 5ff4d8c7f238c5dab6122e916aeae2de2d945123 RMD160 (PySolFC-1.1.tar.bz2) = 2aa02c07294270281d5a685eb6b19086c85a7171 Size (PySolFC-1.1.tar.bz2) = 3667355 bytes SHA1 (patch-aa) = c51bc9223f6abeed7de83c5d2615ca8f88c798a7 SHA1 (patch-ab) = c3572b6659a109fa68852f298d352d14f3f46498 +SHA1 (patch-ac) = bef091ec396318e184032538314590ee9003c673 diff --git a/games/pysolfc/patches/patch-ac b/games/pysolfc/patches/patch-ac new file mode 100644 index 00000000000..413279c4730 --- /dev/null +++ b/games/pysolfc/patches/patch-ac @@ -0,0 +1,26 @@ +$NetBSD: patch-ac,v 1.1 2009/09/12 19:45:29 snj Exp $ + +--- pysollib/mfxutil.py.orig 2009-09-12 12:22:02.000000000 -0700 ++++ pysollib/mfxutil.py 2009-09-12 12:22:14.000000000 -0700 +@@ -51,21 +51,6 @@ except: + from settings import PACKAGE, TOOLKIT + + Image = ImageTk = ImageOps = None +-if TOOLKIT == 'tk': +- try: # PIL +- import Image +- except ImportError: +- pass +- else: +- import ImageTk +- import ImageOps +- # for py2exe +- import GifImagePlugin +- import PngImagePlugin +- import JpegImagePlugin +- import BmpImagePlugin +- import PpmImagePlugin +- Image._initialized = 2 + + + # /*********************************************************************** |