Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2012 21:39:49 GMT
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173340: [patch] x11-wm/xfce4: add optional dependency to xfce4-power-manager
Message-ID:  <201211032139.qA3LdnRC005274@red.freebsd.org>
Resent-Message-ID: <201211032140.qA3Le1du011826@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173340
>Category:       ports
>Synopsis:       [patch] x11-wm/xfce4: add optional dependency to xfce4-power-manager
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 03 21:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     David Demelier
>Release:        9.1-RC2
>Organization:
>Environment:
FreeBSD Melon.malikania.fr 9.1-RC2 FreeBSD 9.1-RC2 #2: Thu Oct 25 14:59:30 CEST 2012     root@Melon.malikania.fr:/usr/obj/usr/src/sys/Melon  amd64

>Description:
Xfce4 installed on a laptop may use xfce4-power-manager to display and manage some ACPI stuff such as batteries, CPU ...

This patch just add a new option that make x11-wm/xfce4 depend on sysutils/xfce4-power-manager thus user won't need to install by hand the port and will not remove the leaf package.
>How-To-Repeat:

>Fix:
--- xfce4.diff begins here ---
--- Makefile.orig	2012-11-03 22:27:02.000000000 +0100
+++ Makefile	2012-11-03 22:28:38.000000000 +0100
@@ -15,13 +15,14 @@
 MAINTAINER=	xfce@FreeBSD.org
 COMMENT=	The "meta-port" for the Xfce 4 desktop environment
 
-OPTIONS_DEFINE=	ICONS ORAGE MOUSEPAD TERMINAL APPFINDER MIXER PRINT SQUEEZE GDM NOTIFY
-OPTIONS_DEFAULT=	ICONS ORAGE MOUSEPAD TERMINAL APPFINDER SQUEEZE NOTIFY
+OPTIONS_DEFINE=	ICONS ORAGE MOUSEPAD TERMINAL APPFINDER MIXER PRINT SQUEEZE GDM NOTIFY POWERMANAGER
+OPTIONS_DEFAULT=	ICONS ORAGE MOUSEPAD TERMINAL APPFINDER SQUEEZE NOTIFY POWERMANAGER
 ORAGE_DESC=	Install the Xfce calendar application
 MOUSEPAD_DESC=	Install the Xfce text editor
 TERMINAL_DESC=	Install the Xfce terminal application
 APPFINDER_DESC=	Install the Xfce application finder
 SQUEEZE_DESC=	Install the Xfce archiver application
+POWERMANAGER_DESC= Install the Xfce power manager
 
 RUN_DEPENDS=	xfwm4:${PORTSDIR}/x11-wm/xfce4-wm \
 		xfce4-session:${PORTSDIR}/x11-wm/xfce4-session \
@@ -82,6 +83,10 @@
 RUN_DEPENDS+=	xfce4-notifyd-config:${PORTSDIR}/deskutils/xfce4-notifyd
 .endif
 
+.if ${PORT_OPTIONS:MPOWERMANAGER}
+RUN_DEPENDS+=	xfce4-power-manager:${PORTSDIR}/sysutils/xfce4-power-manager
+.endif
+
 do-install:	# empty
 
 post-install:
--- xfce4.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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