aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-03-01 09:02:21 +0800
committerclsung <clsung@FreeBSD.org>2007-03-01 09:02:21 +0800
commit373e2cdc3085e444f11295f42e671828524f38e8 (patch)
treee7be4f4641dbccda17083f6185d2a8676be7bc06 /devel
parent2368b71e574016452e41819a5d6c8f0c7c150845 (diff)
downloadfreebsd-ports-gnome-373e2cdc3085e444f11295f42e671828524f38e8.tar.gz
freebsd-ports-gnome-373e2cdc3085e444f11295f42e671828524f38e8.tar.zst
freebsd-ports-gnome-373e2cdc3085e444f11295f42e671828524f38e8.zip
Add py-trace2html 0.2.1, HTML coverage report generator for trace.py.
PR: ports/109545 Submitted by: Li-Wen Hsu <lwhsu at lwhsu.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-trace2html/Makefile35
-rw-r--r--devel/py-trace2html/distinfo3
-rw-r--r--devel/py-trace2html/pkg-descr5
-rw-r--r--devel/py-trace2html/pkg-plist4
5 files changed, 48 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f1b669ae506f..83bbeeb8c907 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1838,6 +1838,7 @@
SUBDIR += py-testgears
SUBDIR += py-tconfpy
SUBDIR += py-testoob
+ SUBDIR += py-trace2html
SUBDIR += py-turbocheetah
SUBDIR += py-turbojson
SUBDIR += py-turbokid
diff --git a/devel/py-trace2html/Makefile b/devel/py-trace2html/Makefile
new file mode 100644
index 000000000000..e8c9c8072b03
--- /dev/null
+++ b/devel/py-trace2html/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: py-trace2html
+# Date created: Feb. 26, 2007
+# Whom: Li-Wen Hsu <lwhsu@lwhsu.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= trace2html
+PORTVERSION= 0.2.1
+CATEGORIES= devel python
+MASTER_SITES= http://cheeseshop.python.org/packages/source/t/trace2html/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= lwhsu@lwhsu.org
+COMMENT= HTML coverage report generator for trace.py
+
+BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
+
+PYDISTUTILS_BUILD_TARGET= bdist_egg
+PYDISTUTILS_INSTALL_TARGET= easy_install
+PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYTRACE2HTML_EGG}
+
+PYTRACE2HTML_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
+
+PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+ PYTRACE2HTML_EGG=${PYTRACE2HTML_EGG} \
+ PYTRACE2HTML_EGG_VER="${PORTNAME}==${PORTVERSION}"
+
+.include <bsd.port.mk>
diff --git a/devel/py-trace2html/distinfo b/devel/py-trace2html/distinfo
new file mode 100644
index 000000000000..cf5876a09546
--- /dev/null
+++ b/devel/py-trace2html/distinfo
@@ -0,0 +1,3 @@
+MD5 (trace2html-0.2.1.tar.gz) = 5a8a3be2dc787de8c491c271b10908a7
+SHA256 (trace2html-0.2.1.tar.gz) = 825010de6271acdea9b2f74adef3246143f069c9c3d0c2a4b57b6bf7bbad437f
+SIZE (trace2html-0.2.1.tar.gz) = 25739
diff --git a/devel/py-trace2html/pkg-descr b/devel/py-trace2html/pkg-descr
new file mode 100644
index 000000000000..30afbf537327
--- /dev/null
+++ b/devel/py-trace2html/pkg-descr
@@ -0,0 +1,5 @@
+`trace2html' is a utility to convert execution coverage data obtained
+with the `trace' module of the standard python library into a set of human
+readable HTML documents showing sortable summary and annotated source files.
+
+WWW: http://cheeseshop.python.org/pypi/trace2html
diff --git a/devel/py-trace2html/pkg-plist b/devel/py-trace2html/pkg-plist
new file mode 100644
index 000000000000..1b2c80223c77
--- /dev/null
+++ b/devel/py-trace2html/pkg-plist
@@ -0,0 +1,4 @@
+@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYTRACE2HTML_EGG_VER%%
+%%PYTHON_SITELIBDIR%%/%%PYTRACE2HTML_EGG%%
+@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYTRACE2HTML_EGG_VER%%
+bin/trace2html.py