git: 5403eaa0048e - main - x11-wm/yeahwm: provide copyright and licensing terms for the port

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 10 Sep 2024 07:48:58 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5403eaa0048ed32ced5c4c769bff96ba84b82578

commit 5403eaa0048ed32ced5c4c769bff96ba84b82578
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-09-10 07:47:48 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-09-10 07:47:48 +0000

    x11-wm/yeahwm: provide copyright and licensing terms for the port
    
    Obtained from `x11-wm/evilwm' with minor changes and improvements.
    
    PR:     279118
---
 x11-wm/yeahwm/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/x11-wm/yeahwm/Makefile b/x11-wm/yeahwm/Makefile
index eb5766fa763f..f6d835e9d38e 100644
--- a/x11-wm/yeahwm/Makefile
+++ b/x11-wm/yeahwm/Makefile
@@ -9,6 +9,11 @@ MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Minimal X11 window manager with BeOS-like tabbed titles
 WWW=		http://phrat.de/
 
+LICENSE=	AEWM
+LICENSE_NAME=	AEWM License
+LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
 USES=		xorg
 USE_XORG=	x11 xext xinerama
 MAKE_ARGS=	CC="${CC}" XROOT="${LOCALBASE}"
@@ -23,6 +28,10 @@ MOTIF_DESC=	Use Motif hints to find if window should be borderless
 
 MOTIF_BUILD_DEPENDS=	${LOCALBASE}/include/Xm/MwmUtil.h:x11-toolkits/open-motif
 
+post-extract:
+	@${SED} -n '/^Copyright (c)/,$$p' \
+		${WRKSRC}/README.evilwm > ${LICENSE_FILE}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's, -Wall  -Os,-fcommon,' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e '/DEF_FONT/s,variable,fixed,' ${WRKSRC}/config.h