freebsd-ports/math/py-gato/Makefile
Mark Linimon 8123aa3674 Update to 0.98I of 12/05/2003. The old version had not been fetchable
for over a year.  Adds priority queues, reworks menus, better integration
with TK.

Since the current maintainer is temporarily away from FreeBSD, anyone
interested in this port should consider volunteering to be its maintainer.
It appears to still be under active development.
2003-12-18 07:07:37 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: py-gato
# Date created: 31 August 2001
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gato
PORTVERSION= 0.98.I
CATEGORIES= math python
MASTER_SITES= http://www.zpr.uni-koeln.de/~gato/Download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Gato-${PORTVERSION:U:C|\.([^.]*)$|\1|}
EXTRACT_SUFX= .tar
MAINTAINER= wjv@FreeBSD.org
COMMENT= A Python-based toolbox to visualise algorithms on graphs
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
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
CPIO= cpio --quiet -pdum -R
pre-build:
@ ${TOUCH} ${WRKSRC}/__init__.py
do-build:
@ ${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 -name Gred.py\* -o -print \
| ${CPIO} ${BINOWN}:${BINGRP} ${GATO_DIR}
.for script in Gato Gred
@ ${INSTALL_SCRIPT} ${WRKSRC}/${script}.py ${PREFIX}/bin/${script}
.endfor
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${EXAMPLESDIR}
.for egfile in *.alg *.pro *.cat
@ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.mk>