diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2011-10-11 06:39:14 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2011-10-11 06:39:14 +0800 |
commit | 407f6ba6242632ad1a9c7dd35c0f0a1080d962ed (patch) | |
tree | cb3aa2e7f7da071aab7b28a07e1576d0125c5c99 /misc | |
parent | d4890e16064e9fdd8e8f0b2dc4b2f22e8b9c7a5c (diff) | |
download | freebsd-ports-gnome-407f6ba6242632ad1a9c7dd35c0f0a1080d962ed.tar.gz freebsd-ports-gnome-407f6ba6242632ad1a9c7dd35c0f0a1080d962ed.tar.zst freebsd-ports-gnome-407f6ba6242632ad1a9c7dd35c0f0a1080d962ed.zip |
- Fix build with python 2.7
PR: 161471
Submitted by: Nali Toja <nalitoja@gmail.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/metromap/Makefile | 1 | ||||
-rw-r--r-- | misc/metromap/files/patch-python27 | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/misc/metromap/Makefile b/misc/metromap/Makefile index 891c3d6bc171..cc2e6d59d359 100644 --- a/misc/metromap/Makefile +++ b/misc/metromap/Makefile @@ -7,6 +7,7 @@ PORTNAME= metromap PORTVERSION= 0.1.3 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://metromap.antex.ru/ \ http://mirror.amdmi3.ru/distfiles/ diff --git a/misc/metromap/files/patch-python27 b/misc/metromap/files/patch-python27 new file mode 100644 index 000000000000..30d512e5c6ab --- /dev/null +++ b/misc/metromap/files/patch-python27 @@ -0,0 +1,47 @@ +--- modules/ReadMap.py 2010-07-01 11:22:36.000000000 +0400 ++++ modules/ReadMap.py 2011-01-03 02:28:53.000000000 +0300 +@@ -85,7 +85,7 @@ + return None + + def GetMapName(ini): +- cp = ConfigParser.RawConfigParser() ++ cp = ConfigParser.RawConfigParser(allow_no_value=True) + try: + cp.readfp(ini) + except: +@@ -105,7 +105,7 @@ + return None + + def GetMapVec(ini): +- cp = ConfigParser.RawConfigParser() ++ cp = ConfigParser.RawConfigParser(allow_no_value=True) + try: + cp.readfp(ini) + except: +@@ -568,7 +568,7 @@ + self.Graph[i] = filter(lambda a: a[0] not in uclist, self.Graph[i]) + + def _load_vec(self): +- cp = ConfigParser.RawConfigParser() ++ cp = ConfigParser.RawConfigParser(allow_no_value=True) + try: + cp.readfp(self.vec) + except: #ConfigParser.readfp raises exception, when he thinks, +@@ -594,7 +594,7 @@ + self.Stations[st]['vfile'] = cp_get(cp, section, self.Stations[st]['name_orig'], None) + + def _load(self): +- cp = ConfigParser.RawConfigParser() ++ cp = ConfigParser.RawConfigParser(allow_no_value=True) + try: + cp.readfp(self.ini) + except: #ConfigParser.readfp raises exception, when he thinks, +@@ -945,7 +945,7 @@ + self.name = None + self.data = dict() + self.enc = encoding +- cp = ConfigParser.RawConfigParser() ++ cp = ConfigParser.RawConfigParser(allow_no_value=True) + try: + cp.readfp(infodata) + except:
\ No newline at end of file |