On 2022/11/03 06:43, Heppler, J. Scott wrote:
> I've found patches that implement py3-xdg for openbox startup.
> 
> https://gitlab.com/FreeBSD/freebsd-ports/-/tree/main/x11-wm/openbox
> 
> Debian' patch adds Python 3 while retaining python 2
> 
> https://sources.debian.org/src/openbox/3.6.1-10/debian/patches/python3.patch/
> 
> I could attempt the OpenBSD patch but my inclination is to not continue
> python 2 support.
> 
> 
> -- 
> J. Scott Heppler
> 

Does this work?

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/openbox/Makefile,v
retrieving revision 1.88
diff -u -p -r1.88 Makefile
--- Makefile    1 Apr 2022 19:09:43 -0000       1.88
+++ Makefile    3 Nov 2022 14:29:19 -0000
@@ -1,7 +1,7 @@
 COMMENT =      small, fast & usable window manager
 
 V =            3.6.1
-REVISION =     9
+REVISION =     10
 DISTNAME =     openbox-${V}
 SHARED_LIBS += obrender        12.0    # 32.0
 SHARED_LIBS += obt             1.1     # 2.2
@@ -27,9 +27,8 @@ WANTLIB += ${COMPILER_LIBCXX} Xdmcp jpeg
 MASTER_SITES = ${HOMEPAGE}dist/openbox/
 
 MODULES =      lang/python
-MODPY_VERSION =        ${MODPY_DEFAULT_VERSION_2}
 
-RUN_DEPENDS =  devel/py-xdg \
+RUN_DEPENDS =  devel/py-xdg${MODPY_FLAVOR} \
                devel/desktop-file-utils
 LIB_DEPENDS += devel/gettext,-runtime \
                devel/pango \
@@ -41,7 +40,7 @@ LIB_DEPENDS +=        devel/gettext,-runtime \
 FAKE_FLAGS =   sysconfdir="${PREFIX}/share/examples/openbox" \
                rcdir="${PREFIX}/share/examples/openbox"
 
-API_V =        ${V:R}
+API_V =                ${V:R}
 SUBST_VARS =   API_V
 
 USE_GMAKE =    Yes
@@ -55,5 +54,7 @@ CONFIGURE_ENV =       CPPFLAGS="-I${LOCALBASE}
 
 pre-configure:
        ${SUBST_CMD} ${WRKSRC}/data/autostart/autostart.in
+       2to3 --fix=all --no-diffs --nobackups --verbose --write \
+           ${WRKSRC}/data/autostart/openbox-xdg-autostart
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/openbox/pkg/PLIST,v
retrieving revision 1.31
diff -u -p -r1.31 PLIST
--- pkg/PLIST   11 Mar 2022 20:16:51 -0000      1.31
+++ pkg/PLIST   3 Nov 2022 14:29:19 -0000
@@ -29,10 +29,10 @@ include/openbox/${API_V}/obt/util.h
 include/openbox/${API_V}/obt/version.h
 include/openbox/${API_V}/obt/xml.h
 include/openbox/${API_V}/obt/xqueue.h
-lib/libobrender.a
+@static-lib lib/libobrender.a
 lib/libobrender.la
 @lib lib/libobrender.so.${LIBobrender_VERSION}
-lib/libobt.a
+@static-lib lib/libobt.a
 lib/libobt.la
 @lib lib/libobt.so.${LIBobt_VERSION}
 lib/pkgconfig/obrender-3.5.pc

Reply via email to