aboutsummaryrefslogtreecommitdiffstats
path: root/lang/f2py/Makefile
blob: c4c27c6971614ece0f3aa2e19af2f84207c02d83 (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
42
43
44
# ex:ts=8
# Ports collection makefile for:    f2py
# Date created:         Jun 12, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   f2py
PORTVERSION=    2.45.241.1926
PORTREVISION=   1
CATEGORIES= lang python
MASTER_SITES=   http://cens.ioc.ee/projects/f2py2e/2.x/
DISTNAME=   ${PORTNAME:U}-${PORTVERSION:R}_${PORTVERSION:E}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Fortran to Python Interface Generator

RUN_DEPENDS=    ${PYNUMERIC}

CONFLICTS=  py*-numpy-1.*

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

PLIST_FILES=    bin/f2py
MAN1=       f2py.1

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

post-install:
    ${INSTALL_MAN} ${WRKSRC}/f2py.1 ${MAN1PREFIX}/man/man1
    @${FIND} ${PYTHON_SITELIBDIR}/f2py2e ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/f2py2e -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
.endif

.include <bsd.port.mk>