freebsd-ports/math/py-gato/Makefile
Martin Wilke 2e268f2b02 - Update to 1.02
PR:		144590
Submitted by:	Ports Fury
2010-03-09 22:59:51 +00:00

55 lines
1.4 KiB
Makefile

# New ports collection makefile for: py-gato
# Date created: 31 August 2001
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gato
PORTVERSION= 1.02
CATEGORIES= math python
MASTER_SITES= http://gato.sourceforge.net/Download/
MASTER_SITE_SUBDIR= gato
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Gato-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A Python-based toolbox to visualise algorithms on graphs
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
WRKSRC= ${WRKDIR}/Gato
USE_PYTHON= yes
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 ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${PYTHON_SITELIBDIR}/Gato
.for pyfile in *.py *.pyc *.pyo
${INSTALL_DATA} ${WRKSRC}/${pyfile} ${PYTHON_SITELIBDIR}/Gato
.endfor
.for script in Gato Gred
@${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/Gato/${script}.py
@${LN} -sf ${PYTHON_SITELIBDIR}/Gato/${script}.py ${PREFIX}/bin/${script}
.endfor
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for egfile in *.alg *.pro *.cat
${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.mk>