ports/144590: Update port: math/py-gato to 1.02
KATO Tsuguru
tkato432 at yahoo.com
Tue Mar 9 18:10:03 UTC 2010
>Number: 144590
>Category: ports
>Synopsis: Update port: math/py-gato to 1.02
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 09 18:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.2-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Update to version 1.02
Remove file:
files/patch-Gato.py
files/patch-GatoFile.py
files/patch-Gred.py
files/patch-TextTreeWidget.py
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/math/py-gato/Makefile math/py-gato/Makefile
--- /usr/ports/math/py-gato/Makefile 2009-07-13 15:25:26.000000000 +0900
+++ math/py-gato/Makefile 2010-03-04 01:11:31.000000000 +0900
@@ -6,7 +6,7 @@
#
PORTNAME= gato
-PORTVERSION= 0.99D
+PORTVERSION= 1.02
CATEGORIES= math python
MASTER_SITES= http://gato.sourceforge.net/Download/
MASTER_SITE_SUBDIR= gato
@@ -18,35 +18,37 @@
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
-USE_PYTHON= yes
WRKSRC= ${WRKDIR}/Gato
-GATO_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/Gato
+
+USE_PYTHON= yes
+
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
post-patch:
- @ ${REINPLACE_CMD} -e 's,^.*__future__.*$$,,' ${WRKSRC}/DataStructures.py
+ @${REINPLACE_CMD} -e 's,^.*__future__.*$$,,' ${WRKSRC}/DataStructures.py
+ @${GREP} -lR "^#!" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+ '/^#!/s|python.*$$|python|g'
pre-build:
- @ ${TOUCH} ${WRKSRC}/__init__.py
+ @${TOUCH} ${WRKSRC}/__init__.py
do-build:
- @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
- @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
- @ ${MKDIR} ${GATO_DIR}
- @ cd ${WRKSRC} && ${FIND} *.py *.pyc *.pyo \
- -name Gato.py\* -o -print \
- | ${CPIO} --verbose -pdum -R ${BINOWN}:${BINGRP} ${GATO_DIR}
+ @${MKDIR} ${PYTHON_SITELIBDIR}/Gato
+.for pyfile in *.py *.pyc *.pyo
+ ${INSTALL_DATA} ${WRKSRC}/${pyfile} ${PYTHON_SITELIBDIR}/Gato
+.endfor
.for script in Gato Gred
- @ ${INSTALL_SCRIPT} ${WRKSRC}/${script}.py ${PREFIX}/bin/${script}
+ @${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/Gato/${script}.py
+ @${LN} -sf ${PYTHON_SITELIBDIR}/Gato/${script}.py ${PREFIX}/bin/${script}
.endfor
-
-post-install:
.if !defined(NOPORTEXAMPLES)
- @ ${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}
.for egfile in *.alg *.pro *.cat
- @ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
.endfor
.endif
diff -urN /usr/ports/math/py-gato/distinfo math/py-gato/distinfo
--- /usr/ports/math/py-gato/distinfo 2009-07-13 15:25:27.000000000 +0900
+++ math/py-gato/distinfo 2010-03-04 00:54:59.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (Gato-0.99D.tar.gz) = 451ef1fd17e6f8b6355377ad325d78eb
-SHA256 (Gato-0.99D.tar.gz) = fc4d87073fe06a2dd9ce504b7481a7963ea4e641c531061bf31ae81cfdd3b06b
-SIZE (Gato-0.99D.tar.gz) = 194444
+MD5 (Gato-1.02.tar.gz) = be60c2effd8d4359eab25e698791d622
+SHA256 (Gato-1.02.tar.gz) = 28632f326429534ccc4919b49aedb4b4b210ac9318024a0aa677a37239231035
+SIZE (Gato-1.02.tar.gz) = 182323
diff -urN /usr/ports/math/py-gato/files/patch-Gato.py math/py-gato/files/patch-Gato.py
--- /usr/ports/math/py-gato/files/patch-Gato.py 2009-07-13 15:25:27.000000000 +0900
+++ math/py-gato/files/patch-Gato.py 1970-01-01 09:00:00.000000000 +0900
@@ -1,25 +0,0 @@
---- Gato.py Wed Jul 08 22:14:29 2009 +0900
-+++ Gato.py Wed Jul 08 22:16:07 2009 +0900
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python2.3
-+#!/usr/bin/env python
- ################################################################################
- #
- # This file is part of Gato (Graph Animation Toolbox)
-@@ -1590,11 +1590,11 @@
- self.algoGlobals['A'] = self.GUI.graphDisplay
- # XXX
- # explictely loading packages we want to make available to the algorithm
-- modules = ['DataStructures',
-- 'AnimatedDataStructures',
-- 'AnimatedAlgorithms',
-- 'GraphUtil',
-- 'GatoUtil']
-+ modules = ['Gato.DataStructures',
-+ 'Gato.AnimatedDataStructures',
-+ 'Gato.AnimatedAlgorithms',
-+ 'Gato.GraphUtil',
-+ 'Gato.GatoUtil']
-
- for m in modules:
- exec("from %s import *" % m, self.algoGlobals, self.algoGlobals)
diff -urN /usr/ports/math/py-gato/files/patch-GatoFile.py math/py-gato/files/patch-GatoFile.py
--- /usr/ports/math/py-gato/files/patch-GatoFile.py 2006-03-16 19:43:34.000000000 +0900
+++ math/py-gato/files/patch-GatoFile.py 1970-01-01 09:00:00.000000000 +0900
@@ -1,8 +0,0 @@
---- GatoFile.py Wed Mar 8 10:47:35 2006
-+++ GatoFile.py Wed Mar 8 10:47:47 2006
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python2.3
-+#!/usr/bin/env python
- ################################################################################
- #
- # This file is part of Gato (Graph Animation Toolbox)
diff -urN /usr/ports/math/py-gato/files/patch-Gred.py math/py-gato/files/patch-Gred.py
--- /usr/ports/math/py-gato/files/patch-Gred.py 2009-07-13 15:25:27.000000000 +0900
+++ math/py-gato/files/patch-Gred.py 1970-01-01 09:00:00.000000000 +0900
@@ -1,53 +0,0 @@
---- Gred.py Wed Jul 08 22:14:29 2009 +0900
-+++ Gred.py Wed Jul 08 22:16:07 2009 +0900
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python2.3
-+#!/usr/bin/env python
- ################################################################################
- #
- # This file is part of Gato (Graph Animation Toolbox)
-@@ -34,17 +34,17 @@
- # last change by $Author: schliep $.
- #
- ################################################################################
--from GatoGlobals import *
--import GatoGlobals # Needed for help viewer.XXX
--from Graph import Graph
--from DataStructures import EdgeWeight, VertexWeight
--from GraphUtil import OpenCATBoxGraph, OpenGMLGraph, OpenDotGraph, SaveCATBoxGraph, WeightedGraphInformer
--from GraphEditor import GraphEditor
-+from Gato.GatoGlobals import *
-+import Gato.GatoGlobals # Needed for help viewer.XXX
-+from Gato.Graph import Graph
-+from Gato.DataStructures import EdgeWeight, VertexWeight
-+from Gato.GraphUtil import OpenCATBoxGraph, OpenGMLGraph, OpenDotGraph, SaveCATBoxGraph, WeightedGraphInformer
-+from Gato.GraphEditor import GraphEditor
- from Tkinter import *
- import tkFont
--from GatoUtil import stripPath, extension, gatoPath
--import GatoDialogs
--import GatoIcons
-+from Gato.GatoUtil import stripPath, extension, gatoPath
-+from Gato import GatoDialogs
-+from Gato import GatoIcons
- from ScrolledText import *
-
- from tkFileDialog import askopenfilename, asksaveasfilename
-@@ -56,7 +56,7 @@
- import os
- import webbrowser
-
--import GraphCreator, Embedder
-+from Gato import GraphCreator, Embedder
-
- class GredSplashScreen(GatoDialogs.SplashScreen):
-
-@@ -926,7 +926,7 @@
- ## globals()['gVertexRadius'] = 12
- ## globals()['gVertexFrameWidth'] = 0
- ## globals()['gEdgeWidth'] = 2
-- GatoGlobals.cVertexDefault = '#000099'
-+ Gato.GatoGlobals.cVertexDefault = '#000099'
- ## globals()['cEdgeDefault'] = '#999999'
- ## globals()['cLabelDefault'] = 'white'
-
diff -urN /usr/ports/math/py-gato/files/patch-TextTreeWidget.py math/py-gato/files/patch-TextTreeWidget.py
--- /usr/ports/math/py-gato/files/patch-TextTreeWidget.py 2006-03-16 19:43:34.000000000 +0900
+++ math/py-gato/files/patch-TextTreeWidget.py 1970-01-01 09:00:00.000000000 +0900
@@ -1,8 +0,0 @@
---- TextTreeWidget.py Wed Mar 8 10:47:35 2006
-+++ TextTreeWidget.py Wed Mar 8 10:47:47 2006
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python2.3
-+#!/usr/bin/env python
- ################################################################################
- #
- # This file is part of Gato (Graph Animation Toolbox)
diff -urN /usr/ports/math/py-gato/pkg-descr math/py-gato/pkg-descr
--- /usr/ports/math/py-gato/pkg-descr 2009-12-21 15:26:16.000000000 +0900
+++ math/py-gato/pkg-descr 2010-02-05 05:08:29.000000000 +0900
@@ -10,4 +10,4 @@
immediately to an effect - changes to the graph the algorithm has as its
input - by terms of blinking, changing colors and other visual effects.
-WWW: http://gato.sourceforge.net/index.html
+WWW: http://gato.sourceforge.net/
diff -urN /usr/ports/math/py-gato/pkg-plist math/py-gato/pkg-plist
--- /usr/ports/math/py-gato/pkg-plist 2009-07-13 15:25:27.000000000 +0900
+++ math/py-gato/pkg-plist 2010-03-04 01:08:13.000000000 +0900
@@ -18,6 +18,9 @@
%%PYTHON_SITELIBDIR%%/Gato/Embedder.py
%%PYTHON_SITELIBDIR%%/Gato/Embedder.pyc
%%PYTHON_SITELIBDIR%%/Gato/Embedder.pyo
+%%PYTHON_SITELIBDIR%%/Gato/Gato.py
+%%PYTHON_SITELIBDIR%%/Gato/Gato.pyc
+%%PYTHON_SITELIBDIR%%/Gato/Gato.pyo
%%PYTHON_SITELIBDIR%%/Gato/GatoConfiguration.py
%%PYTHON_SITELIBDIR%%/Gato/GatoConfiguration.pyc
%%PYTHON_SITELIBDIR%%/Gato/GatoConfiguration.pyo
@@ -33,9 +36,6 @@
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.py
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.pyc
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.pyo
-%%PYTHON_SITELIBDIR%%/Gato/GatoSystemConfiguration.py
-%%PYTHON_SITELIBDIR%%/Gato/GatoSystemConfiguration.pyc
-%%PYTHON_SITELIBDIR%%/Gato/GatoSystemConfiguration.pyo
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.py
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.pyc
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.pyo
@@ -66,19 +66,13 @@
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.py
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.pyc
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.pyo
-%%PYTHON_SITELIBDIR%%/Gato/TextTreeWidget.py
-%%PYTHON_SITELIBDIR%%/Gato/TextTreeWidget.pyc
-%%PYTHON_SITELIBDIR%%/Gato/TextTreeWidget.pyo
-%%PYTHON_SITELIBDIR%%/Gato/TreeWidget.py
-%%PYTHON_SITELIBDIR%%/Gato/TreeWidget.pyc
-%%PYTHON_SITELIBDIR%%/Gato/TreeWidget.pyo
%%PYTHON_SITELIBDIR%%/Gato/__init__.py
%%PYTHON_SITELIBDIR%%/Gato/__init__.pyc
%%PYTHON_SITELIBDIR%%/Gato/__init__.pyo
- at dirrm %%PYTHON_SITELIBDIR%%/Gato
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/BFS.alg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/BFS.pro
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/DFS.alg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/DFS.pro
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.cat
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+ at dirrm %%PYTHON_SITELIBDIR%%/Gato
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list