mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
math/py-gato: update to 1.2.2
- update to 1.2.2 - switch to CHEESESHOP (upstream moved development from SF) - define LICENSE (LGPL21) - switch to distutils from manual installation; utilize autoplist - limit python version to 2.x, add NO_ARCH - pass maintainership to python@
This commit is contained in:
parent
b9f4627837
commit
d6093a4dcf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408919
@ -2,52 +2,29 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gato
|
||||
PORTVERSION= 1.02
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.2.2
|
||||
CATEGORIES= math python
|
||||
MASTER_SITES= http://gato.sourceforge.net/Download/
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= Gato-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Python-based toolbox to visualise algorithms on graphs
|
||||
|
||||
LICENSE= LGPL21
|
||||
LICENSE_FILE= ${WRKSRC}/LGPL.txt
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
||||
|
||||
WRKSRC= ${WRKDIR}/Gato
|
||||
NO_ARCH= yes
|
||||
PORTEXAMPLES= *
|
||||
USES= python:2
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
USES= python
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
|
||||
|
||||
post-patch:
|
||||
@${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
|
||||
|
||||
do-build:
|
||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
||||
-d ${PYTHON_SITELIBDIR} \
|
||||
-f ${WRKSRC}
|
||||
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
||||
-d ${PYTHON_SITELIBDIR} \
|
||||
-f ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/Gato
|
||||
.for pyfile in *.py *.pyc *.pyo
|
||||
${INSTALL_DATA} ${WRKSRC}/${pyfile} ${STAGEDIR}${PYTHON_SITELIBDIR}/Gato
|
||||
.endfor
|
||||
.for script in Gato Gred
|
||||
@${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHON_SITELIBDIR}/Gato/${script}.py
|
||||
@${LN} -sf ${PYTHON_SITELIBDIR}/Gato/${script}.py ${STAGEDIR}${PREFIX}/bin/${script}
|
||||
.endfor
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.for egfile in *.alg *.pro *.cat
|
||||
${INSTALL_DATA} ${WRKSRC}/${egfile} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.for sample in *.alg *.pro *.cat
|
||||
${INSTALL_DATA} ${WRKSRC}/${sample} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (Gato-1.02.tar.gz) = 28632f326429534ccc4919b49aedb4b4b210ac9318024a0aa677a37239231035
|
||||
SIZE (Gato-1.02.tar.gz) = 182323
|
||||
SHA256 (Gato-1.2.2.tar.gz) = d353b8af72ad780f0301912f101ea528822d616bea717c7ca84eaeb0609fa42f
|
||||
SIZE (Gato-1.2.2.tar.gz) = 274369
|
||||
|
@ -1,76 +0,0 @@
|
||||
bin/Gato
|
||||
bin/Gred
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedAlgorithms.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedAlgorithms.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedAlgorithms.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedDataStructures.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedDataStructures.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimatedDataStructures.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimationHistory.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimationHistory.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/AnimationHistory.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/DataStructures.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/DataStructures.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/DataStructures.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/EditObjectAttributesDialog.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/EditObjectAttributesDialog.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/EditObjectAttributesDialog.pyo
|
||||
%%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
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoDialogs.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoDialogs.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoDialogs.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoFile.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoFile.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoFile.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoGlobals.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoGlobals.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoGlobals.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoIcons.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoTest.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoUtil.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoUtil.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GatoUtil.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Graph.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Graph.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Graph.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphCreator.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphCreator.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphCreator.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphDisplay.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphDisplay.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphDisplay.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphEditor.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphEditor.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphEditor.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphUtil.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphUtil.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/GraphUtil.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Gred.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Gred.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/Gred.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarEmbedding.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarEmbedding.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarEmbedding.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/PlanarityTest.pyo
|
||||
%%PYTHON_SITELIBDIR%%/Gato/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/Gato/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/Gato/__init__.pyo
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/BFS.alg
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/BFS.pro
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/DFS.alg
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/DFS.pro
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.cat
|
Loading…
Reference in New Issue
Block a user