Thursday, February 28, 2019

Re: UPDATE: www/py-repoze-profile 1.4 -> 2.3

I missed a build dep. New diff attached.

On Thu, Jan 31, 2019 at 05:24:15PM -0500, Pamela Mosiejczuk wrote:
> Potential update for py-repoze-profile. The current release adds a decorator
> for profiling individual functions and a python 3 version.
>
> Passes its regression tests. Nothing depends on this port. Additional
> testing/comments welcome.
>
> Thanks,
> Pamela


Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-repoze-profile/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile 7 Jan 2016 21:35:29 -0000 1.12
+++ Makefile 28 Feb 2019 18:31:10 -0000
@@ -2,10 +2,9 @@

COMMENT = aggregate profiling for wsgi requests

-MODPY_EGG_VERSION = 1.4
+MODPY_EGG_VERSION = 2.3
DISTNAME = repoze.profile-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:S/./-/}
-REVISION = 2

CATEGORIES = www devel

@@ -14,16 +13,30 @@ PERMIT_PACKAGE_CDROM = Yes

MODPY_PI = Yes

-RUN_DEPENDS = devel/py-pyprof2calltree
-TEST_DEPENDS = ${RUN_DEPENDS}
-
MODULES = lang/python

MODPY_SETUPTOOLS = Yes

+FLAVORS = python3
+FLAVOR ?=
+
+BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
+
+.if !${FLAVOR:Mpython3}
+RUN_DEPENDS += devel/py-pyprof2calltree
+TEST_DEPENDS += ${RUN_DEPENDS}
+.endif
+
+DOCSRC = ${WRKSRC}/docs
+
+MAKE_ENV += PYTHONPATH=${WRKSRC} \
+ SPHINXBUILD=${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX}
+
+post-build:
+ cd ${DOCSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} man
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-repoze-profile
- ${INSTALL_DATA} ${WRKSRC}/README.txt \
- ${PREFIX}/share/doc/py-repoze-profile
+ ${INSTALL_MAN} ${DOCSRC}/_build/man/repozeprofile.1 \
+ ${PREFIX}/man/man1/repozeprofile${MODPY_BIN_SUFFIX}.1

.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/py-repoze-profile/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 18 Jan 2015 03:15:49 -0000 1.4
+++ distinfo 28 Feb 2019 18:31:10 -0000
@@ -1,2 +1,2 @@
-SHA256 (repoze.profile-1.4.tar.gz) = vkWjQw2zpvPXNzKvfAF/L4DJqyFgvrbEl2PMJskRTVE=
-SIZE (repoze.profile-1.4.tar.gz) = 136458
+SHA256 (repoze.profile-2.3.tar.gz) = oT4BpA+HgNTERXWBWb4ZG70U9FBAxJiI+yM1/v/9W44=
+SIZE (repoze.profile-2.3.tar.gz) = 141341
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/py-repoze-profile/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 22 Apr 2012 09:21:18 -0000 1.2
+++ pkg/PLIST 28 Feb 2019 18:31:10 -0000
@@ -1,4 +1,4 @@
-@comment $OpenBSD: PLIST,v 1.2 2012/04/22 09:21:18 jasper Exp $
+@comment $OpenBSD: PLIST,v$
lib/python${MODPY_VERSION}/site-packages/repoze/
lib/python${MODPY_VERSION}/site-packages/repoze.profile-${MODPY_EGG_VERSION}-py${MODPY_VERSION}-nspkg.pth
lib/python${MODPY_VERSION}/site-packages/repoze.profile-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
@@ -12,13 +12,15 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/repoze.profile-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/repoze/profile/
lib/python${MODPY_VERSION}/site-packages/repoze/profile/__init__.py
-lib/python${MODPY_VERSION}/site-packages/repoze/profile/__init__.pyc
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}/
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}decorator.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}profiler.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/${MODPY_PYCACHE}tests.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/repoze/profile/compat.py
-lib/python${MODPY_VERSION}/site-packages/repoze/profile/compat.pyc
+lib/python${MODPY_VERSION}/site-packages/repoze/profile/decorator.py
lib/python${MODPY_VERSION}/site-packages/repoze/profile/profiler.html
lib/python${MODPY_VERSION}/site-packages/repoze/profile/profiler.py
-lib/python${MODPY_VERSION}/site-packages/repoze/profile/profiler.pyc
lib/python${MODPY_VERSION}/site-packages/repoze/profile/tests.py
-lib/python${MODPY_VERSION}/site-packages/repoze/profile/tests.pyc
-share/doc/${MODPY_PY_PREFIX}repoze-profile/
-share/doc/${MODPY_PY_PREFIX}repoze-profile/README.txt
+@man man/man1/repozeprofile${MODPY_BIN_SUFFIX}.1

No comments:

Post a Comment