From 9a472268a6d1bec396f2987a3fb52ef29463ac32 Mon Sep 17 00:00:00 2001 From: ormorph Date: Mon, 3 Jun 2024 20:29:15 +0300 Subject: Added support for loading tdm unit to systemd Solving problem #380 Signed-off-by: ormorph (cherry picked from commit f2b8d2a65ae8b42de5688c8ae8bc52dc8095b207) --- trinity-base/tdm/tdm-14.1.1.ebuild | 4 +++- trinity-base/tdm/tdm-14.1.2.ebuild | 4 +++- trinity-base/tdm/tdm-9999.ebuild | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/trinity-base/tdm/tdm-14.1.1.ebuild b/trinity-base/tdm/tdm-14.1.1.ebuild index 4e6c44f0..0b2b794a 100644 --- a/trinity-base/tdm/tdm-14.1.1.ebuild +++ b/trinity-base/tdm/tdm-14.1.1.ebuild @@ -12,7 +12,7 @@ DESCRIPTION="Trinity login manager, similar to XDM and GDM" if [[ ${PV} != *9999* ]] ; then KEYWORDS="~amd64 ~arm64 ~x86" fi -IUSE="+hwlib pam sak +svg xcomposite xdmcp +xrandr" +IUSE="+hwlib pam sak systemd +svg xcomposite xdmcp +xrandr" DEPEND=" sys-apps/dbus @@ -20,6 +20,7 @@ DEPEND=" ~trinity-base/tdelibs-${PV}[xrandr?] x11-libs/libXtst pam? ( trinity-base/tdebase-pam ) + systemd? ( sys-apps/systemd ) svg? ( media-libs/libart_lgpl ) xcomposite? ( x11-libs/libXcomposite ) xdmcp? ( x11-libs/libXdmcp ) @@ -41,6 +42,7 @@ src_prepare() { src_configure() { local mycmakeargs=( + -DBUILD_TDM_SYSTEMD_UNIT_FILE="$(usex systemd)" -DWITH_XTEST=ON -DWITH_SHADOW=ON -DWITH_LIBART="$(usex svg)" diff --git a/trinity-base/tdm/tdm-14.1.2.ebuild b/trinity-base/tdm/tdm-14.1.2.ebuild index 8e37f63f..ac50b56e 100644 --- a/trinity-base/tdm/tdm-14.1.2.ebuild +++ b/trinity-base/tdm/tdm-14.1.2.ebuild @@ -12,7 +12,7 @@ DESCRIPTION="Trinity login manager, similar to XDM and GDM" if [[ ${PV} != *9999* ]] ; then KEYWORDS="~amd64 ~arm64 ~x86" fi -IUSE="+hwlib pam sak +svg xcomposite xdmcp +xrandr" +IUSE="+hwlib pam sak systemd +svg xcomposite xdmcp +xrandr" DEPEND=" sys-apps/dbus @@ -20,6 +20,7 @@ DEPEND=" ~trinity-base/tdelibs-${PV}[xrandr?] x11-libs/libXtst pam? ( trinity-base/tdebase-pam ) + systemd? ( sys-apps/systemd ) svg? ( media-libs/libart_lgpl ) xcomposite? ( x11-libs/libXcomposite ) xdmcp? ( x11-libs/libXdmcp ) @@ -36,6 +37,7 @@ pkg_setup() { src_configure() { local mycmakeargs=( + -DBUILD_TDM_SYSTEMD_UNIT_FILE="$(usex systemd)" -DWITH_XTEST=ON -DWITH_SHADOW=ON -DWITH_LIBART="$(usex svg)" diff --git a/trinity-base/tdm/tdm-9999.ebuild b/trinity-base/tdm/tdm-9999.ebuild index eaee9ed7..23712eb9 100644 --- a/trinity-base/tdm/tdm-9999.ebuild +++ b/trinity-base/tdm/tdm-9999.ebuild @@ -13,7 +13,7 @@ DESCRIPTION="Trinity login manager, similar to XDM and GDM" if [[ ${PV} != *9999* ]] ; then KEYWORDS="~amd64 ~arm64 ~x86" fi -IUSE="+hwlib pam sak +svg xcomposite xdmcp +xrandr" +IUSE="+hwlib pam sak systemd +svg xcomposite xdmcp +xrandr" DEPEND=" sys-apps/dbus @@ -21,6 +21,7 @@ DEPEND=" ~trinity-base/tdelibs-${PV}[xrandr?] x11-libs/libXtst pam? ( trinity-base/tdebase-pam ) + systemd? ( sys-apps/systemd ) svg? ( media-libs/libart_lgpl ) xcomposite? ( x11-libs/libXcomposite ) xdmcp? ( x11-libs/libXdmcp ) @@ -37,6 +38,7 @@ pkg_setup() { src_configure() { local mycmakeargs=( + -DBUILD_TDM_SYSTEMD_UNIT_FILE="$(usex systemd)" -DWITH_XTEST=ON -DWITH_SHADOW=ON -DWITH_LIBART="$(usex svg)" -- cgit v1.2.1