d1de335ba1
- 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)
35 lines
747 B
Makefile
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>
|