diff options
Diffstat (limited to 'app-misc/tmux/tmux-9999.ebuild')
-rw-r--r-- | app-misc/tmux/tmux-9999.ebuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild index 0ee80bc4dec7..3f3b9e9bf1a6 100644 --- a/app-misc/tmux/tmux-9999.ebuild +++ b/app-misc/tmux/tmux-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit autotools flag-o-matic +inherit autotools flag-o-matic systemd DESCRIPTION="Terminal multiplexer" HOMEPAGE="https://tmux.github.io/" @@ -33,7 +33,7 @@ DEPEND=" BDEPEND=" virtual/pkgconfig - virtual/yacc + app-alternatives/yacc " RDEPEND=" @@ -42,6 +42,9 @@ RDEPEND=" vim-syntax? ( app-vim/vim-tmux ) " +# BSD only functions +QA_CONFIG_IMPL_DECL_SKIP=( strtonum recallocarray ) + DOCS=( CHANGES README ) PATCHES=( @@ -49,15 +52,15 @@ PATCHES=( ) src_prepare() { - # bug 438558 - # 1.7 segfaults when entering copy mode if compiled with -Os - replace-flags -Os -O2 - default eautoreconf } src_configure() { + # bug 438558 + # 1.7 segfaults when entering copy mode if compiled with -Os + replace-flags -Os -O2 + local myeconfargs=( --sysconfdir="${EPREFIX}"/etc $(use_enable debug) @@ -80,4 +83,9 @@ src_install() { dodoc example_tmux.conf docompress -x /usr/share/doc/${PF}/example_tmux.conf + + if use systemd; then + systemd_newuserunit "${FILESDIR}"/tmux.service tmux@.service + systemd_newuserunit "${FILESDIR}"/tmux.socket tmux@.socket + fi } |