aboutsummaryrefslogtreecommitdiff
path: root/devel/nx/Makefile
blob: c4fb4189a00fb14fca2f8bc2b2587fbc173c25ef (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
# ex:ts=8
# Ports collection makefile for:	NetworkX
# Date created:			Apr 13, 2005
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	nx
PORTVERSION=	0.37
PORTREVISION=	4
CATEGORIES=	devel
MASTER_SITES=	https://networkx.lanl.gov/download/networkx/
DISTNAME=	networkx-${PORTVERSION}

MAINTAINER=	araujo@FreeBSD.org
COMMENT=	Python package for studying network structure, dynamics, and function

BUILD_DEPENDS=	${PYNUMERIC} \
		${PYTHON_SITELIBDIR}/pygsl/__init__.py:${PORTSDIR}/math/py-gsl \
		ipython:${PORTSDIR}/devel/ipython \
		${PYTHON_SITELIBDIR}/matplotlib/__init__.py:${PORTSDIR}/math/py-matplotlib \
		${PYTHON_SITELIBDIR}/pydot.py:${PORTSDIR}/graphics/py-pydot \
		dot:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_PYTHON=	yes
USE_PYDISTUTILS=	easy_install
PYDISTUTILS_PKGNAME=	networkx
PORTDOCS=	*
PLIST_SUB=	PYTHON_VER=${PYTHON_VER}

post-install:
.ifndef(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif

.include <bsd.port.mk>