Live ebuilds: Fix sudo support for Konsole.

Signed-off-by: Chris <xchrisx@uber.space>
pull/41/head
Chris 5 years ago committed by TDE Gitea
parent 5a52291bbe
commit 5fdae56beb

@ -9,16 +9,20 @@ inherit trinity-meta-2
DESCRIPTION="X terminal for use with Trinity." DESCRIPTION="X terminal for use with Trinity."
IUSE="sudo"
DEPEND="x11-libs/libX11 DEPEND="x11-libs/libX11
x11-libs/libXrender" x11-libs/libXrender"
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
sudo? ( app-admin/sudo )
x11-apps/bdftopcf x11-apps/bdftopcf
=trinity-base/kcontrol-${PV}" =trinity-base/kcontrol-${PV}"
src_configure() { src_configure() {
mycmakeargs=( mycmakeargs=(
-DWITH_XRENDER=ON -DWITH_XRENDER=ON
-DWITH_SUDO_KONSOLE_SUPER_USER_COMMAND="$(usex sudo)"
) )
trinity-meta-2_src_configure trinity-meta-2_src_configure

@ -16,6 +16,7 @@ RDEPEND="${DEPEND}"
src_configure () { src_configure () {
mycmakeargs=( mycmakeargs=(
-DWITH_SUDO_TDESU_BACKEND="$(usex sudo)" -DWITH_SUDO_TDESU_BACKEND="$(usex sudo)"
-DWITH_SUDO_KONSOLE_SUPER_USER_COMMAND="$(usex sudo)"
) )
trinity-meta-2_src_configure trinity-meta-2_src_configure
@ -27,8 +28,7 @@ pkg_postinst () {
einfo "It can be overriden on a user-level by adding:" einfo "It can be overriden on a user-level by adding:"
einfo " [super-user-command]" einfo " [super-user-command]"
einfo " super-user-command=su" einfo " super-user-command=su"
einfo "to the kdeglobal config file which is should be usually" einfo "to the kdeglobals config file which is should be usually"
einfo "located in the ~/.trinity/share/config/ directory." einfo "located in the ~/.trinity/share/config/ directory."
fi fi
} }

Loading…
Cancel
Save