1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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)
This commit is contained in:
Steve Wills 2014-03-28 19:41:53 +00:00
parent 5484c22bee
commit d1de335ba1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349451
2 changed files with 16 additions and 1038 deletions

View File

@ -9,23 +9,27 @@ MASTER_SITES= http://networkx.lanl.gov/download/networkx/ \
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dikshie@sfc.wide.ad.jp
COMMENT= Tools for complex network
COMMENT= Tools for complex networks
LICENSE= BSD3CLAUSE
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYTHON_PY3K_PLIST_HACK=yes
PYSETUP= setup_egg.py
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
NO_STAGE= yes
post-install:
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples \
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
.endif
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>

File diff suppressed because it is too large Load Diff