Skip to content

Commit

Permalink
app-misc/tmux: Bumped live ebuild to EAPI-6. Cleanup.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Jun 2, 2016
1 parent d425764 commit f76b478
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions app-misc/tmux/tmux-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
EAPI=6

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils git-r3 bash-completion-r1 flag-o-matic versionator
inherit autotools git-r3 flag-o-matic versionator

DESCRIPTION="Terminal multiplexer"
HOMEPAGE="http://tmux.github.io/"
Expand All @@ -17,12 +15,14 @@ EGIT_REPO_URI="https://github.com/tmux/tmux.git"
LICENSE="ISC"
SLOT="0"
KEYWORDS=""
IUSE="debug selinux vim-syntax kernel_FreeBSD kernel_linux"
IUSE="debug selinux utempter vim-syntax kernel_FreeBSD kernel_linux"

CDEPEND="
>=dev-libs/libevent-2.0.10
kernel_linux? ( sys-libs/libutempter )
kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) )
utempter? (
kernel_linux? ( sys-libs/libutempter )
kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) )
)
sys-libs/ncurses:0="
DEPEND="${CDEPEND}
virtual/pkgconfig"
Expand All @@ -48,29 +48,24 @@ src_prepare() {
# 1.7 segfaults when entering copy mode if compiled with -Os
replace-flags -Os -O2

autotools-utils_src_prepare
default

eautoreconf
}

src_configure() {
local myeconfargs=(
--sysconfdir="${EPREFIX}"/etc
$(use_enable debug)
)
autotools-utils_src_configure
econf \
--sysconfdir="${EPREFIX}"/etc \
$(use_enable debug) \
$(use_enable utempter)
}

src_install() {
autotools-utils_src_install

newbashcomp "${DISTDIR}/tmux-bash-completion-678a27616b70c649c6701cae9cd8c92b58cc051b" ${PN}
default

docinto examples
dodoc example_tmux.conf
einstalldocs

if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
newins "${DISTDIR}/tmux.vim-95f6126c187667cc7f9c573c45c3b356cf69f4ca" tmux.vim

insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}"/tmux.vim
fi
Expand Down

0 comments on commit f76b478

Please sign in to comment.