git: 2a0f51606710 - main - x11-wm/pekwm: Update to 0.2.0

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Mon, 08 Nov 2021 15:26:30 UTC
The branch main has been updated by olivier:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2a0f51606710318522807cbaea5e2296f52a0895

commit 2a0f51606710318522807cbaea5e2296f52a0895
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2021-11-08 15:21:46 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2021-11-08 15:26:23 +0000

    x11-wm/pekwm: Update to 0.2.0
    
    PR:             259674
    Reported by:    Natacha Porté (maintainer)
---
 x11-wm/pekwm/Makefile                              | 20 +++----
 x11-wm/pekwm/distinfo                              |  6 +-
 .../files/patch-data__scripts__pekwm_screenshot.sh | 66 ----------------------
 x11-wm/pekwm/files/patch-doc__CMakeLists.txt       |  8 +++
 x11-wm/pekwm/pkg-plist                             | 27 ++++++++-
 5 files changed, 44 insertions(+), 83 deletions(-)

diff --git a/x11-wm/pekwm/Makefile b/x11-wm/pekwm/Makefile
index b91242d823bf..066cbe8159dd 100644
--- a/x11-wm/pekwm/Makefile
+++ b/x11-wm/pekwm/Makefile
@@ -2,31 +2,25 @@
 
 PORTNAME=	pekwm
 DISTVERSIONPREFIX=	release-
-DISTVERSION=	0.1.17
-PORTREVISION=	5
+DISTVERSION=	0.2.0
 PORTEPOCH=	1
 CATEGORIES=	x11-wm
 
 MAINTAINER=	natbsd@instinctive.eu
-COMMENT=	Light, unobtrusive, and configurable window manager
+COMMENT=	Light, Unobtrusive, and configurable windowmanager
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libpng.so:graphics/png
+LIB_DEPENDS=	libpng.so:graphics/png \
+		libfreetype.so:print/freetype2
+RUN_DEPENDS=	gsed:textproc/gsed \
+		xprop:x11/xprop
 
-USES=		autoreconf compiler gmake iconv:wchar_t jpeg \
+USES=		cmake compiler jpeg \
 		localbase pkgconfig tar:bzip2 xorg
 USE_XORG=	xft xpm x11 sm ice xext xinerama xrandr
 USE_GITHUB=	yes
 GH_ACCOUNT=	pekdon
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-shape --enable-xinerama --enable-xrandr \
-		--enable-xft --enable-image-xpm --enable-image-jpeg \
-		--enable-image-png --disable-debug \
-		--disable-pedantic
-CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
-CXXFLAGS_clang=	-Wno-c++11-narrowing
-LDFLAGS+=	${ICONV_LIB}
 
 .include <bsd.port.mk>
diff --git a/x11-wm/pekwm/distinfo b/x11-wm/pekwm/distinfo
index c0dd1618f913..e257cbb09fda 100644
--- a/x11-wm/pekwm/distinfo
+++ b/x11-wm/pekwm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1585563189
-SHA256 (pekdon-pekwm-release-0.1.17_GH0.tar.gz) = 7b5a07a377494588e95d68b87a3f4d823f813cb29053618bfad691a00cd8afb6
-SIZE (pekdon-pekwm-release-0.1.17_GH0.tar.gz) = 429100
+TIMESTAMP = 1636193572
+SHA256 (pekdon-pekwm-release-0.2.0_GH0.tar.gz) = 143df0021665a7a1e06c22540f45ca3392235cb3dd2e0be70f9e00fd988fc9f9
+SIZE (pekdon-pekwm-release-0.2.0_GH0.tar.gz) = 941616
diff --git a/x11-wm/pekwm/files/patch-data__scripts__pekwm_screenshot.sh b/x11-wm/pekwm/files/patch-data__scripts__pekwm_screenshot.sh
deleted file mode 100644
index 7e4d4a0838ae..000000000000
--- a/x11-wm/pekwm/files/patch-data__scripts__pekwm_screenshot.sh
+++ /dev/null
@@ -1,66 +0,0 @@
---- data/scripts/pekwm_screenshot.sh.orig	2013-05-24 19:24:23 UTC
-+++ data/scripts/pekwm_screenshot.sh
-@@ -1,30 +1,30 @@
--#!/usr/bin/env bash
-+#!/bin/sh
- #
- # Copyright © 2013 the pekwm development team
- #
- 
--function screenshot_scrot
-+screenshot_scrot()
- {
-     scrot -z "$1"
- }
- 
--function screenshot_xwd_netpbm
-+screenshot_xwd_netpbm()
- {
-     xwd -root | xwdtopnm 2>/dev/null | pnmtopng > "$1"
- }
- 
--function screenshot_imagemagick
-+screenshot_imagemagick()
- {
-     import -window root "$1"
- }
- 
--function is_in_path
-+is_in_path()
- {
-     which $1 >/dev/null 2>&1
-     return $?
- }
- 
--function detect_command
-+detect_command()
- {
-     is_in_path "scrot"
-     if test $? -eq 0; then
-@@ -45,7 +45,7 @@ function detect_command
-     fi
- }
- 
--function usage
-+usage()
- {
-     echo "usage: pekwm_screenshot.sh [-c scrot|netpbm|magick] [-d delay] [-o output.png]"
-     echo ""
-@@ -61,7 +61,7 @@ function usage
-     exit 0
- }
- 
--function usage_command
-+usage_command()
- {
-     echo "Unable to find any supported commands for taking screenshots"
-     echo ""
-@@ -74,7 +74,7 @@ function usage_command
-     exit 1
- }
- 
--function main
-+main()
- {
-     # Initialize for strict mode
-     command=""
diff --git a/x11-wm/pekwm/files/patch-doc__CMakeLists.txt b/x11-wm/pekwm/files/patch-doc__CMakeLists.txt
new file mode 100644
index 000000000000..10f85ed99ba8
--- /dev/null
+++ b/x11-wm/pekwm/files/patch-doc__CMakeLists.txt
@@ -0,0 +1,8 @@
+--- doc/CMakeLists.txt.orig	2021-11-06 11:24:56.636609000 +0100
++++ doc/CMakeLists.txt	2021-11-06 11:25:10.749968000 +0100
+@@ -13,4 +13,4 @@
+
+ install(FILES
+   ${manpages}
+-  DESTINATION share/man/man1)
++  DESTINATION man/man1)
diff --git a/x11-wm/pekwm/pkg-plist b/x11-wm/pekwm/pkg-plist
index 7f5e2439c855..5455f86cda4e 100644
--- a/x11-wm/pekwm/pkg-plist
+++ b/x11-wm/pekwm/pkg-plist
@@ -1,15 +1,25 @@
-%%DATADIR%%/scripts/pekwm_screenshot.sh
 %%DATADIR%%/scripts/pekwm_themeset.sh
 %%DATADIR%%/scripts/pekwm_ws_menu.sh
 %%DATADIR%%/themes/default-plain/theme
 %%DATADIR%%/themes/default/arrow.png
 %%DATADIR%%/themes/default/arrow_focus.png
+%%DATADIR%%/themes/default/backgrounds/pekwm_generated-1920x1080.png
+%%DATADIR%%/themes/default/backgrounds/pekwm_generated-2560x1440.png
 %%DATADIR%%/themes/default/bottom-border.png
 %%DATADIR%%/themes/default/bottom-border_unfocus.png
 %%DATADIR%%/themes/default/bottom-left.png
 %%DATADIR%%/themes/default/bottom-left_unfocus.png
 %%DATADIR%%/themes/default/bottom-right.png
 %%DATADIR%%/themes/default/bottom-right_unfocus.png
+%%DATADIR%%/themes/default/button-close.png
+%%DATADIR%%/themes/default/button-close_hover.png
+%%DATADIR%%/themes/default/button-close_press.png
+%%DATADIR%%/themes/default/button-max.png
+%%DATADIR%%/themes/default/button-max_hover.png
+%%DATADIR%%/themes/default/button-max_press.png
+%%DATADIR%%/themes/default/button-min.png
+%%DATADIR%%/themes/default/button-min_hover.png
+%%DATADIR%%/themes/default/button-min_press.png
 %%DATADIR%%/themes/default/button.png
 %%DATADIR%%/themes/default/button_hover.png
 %%DATADIR%%/themes/default/button_press.png
@@ -21,6 +31,7 @@
 %%DATADIR%%/themes/default/menu-bottom.png
 %%DATADIR%%/themes/default/menu-bottom_unfocus.png
 %%DATADIR%%/themes/default/menuline.png
+%%DATADIR%%/themes/default/panel.png
 %%DATADIR%%/themes/default/right-border.png
 %%DATADIR%%/themes/default/right-border_unfocus.png
 %%DATADIR%%/themes/default/tab-separator.png
@@ -32,9 +43,17 @@
 %%DATADIR%%/themes/default/top-border_unfocus.png
 %%DATADIR%%/themes/default/top-left.png
 %%DATADIR%%/themes/default/top-left_unfocus.png
+%%DATADIR%%/themes/default/top-right-no-buttons.png
 %%DATADIR%%/themes/default/top-right.png
 %%DATADIR%%/themes/default/top-right_unfocus.png
 bin/pekwm
+bin/pekwm_bg
+bin/pekwm_ctrl
+bin/pekwm_dialog
+bin/pekwm_panel
+bin/pekwm_screenshot
+bin/pekwm_theme
+bin/pekwm_wm
 %%ETCDIR%%/autoproperties
 %%ETCDIR%%/autoproperties_typerules
 %%ETCDIR%%/config
@@ -45,6 +64,12 @@ bin/pekwm
 %%ETCDIR%%/mouse_click
 %%ETCDIR%%/mouse_sloppy
 %%ETCDIR%%/mouse_system
+%%ETCDIR%%/panel
 %%ETCDIR%%/start
 %%ETCDIR%%/vars
 man/man1/pekwm.1.gz
+man/man1/pekwm_bg.1.gz
+man/man1/pekwm_dialog.1.gz
+man/man1/pekwm_panel.1.gz
+man/man1/pekwm_screenshot.1.gz
+man/man1/pekwm_theme.1.gz