aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-scientific/Makefile
blob: 992cc5b75f71d307d562535d6b8f4cdbba68d3d5 (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
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$

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

MAINTAINER= fmysh@iijmio-mail.jp
COMMENT=    Collection of Python modules for scientific computing

BUILD_DEPENDS=  ${PYNUMPY}
LIB_DEPENDS=    libnetcdf.so:science/netcdf
RUN_DEPENDS=    ${PYNUMPY}

USES=       python:2.7
USE_PYTHON= distutils autoplist

DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

OPTIONS_DEFINE= DOCS EXAMPLES

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
    cd ${WRKDIR}/${DISTNAME}/Doc; ${TAR} -c --exclude='*~' -f - . | \
        (cd ${STAGEDIR}${DOCSDIR}; ${TAR} -xf -)
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKDIR}/${DISTNAME}/Examples; ${TAR} -c --exclude='*~' -f - . | \
        (cd ${STAGEDIR}${EXAMPLESDIR}; ${TAR} -xf -)

.include <bsd.port.mk>