From nobody Sun Jan 29 18:26:14 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P4fs30D1Mz3bTMS; Sun, 29 Jan 2023 18:26:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P4fs24DZQz4b8w; Sun, 29 Jan 2023 18:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675016774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3mIhGdwDgzIHvxbFyv0HD9wjEb/UK4FK2qAOxm7FMQ=; b=cSdWR4jHHL9NUreZkPWSVf++S6VXN2zFMMktoC/wa9SmG/auzdPkL6zK9W8EGXIV3Ek+07 iS9YZUwIGX7HgTx1WQKLtE+aeapprXsxF4/HltVl9QAN+pcXFQIt+VlObVys1KaWwYkKC5 gNFMzybiSd0aYOTXN4gZZm105Y2URR0rGso7D6R6l6OMnsN7UxxKRHEQ868bNnjuQOMOHV HAYJIPG56+acHneUPRpCQaxNWmEQXsDtrIdltShklRYdKtQiunncn8LyKuudqbB13zgags L141AYlcnnerwXZhpmu/7kYG8hDp1yQIuokXF9GD8TbwbIca/ldc2iWXh3K46Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675016774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3mIhGdwDgzIHvxbFyv0HD9wjEb/UK4FK2qAOxm7FMQ=; b=HVbNyPFk9bVCO6KH63Af6c1x5abUVOvnkRQiVCUI41x3FkB0IHHmrNtws7UJdrF37sGw79 VivWVoChTdUljmonzR5Yx1+FSrrDSETN2KkRTYvf2e9sj/xyxYkaHjg/bGfOnxdeXv6gk5 wpg60uYLnsZsxjN+MhLvtaRGCerUxCmtnLRF/pPFQJBAj7FgrjFE8cJ/2Jay0M98XOo1++ Yw0dB78Eyy5NfQiIzoD38HuIVENuhZ1Ed9Q4rZWvLlNGZ3hVXJwoEPvSqmbPmpxnsS98H3 ZNOzBawfpEYrlDL+SnKOLYda8Y2z/oC1COkKFZiDGfh9BMOHs081qGCsUe7Sfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675016774; a=rsa-sha256; cv=none; b=Dcte7/ypoP8Y7og9XgVjMzyV4wRlez74VIwVqGwzbrgkK9KiE5hYoaoTIx+TB3sw+nkpxT 9/4AOx5u3U39wTl1VMDrQ990oEsuMK3hMesM3fnwlgXsF6RCweSj8qc4zpYdZBDfpTGRuF lYnoi1Xej841kSnR+mAhVM+cz6TM+jYguiLoQKynqW9E3pJfjU3ObrkIRW2i9DgwlsztX7 xbTmQZiUoNkArjcaFaHJfKeHpVzVkLQ7zqyaqI+i+DsVFaxwut15QW1AtyCs+54HECWCOv SAAoGK5bDkl7nN5pATWhmJwdS6r11WRO0Wql2LTT0Ixgr8wjefv6caWI5enTtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P4fs23H4pzf1s; Sun, 29 Jan 2023 18:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30TIQEsU050184; Sun, 29 Jan 2023 18:26:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30TIQERH050183; Sun, 29 Jan 2023 18:26:14 GMT (envelope-from git) Date: Sun, 29 Jan 2023 18:26:14 GMT Message-Id: <202301291826.30TIQERH050183@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: ab65e95cc8fd - main - x11/workrave: add flavor for XFCE support List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ab65e95cc8fd0ba5d1ebbe1b5b7e7fd905ec683e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab65e95cc8fd0ba5d1ebbe1b5b7e7fd905ec683e commit ab65e95cc8fd0ba5d1ebbe1b5b7e7fd905ec683e Author: Pau Amma AuthorDate: 2023-01-29 17:36:41 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-01-29 18:21:42 +0000 x11/workrave: add flavor for XFCE support Deliberately not bumping PORTREVISION. PR: 269160 Reported by: pauamma@FreeBSD.org Reviewed by: cyberbotx@cyberbotx.com (maintainer) --- x11/workrave/Makefile | 28 +++++++++++++++++++++++----- x11/workrave/pkg-descr.xfce | 6 ++++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile index d5d3ea3cee79..25c83486b7b7 100644 --- a/x11/workrave/Makefile +++ b/x11/workrave/Makefile @@ -5,7 +5,7 @@ CATEGORIES= x11 MASTER_SITES= https://github.com/rcaelers/workrave/releases/download/v${PORTVERSION:S/./_/g}/ MAINTAINER= cyberbotx@cyberbotx.com -COMMENT= RSI prevention tool +COMMENT= RSI prevention tool (${FLAVOR} flavor) WWW= https://www.workrave.org/ LICENSE= GPLv3+ @@ -13,8 +13,24 @@ LICENSE= GPLv3+ LIB_DEPENDS= libgdome.so:textproc/gdome2 \ libharfbuzz.so:print/harfbuzz -USES= compiler:c++11-lang gmake gnome libtool localbase pkgconfig \ - xorg +FLAVORS= default xfce +FLAVOR?= ${FLAVORS:[1]} +xfce_PKGNAMESUFFIX= -xfce +xfce_DESCR= ${.CURDIR}/pkg-descr.xfce +xfce_CONFLICTS_INSTALL= workrave +default_CONFLICTS_INSTALL= workrave-xfce + +USES= compiler:c++11-lang desktop-file-utils gmake gnome libtool \ + localbase pkgconfig xorg +.if ${FLAVOR} == xfce +CATEGORIES+= xfce +USES+= xfce +USE_XFCE= libutil panel +# Easier than using *_SUB since there's no flavor helper for that. +PLIST_FILES= lib/xfce4/panel/plugins/libworkrave-plugin.a \ + lib/xfce4/panel/plugins/libworkrave-plugin.so \ + share/xfce4/panel/plugins/workrave-xfce-applet.desktop +.endif USE_CXXSTD= c++11 USE_GNOME= gdkpixbuf2 gtkmm30 intlhack intltool introspection:build USE_LDCONFIG= yes @@ -26,8 +42,10 @@ CONFIGURE_ARGS= --disable-gconf \ --disable-gsettings \ --disable-indicator \ --disable-mate \ - --disable-pulse \ - --disable-xfce + --disable-pulse +.if ${FLAVOR} != xfce +CONFIGURE_ARGS+= --disable-xfce +.endif INSTALL_TARGET= install-strip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} diff --git a/x11/workrave/pkg-descr.xfce b/x11/workrave/pkg-descr.xfce new file mode 100644 index 000000000000..219b7d5a54fe --- /dev/null +++ b/x11/workrave/pkg-descr.xfce @@ -0,0 +1,6 @@ +Workrave is a program that assists in the recovery and prevention of +Repetitive Strain Injury (RSI). The program frequently alerts you to +take micro-pauses, rest breaks and restricts you to your daily limit. +These can be customized and it stops the counter when you stop. + +This is the XFCE-enabled flavor.