Had to look into libevent wrt. consumers and cmake, saw it would find python and thus noticed we ship a .py script with env(1) shebang...
No idea about the script, but if shipped the shebang should be right. Feeback? OK? Index: Makefile =================================================================== RCS file: /cvs/ports/devel/libevent2/Makefile,v retrieving revision 1.21 diff -u -p -r1.21 Makefile --- Makefile 22 Mar 2022 17:08:26 -0000 1.21 +++ Makefile 10 Mar 2023 14:17:51 -0000 @@ -5,6 +5,7 @@ DISTNAME= libevent-$V-stable PKGNAME= libevent-$V CATEGORIES= devel HOMEPAGE= https://libevent.org/ +REVISION= 0 SHARED_LIBS+= event_core 2.1 # 7.1 SHARED_LIBS+= event_extra 1.0 # 7.1 @@ -17,6 +18,10 @@ PERMIT_PACKAGE= Yes MASTER_SITES= https://github.com/libevent/libevent/releases/download/release-$V-stable/ WANTLIB= crypto pthread ssl + +MODULES= lang/python +MODPY_RUNDEP= No +MODPY_ADJ_FILES=event_rpcgen.py CONFIGURE_STYLE=gnu