Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2014 19:41:53 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349451 - head/math/py-networkx
Message-ID:  <201403281941.s2SJfrvT040570@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Mar 28 19:41:53 2014
New Revision: 349451
URL: http://svnweb.freebsd.org/changeset/ports/349451
QAT: https://qat.redports.org/buildarchive/r349451/

Log:
  - 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)

Deleted:
  head/math/py-networkx/pkg-plist
Modified:
  head/math/py-networkx/Makefile

Modified: head/math/py-networkx/Makefile
==============================================================================
--- head/math/py-networkx/Makefile	Fri Mar 28 19:38:04 2014	(r349450)
+++ head/math/py-networkx/Makefile	Fri Mar 28 19:41:53 2014	(r349451)
@@ -9,23 +9,27 @@ MASTER_SITES=	http://networkx.lanl.gov/d
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403281941.s2SJfrvT040570>