diff options
author | Pau Amma <pauamma@gundo.com> | 2023-07-31 08:10:13 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2023-08-02 06:30:06 +0000 |
commit | 890f5238e3ac273554880ac8fdd9cfcc2e786882 (patch) | |
tree | 63b053e0057265ce2437ab1a801018c1d8e3f404 | |
parent | ccf0bd9d54aab8041ccec817c156a1d20a0dbbbe (diff) | |
download | ports-890f5238e3ac273554880ac8fdd9cfcc2e786882.tar.gz ports-890f5238e3ac273554880ac8fdd9cfcc2e786882.zip |
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)
-rw-r--r-- | x11/workrave/Makefile | 8 | ||||
-rw-r--r-- | 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 |