2013-09-20 22:55:04 +02:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1997-04-28 11:22:59 +02:00
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= numeric
|
2006-02-06 12:57:02 +01:00
|
|
|
PORTVERSION= 24.2
|
2008-11-26 23:22:09 +01:00
|
|
|
PORTREVISION= 3
|
1998-06-25 08:43:28 +02:00
|
|
|
CATEGORIES= math python
|
2008-03-01 14:15:32 +01:00
|
|
|
MASTER_SITES= http://numpy.scipy.org/:doc \
|
2009-08-22 02:28:34 +02:00
|
|
|
SF/numpy/Old%20Numeric/${PORTVERSION}:source
|
2000-11-17 13:19:30 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2005-07-22 14:52:37 +02:00
|
|
|
DISTFILES= Numeric-${PORTVERSION}${EXTRACT_SUFX}:source \
|
|
|
|
numpy.pdf:doc
|
|
|
|
EXTRACT_ONLY= Numeric-${PORTVERSION}${EXTRACT_SUFX}
|
1997-04-28 11:22:59 +02:00
|
|
|
|
2013-12-16 19:24:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Numeric Extension to Python
|
1997-04-28 11:22:59 +02:00
|
|
|
|
2008-10-23 06:17:28 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2013-12-15 17:22:17 +01:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
2008-10-13 21:58:51 +02:00
|
|
|
|
2005-07-24 19:34:46 +02:00
|
|
|
WRKSRC= ${WRKDIR}/Numeric-${PORTVERSION}
|
|
|
|
|
2005-07-22 14:52:37 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-numeric
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-numeric
|
2013-12-15 17:22:17 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
1997-04-28 11:22:59 +02:00
|
|
|
|
2013-12-15 17:22:17 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2008-10-23 06:17:28 +02:00
|
|
|
|
2013-12-15 17:22:17 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2008-10-23 06:17:28 +02:00
|
|
|
|
2005-07-22 14:52:37 +02:00
|
|
|
post-extract:
|
2005-07-24 19:34:46 +02:00
|
|
|
@${CP} ${DISTDIR}/numpy.pdf ${WRKDIR}
|
2008-11-26 23:22:09 +01:00
|
|
|
#
|
|
|
|
# Force the setup.py file to use a specific version of Python,
|
|
|
|
# since more than one may be installed, and we want to use
|
|
|
|
# the correct one, because if one has setuptools and another
|
|
|
|
# doesn't, that could mess with how pkg-plist is constructed.
|
|
|
|
#
|
2013-12-15 17:22:17 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s|/usr/bin/env python|/usr/bin/env python${PYTHON_VER}|" \
|
|
|
|
-e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
|
|
|
|
${WRKSRC}/setup.py
|
2005-07-22 14:52:37 +02:00
|
|
|
|
2001-10-19 13:13:32 +02:00
|
|
|
post-install:
|
2013-12-15 17:22:17 +01:00
|
|
|
@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Demo/*.py ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/NumTut
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Demo/NumTut/* ${STAGEDIR}${EXAMPLESDIR}/NumTut
|
|
|
|
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/numpy.pdf ${STAGEDIR}${DOCSDIR}
|
1997-04-28 11:22:59 +02:00
|
|
|
|
2002-01-09 13:25:54 +01:00
|
|
|
.include <bsd.port.post.mk>
|