On 2022/12/28 21:58, Volker Schlecht wrote:
>
> > Your BUILD_DEPENDS line looks off with the commented backslash.
>
> Ugh. Yes, a leftover from me building it with i3-gaps installed and running
> instead of i3. Fix attached.
>
> > Also, in your post-install, the rm shouldn't be needed if you can override the installation directory
> > with FAKE_FLAGS so that it'll be installed into the correct location right away.
> As far as I can tell:
>
> https://github.com/polybar/polybar/blob/edf37385cb2e0e4d3c848d188473e48df618ed1a/doc/CMakeLists.txt#L64
>
> This installs the example config into ${CMAKE_INSTALL_DOCDIR}/examples.
> Since I don't want to override CMAKE_INSTALL_DOCDIR, I figured I could
> either patch doc/CMakeLists.txt or do a bit of post-install juggling.
>
> Is there a way to handle this with FAKE_FLAGS?
Not usually for cmake ports. For simplicity I would probably just mv the
directory post-install. How about this? Also shortens the existing long
line while there, and @samples into /etc/polybar (see "Polybar now ships
a default config that is installed to `/etc/polybar/config.ini`" in the
3.6.0 changelog entry)
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/polybar/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- Makefile 13 Nov 2022 15:30:23 -0000 1.25
+++ Makefile 3 Jan 2023 12:35:38 -0000
@@ -1,8 +1,7 @@
COMMENT = fast and easy-to-use status bar
-V = 3.5.7
+V = 3.6.3
DISTNAME = polybar-$V
CATEGORIES = x11
-REVISION = 3
HOMEPAGE = https://polybar.github.io/
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
@@ -13,7 +12,7 @@ PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} lib/inotify/inotify
WANTLIB += c cairo curl fontconfig freetype intl m mpdclient
WANTLIB += pulse xcb xcb-composite xcb-cursor xcb-ewmh xcb-icccm
-WANTLIB += xcb-image xcb-randr xcb-util xcb-xkb xcb-xrm z jsoncpp
+WANTLIB += xcb-image xcb-randr xcb-util xcb-xkb xcb-xrm z jsoncpp uv
MASTER_SITES = https://github.com/polybar/polybar/releases/download/$V/
EXTRACT_SUFX = .tar.gz
@@ -35,28 +34,23 @@ LIB_DEPENDS = audio/libmpdclient \
devel/jsoncpp \
devel/libinotify \
graphics/cairo \
- net/curl
+ net/curl \
+ devel/libuv
RUN_DEPENDS = x11/py-xcbgen${MODPY_FLAVOR} \
fonts/siji \
fonts/unifont
-MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib -lintl -L${LOCALBASE}/lib/inotify -linotify -Wl,-rpath,${LOCALBASE}/lib/inotify
+MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib -lintl \
+ -L${LOCALBASE}/lib/inotify -linotify \
+ -Wl,-rpath,${LOCALBASE}/lib/inotify
CONFIGURE_ARGS = -DENABLE_CCACHE=OFF \
-DENABLE_I3=ON
NO_TEST = Yes
-WRKDIST = ${WRKDIR}/polybar-$V
-
-pre-configure:
- ${SUBST_CMD} ${WRKSRC}/cmake/02-opts.cmake \
- ${WRKSRC}/doc/CMakeLists.txt \
- ${WRKSRC}/lib/i3ipcpp/CMakeLists.txt
-
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/polybar
- ${INSTALL_DATA} ${WRKSRC}/config ${PREFIX}/share/examples/polybar
+ mv ${PREFIX}/share/doc/polybar/examples ${PREFIX}/share/examples/polybar
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/polybar/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo 27 Oct 2021 14:55:04 -0000 1.8
+++ distinfo 3 Jan 2023 12:35:38 -0000
@@ -1,2 +1,2 @@
-SHA256 (polybar-3.5.7.tar.gz) = cyEObXQhesuVOyU5kLQwI0O3tqeHD+HamhhV2qRBI9s=
-SIZE (polybar-3.5.7.tar.gz) = 411318
+SHA256 (polybar-3.6.3.tar.gz) = 8ldYVzVnII/HtvTUEVphF6hzicvMCUz2BdB5d1vpX6U=
+SIZE (polybar-3.6.3.tar.gz) = 439838
Index: patches/patch-cmake_03-libs_cmake
===================================================================
RCS file: patches/patch-cmake_03-libs_cmake
diff -N patches/patch-cmake_03-libs_cmake
--- patches/patch-cmake_03-libs_cmake 11 Mar 2022 20:16:56 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-Detect libinotify using pkg-config.
-
-Index: cmake/03-libs.cmake
---- cmake/03-libs.cmake.orig
-+++ cmake/03-libs.cmake
-@@ -25,6 +25,6 @@ querylib(WITH_XRM "pkg-config" xcb-xrm libs dirs)
- querylib(WITH_XCURSOR "pkg-config" xcb-cursor libs dirs)
-
- # FreeBSD Support
--if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
-+if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
- querylib(TRUE "pkg-config" libinotify libs dirs)
- endif()
Index: patches/patch-cmake_libpoly_cmake
===================================================================
RCS file: patches/patch-cmake_libpoly_cmake
diff -N patches/patch-cmake_libpoly_cmake
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-cmake_libpoly_cmake 3 Jan 2023 12:35:38 -0000
@@ -0,0 +1,13 @@
+Index: cmake/libpoly.cmake
+--- cmake/libpoly.cmake.orig
++++ cmake/libpoly.cmake
+@@ -100,7 +100,7 @@ endif()
+ find_package(Xcb ${XRANDR_VERSION} REQUIRED COMPONENTS RANDR)
+ find_package(Xcb REQUIRED COMPONENTS ${XORG_EXTENSIONS})
+
+-# FreeBSD Support
+-if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++# FreeBSD and OpenBSD Support
++if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+ find_package(LibInotify REQUIRED)
+ endif()
Index: patches/patch-include_modules_cpu_hpp
===================================================================
RCS file: /cvs/ports/x11/polybar/patches/patch-include_modules_cpu_hpp,v
retrieving revision 1.3
diff -u -p -r1.3 patch-include_modules_cpu_hpp
--- patches/patch-include_modules_cpu_hpp 11 Mar 2022 20:16:56 -0000 1.3
+++ patches/patch-include_modules_cpu_hpp 3 Jan 2023 12:35:38 -0000
@@ -1,7 +1,7 @@
Index: include/modules/cpu.hpp
--- include/modules/cpu.hpp.orig
+++ include/modules/cpu.hpp
-@@ -9,7 +9,13 @@ namespace modules {
+@@ -10,7 +10,13 @@ namespace modules {
struct cpu_time {
unsigned long long user;
unsigned long long nice;
Index: patches/patch-src_modules_cpu_cpp
===================================================================
RCS file: /cvs/ports/x11/polybar/patches/patch-src_modules_cpu_cpp,v
retrieving revision 1.3
diff -u -p -r1.3 patch-src_modules_cpu_cpp
--- patches/patch-src_modules_cpu_cpp 11 Mar 2022 20:16:56 -0000 1.3
+++ patches/patch-src_modules_cpu_cpp 3 Jan 2023 12:35:38 -0000
@@ -1,7 +1,7 @@
Index: src/modules/cpu.cpp
--- src/modules/cpu.cpp.orig
+++ src/modules/cpu.cpp
-@@ -1,6 +1,12 @@
+@@ -3,6 +3,12 @@
#include <fstream>
#include <istream>
@@ -11,10 +11,10 @@ Index: src/modules/cpu.cpp
+#include <sys/sysctl.h>
+
No comments:
Post a Comment