Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tmux/files/, app-misc/tmux/
Date: Fri, 30 Sep 2016 07:32:47
Message-Id: 1475220756.fbbae198eb8921ee2bc0b7c0bb2447fffff309c1.polynomial-c@gentoo
1 commit: fbbae198eb8921ee2bc0b7c0bb2447fffff309c1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 07:32:17 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 07:32:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbbae198
7
8 app-misc/tmux: Bump to version 2.3
9
10 Package-Manager: portage-2.3.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-misc/tmux/Manifest | 1 +
14 app-misc/tmux/files/tmux-2.3-flags.patch | 15 ++++++
15 app-misc/tmux/tmux-2.3.ebuild | 89 ++++++++++++++++++++++++++++++++
16 3 files changed, 105 insertions(+)
17
18 diff --git a/app-misc/tmux/Manifest b/app-misc/tmux/Manifest
19 index 0eea5ba..6ede0c3 100644
20 --- a/app-misc/tmux/Manifest
21 +++ b/app-misc/tmux/Manifest
22 @@ -1,4 +1,5 @@
23 DIST tmux-2.1.tar.gz 462965 SHA256 31564e7bf4bcef2defb3cb34b9e596bd43a3937cad9e5438701a81a5a9af6176 SHA512 0faa0a60a84b777ca3cf572cf741d0e4f82a9f32d27dfeddfda41bad57830823a6d5f2323f27ba794b86e194d9f7db7028c94dc6a15bb4ac5a18508f890bdaa4 WHIRLPOOL 983024886bdb868bb69ccedc18e9fd62cc5a8f147d647ea43b6f20e297b9b3c45a061e542bcb590ab50cf5d3db43d22015c3a8f18bee33d9c76552bfe13424ed
24 DIST tmux-2.2.tar.gz 466852 SHA256 bc28541b64f99929fe8e3ae7a02291263f3c97730781201824c0f05d7c8e19e4 SHA512 4d4fc316c78aab0d13f7f15098d952f01d7da7d74d46251ae2dd90440522f07c785afe984d82de2b4518fb67ea441f5a5a46c357c87ddc6ddbfba4b7f08be7bf WHIRLPOOL 2e44582b994f3fe919f4ee7543f25e3fb02cc975d053b0c63bcd858a54fe3125ffe192cf6f8c7ae0345d90e8086d86930d668b29becdb4e0376579ef02e7034f
25 +DIST tmux-2.3.tar.gz 473944 SHA256 55313e132f0f42de7e020bf6323a1939ee02ab79c48634aa07475db41573852b SHA512 521e3734104be43837cba95d8b3d050d033708fa7469f7e7db66ae6993b002c4d9f6bafec41f3c9446eda91a4499e571019534dfa2e5a0563085b2d16e1b94af WHIRLPOOL de482076dfdb15e5ef2dcaebf60e05069bf847a30162a098bf11573f09cc996e35b9ffcd3a2784331b6fc59ae0b9bc58cbe80360a7dd844eb94ff25e546eacf2
26 DIST tmux-bash-completion-678a27616b70c649c6701cae9cd8c92b58cc051b 458 SHA256 a0905c595fec7f0258fba5466315d42d67eca3bd2d3b12f4af8936d7f168b6c6 SHA512 fe0aca7d03067af87e0788a2fa902c7ef5500ba72295cb63c5a1814534a008c224256d7f890ac1af6d17f3734b45148765e1632f075e284c453185df2927b979 WHIRLPOOL aa83ea77c084e643f2cbf74ddf10bf6e43304b0a7c1f6af24b153844ad01732af8f45de0d8a39093f11be19ff9af20116f4aa7b9c750f3452525fcd7b31a3d8a
27 DIST tmux.vim-95f6126c187667cc7f9c573c45c3b356cf69f4ca 5626 SHA256 040cbb7ce19f5a256ae400061d310e0f64f58cbc525402043708b59546af2462 SHA512 956b2c1ca08e3c92aa39c9df54fbe1c661d0e076c91628c4b88f81f97104241b6505412fa0e21a681adc231eb2e6e7feee850474d4277812d186548bbb05f6d1 WHIRLPOOL 3eaa20479fccf7e20dbd7ccb8669bd8c47da90f7218fdb386fcd150c1223cc7300d68f880baa706bbdb7abf54394d44fd80479ba3fae934de9b53f40acc6286a
28
29 diff --git a/app-misc/tmux/files/tmux-2.3-flags.patch b/app-misc/tmux/files/tmux-2.3-flags.patch
30 new file mode 100644
31 index 00000000..6fa66b5
32 --- /dev/null
33 +++ b/app-misc/tmux/files/tmux-2.3-flags.patch
34 @@ -0,0 +1,15 @@
35 + Makefile.am | 3 +--
36 + 1 file changed, 1 insertion(+), 2 deletions(-)
37 +--- tmux-2.3/Makefile.am
38 ++++ tmux-2.3/Makefile.am
39 +@@ -23,9 +23,8 @@
40 +
41 + # Set flags for gcc.
42 + if IS_GCC
43 +-CFLAGS += -std=gnu99 -O2
44 ++CFLAGS += -std=gnu99
45 + if IS_DEBUG
46 +-CFLAGS += -g
47 + CFLAGS += -Wno-long-long -Wall -W -Wformat=2
48 + CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
49 + CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
50
51 diff --git a/app-misc/tmux/tmux-2.3.ebuild b/app-misc/tmux/tmux-2.3.ebuild
52 new file mode 100644
53 index 00000000..5fdd741
54 --- /dev/null
55 +++ b/app-misc/tmux/tmux-2.3.ebuild
56 @@ -0,0 +1,89 @@
57 +# Copyright 1999-2016 Gentoo Foundation
58 +# Distributed under the terms of the GNU General Public License v2
59 +# $Id$
60 +
61 +EAPI=6
62 +
63 +inherit autotools flag-o-matic versionator
64 +
65 +DESCRIPTION="Terminal multiplexer"
66 +HOMEPAGE="http://tmux.github.io/"
67 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
68 +
69 +LICENSE="ISC"
70 +SLOT="0"
71 +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"
72 +IUSE="debug selinux utempter vim-syntax kernel_FreeBSD kernel_linux"
73 +
74 +CDEPEND="
75 + || (
76 + =dev-libs/libevent-2.0*
77 + >=dev-libs/libevent-2.1.5-r4
78 + )
79 + utempter? (
80 + kernel_linux? ( sys-libs/libutempter )
81 + kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) )
82 + )
83 + sys-libs/ncurses:0="
84 +DEPEND="${CDEPEND}
85 + virtual/pkgconfig"
86 +RDEPEND="${CDEPEND}
87 + selinux? ( sec-policy/selinux-screen )
88 + vim-syntax? (
89 + || (
90 + app-editors/vim
91 + app-editors/gvim
92 + )
93 + )"
94 +
95 +DOCS=( CHANGES FAQ README TODO )
96 +
97 +PATCHES=( "${FILESDIR}"/${PN}-2.3-flags.patch )
98 +
99 +src_prepare() {
100 + # bug 438558
101 + # 1.7 segfaults when entering copy mode if compiled with -Os
102 + replace-flags -Os -O2
103 +
104 + # regenerate aclocal.m4 to support earlier automake versions
105 + rm aclocal.m4 || die
106 +
107 + default
108 +
109 + eautoreconf
110 +}
111 +
112 +src_configure() {
113 + econf \
114 + --sysconfdir="${EPREFIX}"/etc \
115 + $(use_enable debug) \
116 + $(use_enable utempter)
117 +}
118 +
119 +src_install() {
120 + default
121 +
122 + einstalldocs
123 +
124 + dodoc example_tmux.conf
125 + docompress -x /usr/share/doc/${PF}/example_tmux.conf
126 +
127 + if use vim-syntax; then
128 + insinto /usr/share/vim/vimfiles/ftdetect
129 + doins "${FILESDIR}"/tmux.vim
130 + fi
131 +}
132 +
133 +pkg_postinst() {
134 + if ! version_is_at_least 1.9a ${REPLACING_VERSIONS:-1.9a}; then
135 + echo
136 + ewarn "Some configuration options changed in this release."
137 + ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
138 + ewarn
139 + ewarn "WARNING: After updating to ${P} you will _not_ be able to connect to any"
140 + ewarn "older, running tmux server instances. You'll have to use an existing client to"
141 + ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
142 + ewarn "to temporarily downgrade to access them."
143 + echo
144 + fi
145 +}