aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2010-03-25 16:06:12 +0800
committerkevlo <kevlo@FreeBSD.org>2010-03-25 16:06:12 +0800
commit9df86911b8d34b6be77588048013f065c97bbc85 (patch)
tree009330bb10473f9d6fbfdf45eadc4947ef53ba39
parentc45e18b8aa8ee6a93a4dbf070c504f48a4a3478c (diff)
downloadfreebsd-ports-gnome-9df86911b8d34b6be77588048013f065c97bbc85.tar.gz
freebsd-ports-gnome-9df86911b8d34b6be77588048013f065c97bbc85.tar.zst
freebsd-ports-gnome-9df86911b8d34b6be77588048013f065c97bbc85.zip
Add graphics/py-imaging dependency.
-rw-r--r--astro/gmapcatcher/Makefile6
-rw-r--r--astro/gmapcatcher/files/patch-src_mapArgs.py15
2 files changed, 21 insertions, 0 deletions
diff --git a/astro/gmapcatcher/Makefile b/astro/gmapcatcher/Makefile
index 0030804b25fb..a7b8d840cc3e 100644
--- a/astro/gmapcatcher/Makefile
+++ b/astro/gmapcatcher/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gmapcatcher
PORTVERSION= 0.6.3.0
+PORTREVISION= 1
CATEGORIES= astro geography
MASTER_SITES= http://gmapcatcher.googlecode.com/files/
DISTNAME= GMapCatcher-${PORTVERSION}
@@ -14,11 +15,16 @@ DISTNAME= GMapCatcher-${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= An offline map viewer
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+
USE_PYTHON= yes
USE_GNOME= pygtk2
WRKSRC= ${WRKDIR}/${DISTNAME}
+post-patch:
+ @${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} {} \;
+
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
diff --git a/astro/gmapcatcher/files/patch-src_mapArgs.py b/astro/gmapcatcher/files/patch-src_mapArgs.py
new file mode 100644
index 000000000000..3981b8a5de37
--- /dev/null
+++ b/astro/gmapcatcher/files/patch-src_mapArgs.py
@@ -0,0 +1,15 @@
+--- src/mapArgs.py.orig 2010-03-25 15:48:48.000000000 +0800
++++ src/mapArgs.py 2010-03-25 15:49:26.000000000 +0800
+@@ -38,9 +38,9 @@
+ print ' very useful to download maps of entire world'
+ print ' '
+ print 'SAMPLE USAGE'
+- print ' download.py --location="Paris, France"'
+- print ' download.py --min-zoom=13 --full-range'
+- print ' download.py --latitude=37.979180 --longitude=23.716647'
++ print ' gmapcatcher-download --location="Paris, France"'
++ print ' gmapcatcher-download --min-zoom=13 --full-range'
++ print ' gmapcatcher-download --latitude=37.979180 --longitude=23.716647'
+
+ def __init__(self, arrArgs=()):
+ if len(arrArgs) > 1: