Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 06:30:25 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 890f5238e3ac - main - x11/workrave: Add @sample to exercises list
Message-ID:  <202308020630.3726UP9B050935@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=890f5238e3ac273554880ac8fdd9cfcc2e786882

commit 890f5238e3ac273554880ac8fdd9cfcc2e786882
Author:     Pau Amma <pauamma@gundo.com>
AuthorDate: 2023-07-31 08:10:13 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2023-08-02 06:30:06 +0000

    x11/workrave: Add @sample to exercises list
    
    Upstream recommends editing exercises.xml to add or remove exercises, hence
    treat it like a config file.
    
    PR:             272821
    Reported by:    pauamma@gundo.com
    Approved by:    cyberbotx@cyberbotx.com (maintainer)
---
 x11/workrave/Makefile  | 8 +++++++-
 x11/workrave/pkg-plist | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile
index 5afcffcef212..2abd96a6cc2f 100644
--- a/x11/workrave/Makefile
+++ b/x11/workrave/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	workrave
 PORTVERSION=	1.10.50
 DISTVERSIONPREFIX=	v
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11
 MASTER_SITES=	https://github.com/rcaelers/workrave/releases/download/v${PORTVERSION:S/./_/g}/
 
@@ -71,4 +71,10 @@ GSTREAMER_CONFIGURE_ENABLE=	gstreamer
 NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	nls
 
+# Upstream recommends editing that file to add or remove exercises,
+# hence treat it like a config file.
+post-stage:
+	${MV} ${STAGEDIR}${DATADIR}/exercises/exercises.xml \
+		${STAGEDIR}${DATADIR}/exercises/exercises.xml.sample
+
 .include <bsd.port.mk>
diff --git a/x11/workrave/pkg-plist b/x11/workrave/pkg-plist
index e0bdac2e70f7..583293e1d3e2 100644
--- a/x11/workrave/pkg-plist
+++ b/x11/workrave/pkg-plist
@@ -93,7 +93,7 @@ share/sounds/workrave/subtle/soundtheme
 %%DATADIR%%/exercises/chair-pushup-2.png
 %%DATADIR%%/exercises/depth-focus-1.png
 %%DATADIR%%/exercises/depth-focus-2.png
-%%DATADIR%%/exercises/exercises.xml
+@sample %%DATADIR%%/exercises/exercises.xml.sample
 %%DATADIR%%/exercises/eye-darkness.png
 %%DATADIR%%/exercises/finger-stretch-1.png
 %%DATADIR%%/exercises/finger-stretch-2.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308020630.3726UP9B050935>