aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-scientific/Makefile
blob: a14a075ee3b584ce54600be792e8d941294cf1e4 (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
34
35
36
37
38
39
40
41
# New ports collection makefile for:    py-scientific
# Date created:     29 July 1999
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   scientific
PORTVERSION=    2.6
PORTREVISION=   1
CATEGORIES= math python
MASTER_SITES=   http://sourcesup.cru.fr/frs/download.php/1034/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ScientificPython-${PORTVERSION}

MAINTAINER= tg@FreeBSD.org
COMMENT=    Collection of Python modules for scientific computing

BUILD_DEPENDS=  ${PYNUMERIC}
LIB_DEPENDS=    netcdf.4:${PORTSDIR}/science/netcdf
RUN_DEPENDS=    ${PYNUMERIC}

USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=    ScientificPython

DOCDIR=     ${PREFIX}/share/doc/py-scientific
EXAMPLEDIR= ${PREFIX}/share/examples/py-scientific

post-install:
    @${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCDIR}
.if !defined(NOPORTDOCS)
    cd ${WRKDIR}/${DISTNAME}/Doc; tar -c --exclude='*~' -f - . | \
        (cd ${DOCDIR}; tar -xf -)
    @${MKDIR} ${EXAMPLEDIR}
    cd ${WRKDIR}/${DISTNAME}/Examples; tar -c --exclude='*~' -f - . | \
        (cd ${EXAMPLEDIR}; tar -xf -)
.endif

.include <bsd.port.mk>