Update benchmarks/tsung to 1.8.0
Major Updates and Improvements, as per
https://github.com/processone/tsung/blob/develop/CHANGELOG.md

* Port changed to make use of GH_*
* Pre-compile python files to make portcheck happy

Builds and tests on amd64, the only failing testcase has been
failing since approximately forever.
Index: Makefile
===================================================================
RCS file: /cvs/ports/benchmarks/tsung/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile	18 Jan 2023 09:31:51 -0000	1.20
+++ Makefile	9 Apr 2023 15:55:08 -0000
@@ -1,18 +1,15 @@
 COMMENT=	multi-protocol distributed load testing tool
 
-V=		1.7.0
-DISTNAME=	tsung-$V
-REVISION=	5
+V=		1.8.0
+GH_ACCOUNT=	processone
+GH_PROJECT=	tsung
+GH_TAGNAME=	v${V}
 
 CATEGORIES=	benchmarks net
 
-HOMEPAGE=	http://tsung.erlang-projects.org/
-
 # GPLv2
 PERMIT_PACKAGE=	Yes
 
-MASTER_SITES=		http://tsung.erlang-projects.org/dist/
-
 MODULES=		lang/erlang \
 			lang/python
 MODERL_VERSION=		25
@@ -35,5 +32,11 @@ FAKE_FLAGS=		CONFDIR="${PREFIX}/share/ex
 			MAN_DIR="${PREFIX}/man/man1/"
 
 SUBST_VARS+=		V
+
+post-install:
+	${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
+		${PREFIX}/lib/tsung/tsung_plotter/__init__.py
+	${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
+		${PREFIX}/lib/tsung/tsung_plotter/tsung.py
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/benchmarks/tsung/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo	13 Feb 2020 20:32:48 -0000	1.3
+++ distinfo	9 Apr 2023 15:55:08 -0000
@@ -1,2 +1,2 @@
-SHA256 (tsung-1.7.0.tar.gz) = Y5REWGDvNPrt+MRtqVo8sga8FzARRbySAVEQf/os5So=
-SIZE (tsung-1.7.0.tar.gz) = 1572265
+SHA256 (tsung-1.8.0.tar.gz) = bFXfSLgvGF39YK5yceCbvCXGyLxWi7i/wM2wVtd8OJk=
+SIZE (tsung-1.8.0.tar.gz) = 972168
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/benchmarks/tsung/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST	11 Mar 2022 18:21:42 -0000	1.5
+++ pkg/PLIST	9 Apr 2023 15:55:08 -0000
@@ -178,6 +178,7 @@ lib/tsung/tsung_controller-${V}/ebin/ts_
 lib/tsung/tsung_controller-${V}/ebin/ts_file_server.beam
 lib/tsung/tsung_controller-${V}/ebin/ts_interaction_server.beam
 lib/tsung/tsung_controller-${V}/ebin/ts_job_notify.beam
+lib/tsung/tsung_controller-${V}/ebin/ts_local_file_server.beam
 lib/tsung/tsung_controller-${V}/ebin/ts_match_logger.beam
 lib/tsung/tsung_controller-${V}/ebin/ts_mon.beam
 lib/tsung/tsung_controller-${V}/ebin/ts_msg_server.beam
@@ -236,6 +237,7 @@ lib/tsung/tsung_controller-${V}/src/ts_c
 lib/tsung/tsung_controller-${V}/src/ts_file_server.erl
 lib/tsung/tsung_controller-${V}/src/ts_interaction_server.erl
 lib/tsung/tsung_controller-${V}/src/ts_job_notify.erl
+lib/tsung/tsung_controller-${V}/src/ts_local_file_server.erl
 lib/tsung/tsung_controller-${V}/src/ts_match_logger.erl
 lib/tsung/tsung_controller-${V}/src/ts_mon.erl
 lib/tsung/tsung_controller-${V}/src/ts_msg_server.erl
@@ -252,6 +254,9 @@ lib/tsung/tsung_controller-${V}/src/ts_w
 lib/tsung/tsung_controller-${V}/src/tsung_controller.erl
 lib/tsung/tsung_plotter/
 lib/tsung/tsung_plotter/__init__.py
+${MODPY_COMMENT}lib/tsung/tsung_plotter/${MODPY_PYCACHE}/
+lib/tsung/tsung_plotter/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/tsung/tsung_plotter/${MODPY_PYCACHE}tsung.${MODPY_PYC_MAGIC_TAG}pyc
 lib/tsung/tsung_plotter/tsung.py
 lib/tsung/tsung_recorder-${V}/
 lib/tsung/tsung_recorder-${V}/ebin/

Reply via email to