freebsd-ports/math/py-networkx/Makefile
Steve Wills d1de335ba1 - Switch from easy_install to USE_PYDISTUTILS=yes
- Add EXAMPLES OPTION
- Use shebangfix

PR:		ports/187882
Submitted by:	Johannes Jost Meixner <xmj@chaot.net>
Approved by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
2014-03-28 19:41:53 +00:00

35 lines
747 B
Makefile

# Created by: dikshie
# $FreeBSD$
PORTNAME= networkx
PORTVERSION= 1.8.1
CATEGORIES= math python
MASTER_SITES= http://networkx.lanl.gov/download/networkx/ \
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dikshie@sfc.wide.ad.jp
COMMENT= Tools for complex networks
LICENSE= BSD3CLAUSE
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
OPTIONS_DEFINE= EXAMPLES
EXAMPLESDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PORTEXAMPLES= *
USES= shebangfix
.include <bsd.port.options.mk>
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>