Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 08:44:26 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343436 - in head/devel: . py-yappi py-yappi/files
Message-ID:  <201402090844.s198iQg7010627@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Sun Feb  9 08:44:25 2014
New Revision: 343436
URL: http://svnweb.freebsd.org/changeset/ports/343436
QAT: https://qat.redports.org/buildarchive/r343436/

Log:
  [NEW PORT] devel/py-yappi: Yet Another Python Profiler
  
  Yappi is designed to work on long-running multi-threaded applications.
  
  It is possible to profile an application, retrieve statistics, then stop and
  start later on the fly without affecting the profiled application.
  
  WWW: https://pypi.python.org/pypi/yappi/
  
  PR:		ports/186157
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>

Added:
  head/devel/py-yappi/
  head/devel/py-yappi/Makefile   (contents, props changed)
  head/devel/py-yappi/distinfo   (contents, props changed)
  head/devel/py-yappi/files/
  head/devel/py-yappi/files/patch-setup.py   (contents, props changed)
  head/devel/py-yappi/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Feb  9 08:39:00 2014	(r343435)
+++ head/devel/Makefile	Sun Feb  9 08:44:25 2014	(r343436)
@@ -3861,6 +3861,7 @@
     SUBDIR += py-xmltodict
     SUBDIR += py-xoltar-toolkit
     SUBDIR += py-yaml
+    SUBDIR += py-yappi
     SUBDIR += py-yapps2
     SUBDIR += py-ydbf
     SUBDIR += py-yum-metadata-parser

Added: head/devel/py-yappi/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-yappi/Makefile	Sun Feb  9 08:44:25 2014	(r343436)
@@ -0,0 +1,30 @@
+# Created by: Johannes Meixner <xmj@chaot.net>
+# $FreeBSD$
+
+PORTNAME=	yappi
+PORTVERSION=	0.82
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	xmj@chaot.net
+COMMENT=	Yet Another Python Profiler
+
+LICENSE=	MIT
+
+OPTIONS_DEFINE=	DOCS
+PORTDOCS=	*
+
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+post-patch:
+	${RM} ${WRKSRC}/ez_setup.py
+	${RM} ${WRKSRC}/distribute_setup.py
+
+post-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/devel/py-yappi/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-yappi/distinfo	Sun Feb  9 08:44:25 2014	(r343436)
@@ -0,0 +1,2 @@
+SHA256 (yappi-0.82.tar.gz) = 1321532bd47ddb4998c1f1a95f51f2a6a0e652fdfe93f82a25e41e77dca78f23
+SIZE (yappi-0.82.tar.gz) = 29841

Added: head/devel/py-yappi/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-yappi/files/patch-setup.py	Sun Feb  9 08:44:25 2014	(r343436)
@@ -0,0 +1,24 @@
+--- ./setup.py.orig	2014-01-06 14:49:25.000000000 +0200
++++ ./setup.py	2014-01-07 13:42:57.722830400 +0200
+@@ -1,12 +1,6 @@
+ #!/usr/bin/env python
+ import os
+ import sys
+-if sys.version_info >= (3, 0):
+-    from distribute_setup import use_setuptools
+-else:
+-    from ez_setup import use_setuptools
+-
+-use_setuptools()
+ 
+ from setuptools import setup
+ from distutils.core import Extension
+@@ -74,7 +68,7 @@
+         extra_compile_args = compile_args,
+         extra_link_args = link_args,
+         )],
+-    py_modules =  ["yappi", "distribute_setup", "ez_setup"],
++    py_modules =  ["yappi"],
+     entry_points = {
+     'console_scripts': [
+         'yappi = yappi:main',

Added: head/devel/py-yappi/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-yappi/pkg-descr	Sun Feb  9 08:44:25 2014	(r343436)
@@ -0,0 +1,6 @@
+Yappi is designed to work on long-running multi-threaded applications.
+
+It is possible to profile an application, retrieve statistics, then stop and
+start later on the fly without affecting the profiled application.
+
+WWW: https://pypi.python.org/pypi/yappi/



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