Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tmux/
Date: Fri, 25 Sep 2015 20:22:40
Message-Id: 1443212399.e4496dd00f5847709ec6a47f70b0c993153c2e1b.monsieurp@gentoo
1 commit: e4496dd00f5847709ec6a47f70b0c993153c2e1b
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 20:18:52 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 20:19:59 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4496dd0
7
8 app-misc/tmux: Set up a blocker on sys-apps/utempter to prevent compilation from failing when linking to this library. Fixes bug 560652.
9
10 Package-Manager: portage-2.2.18
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 app-misc/tmux/tmux-2.0-r1.ebuild | 86 ++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 86 insertions(+)
15
16 diff --git a/app-misc/tmux/tmux-2.0-r1.ebuild b/app-misc/tmux/tmux-2.0-r1.ebuild
17 new file mode 100644
18 index 0000000..e85f50a
19 --- /dev/null
20 +++ b/app-misc/tmux/tmux-2.0-r1.ebuild
21 @@ -0,0 +1,86 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +AUTOTOOLS_AUTORECONF=true
28 +
29 +inherit autotools-utils bash-completion-r1 flag-o-matic
30 +
31 +DESCRIPTION="Terminal multiplexer"
32 +HOMEPAGE="http://tmux.github.io/"
33 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
34 +
35 +LICENSE="ISC"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
38 +IUSE="debug selinux vim-syntax"
39 +
40 +CDEPEND="
41 + >=dev-libs/libevent-2.0.10
42 + !sys-apps/utempter
43 + sys-libs/ncurses"
44 +DEPEND="${CDEPEND}
45 + virtual/pkgconfig"
46 +RDEPEND="${CDEPEND}
47 + selinux? ( sec-policy/selinux-screen )
48 + vim-syntax? ( || (
49 + app-editors/vim
50 + app-editors/gvim ) )"
51 +
52 +DOCS=( CHANGES FAQ README TODO )
53 +
54 +PATCHES=( "${FILESDIR}"/${P}-flags.patch )
55 +
56 +pkg_setup() {
57 + if has_version "<app-misc/tmux-1.9a"; then
58 + echo
59 + ewarn "Some configuration options changed in this release."
60 + ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
61 + ewarn
62 + ewarn "WARNING: After updating to ${P} you will _not_ be able to connect to any"
63 + ewarn "older, running tmux server instances. You'll have to use an existing client to"
64 + ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
65 + ewarn "to temporarily downgrade to access them."
66 + echo
67 + fi
68 +}
69 +
70 +src_prepare() {
71 + # bug 438558
72 + # 1.7 segfaults when entering copy mode if compiled with -Os
73 + replace-flags -Os -O2
74 +
75 + # regenerate aclocal.m4 to support earlier automake versions
76 + rm aclocal.m4 || die
77 +
78 + # remove generated files
79 + rm -r compat/.{dirstamp,deps} || die
80 +
81 + autotools-utils_src_prepare
82 +}
83 +
84 +src_configure() {
85 + local myeconfargs=(
86 + --sysconfdir="${EPREFIX}"/etc
87 + $(use_enable debug)
88 + )
89 + autotools-utils_src_configure
90 +}
91 +
92 +src_install() {
93 + autotools-utils_src_install
94 +
95 + newbashcomp examples/bash_completion_tmux.sh ${PN}
96 +
97 + docinto examples
98 + dodoc examples/*.conf
99 +
100 + if use vim-syntax; then
101 + insinto /usr/share/vim/vimfiles/syntax
102 + doins examples/tmux.vim
103 +
104 + insinto /usr/share/vim/vimfiles/ftdetect
105 + doins "${FILESDIR}"/tmux.vim
106 + fi
107 +}