aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-numarray/Makefile
blob: bfa6847701db76bc61126f2f326708ba45be7136 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# New ports collection makefile for:    py-numarray
# Date created:     30 April 2002
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   numarray
PORTVERSION=    1.5.2
CATEGORIES= math python
MASTER_SITES=   SF/numpy/Old%20Numarray/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Numeric array manipulation extension module for Python

USE_PYTHON= yes
USE_PYDISTUTILS=yes

post-configure:
    cd ${WRKSRC} && \
    ${PYTHON_CMD} generate.py && \
    ${PYTHON_CMD} Include/numarray/genapis.py

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
    @${TAR} -C ${WRKSRC}/Doc -cf- .|${TAR} -C ${DOCSDIR} -xf-
    @${TAR} -C ${WRKSRC}/Examples -cf- .|${TAR} -C ${EXAMPLESDIR} -xf-
    @${RM} -fr ${EXAMPLESDIR}/ufunc/build
.endif

.include <bsd.port.mk>