commit:     04455442c56270af394871ba25a1eec7e8da7ada
Author:     Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
AuthorDate: Sun May  8 12:52:36 2016 +0000
Commit:     Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
CommitDate: Sun May  8 12:52:36 2016 +0000
URL:        
https://gitweb.gentoo.org/repo/dev/tranquility.git/commit/?id=04455442

Add tmux-2.2

 app-misc/tmux/Manifest                   |  3 ++
 app-misc/tmux/files/tmux-2.0-flags.patch | 18 ++++++++
 app-misc/tmux/tmux-2.2.ebuild            | 74 ++++++++++++++++++++++++++++++++
 3 files changed, 95 insertions(+)

diff --git a/app-misc/tmux/Manifest b/app-misc/tmux/Manifest
new file mode 100644
index 0000000..f04ec4b
--- /dev/null
+++ b/app-misc/tmux/Manifest
@@ -0,0 +1,3 @@
+AUX tmux-2.0-flags.patch 584 SHA256 
17dba9f233ca99e31d0619a47ca1cfd1f78bc429bfc9564e3fbc0174b39b61e7 SHA512 
029a29182f5998c19883f24eab980d16f2e89c72f4150354e0a1101f9092491e836952fb9442e511508f47fd701c8cc8171f29c6ff097248894b6696d108f6dd
 WHIRLPOOL 
026220084ff52382a168053b67bc5133b6d0d455059108ff85f58bb98eaab1656d1d76cd2c7814b9a7fde75e30cf79dfdf65c6c4429aa51852dfb9e6afef13e4
+DIST tmux-2.2.tar.gz 466852 SHA256 
bc28541b64f99929fe8e3ae7a02291263f3c97730781201824c0f05d7c8e19e4 SHA512 
4d4fc316c78aab0d13f7f15098d952f01d7da7d74d46251ae2dd90440522f07c785afe984d82de2b4518fb67ea441f5a5a46c357c87ddc6ddbfba4b7f08be7bf
 WHIRLPOOL 
2e44582b994f3fe919f4ee7543f25e3fb02cc975d053b0c63bcd858a54fe3125ffe192cf6f8c7ae0345d90e8086d86930d668b29becdb4e0376579ef02e7034f
+EBUILD tmux-2.2.ebuild 1981 SHA256 
69b48065516d2e9f5e248899f57b8b85510b9fd5a1b98f7116e36a5cfc29c0fc SHA512 
fc4309ab4299173ba0c9c8ad7c97ed6582b3ab134f0a38a68a0be700fbb0e0b5f25895b9de670bba89dbffa7d84d29d6a43d9dd7cc0c5cf5e12f0812577f237d
 WHIRLPOOL 
571822a697eb2512a097478de1e30ce0edcf1db79297a718108d0c71a92e875ef1e858b845316dde29ce5c02ad678e2b657e41c04b67bdb69dd72b62b6f85d2f

diff --git a/app-misc/tmux/files/tmux-2.0-flags.patch 
b/app-misc/tmux/files/tmux-2.0-flags.patch
new file mode 100644
index 0000000..d2c40e0
--- /dev/null
+++ b/app-misc/tmux/files/tmux-2.0-flags.patch
@@ -0,0 +1,18 @@
+ Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 63e20b1..a2fec1e 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -25,9 +25,8 @@ endif
+ # Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
+ # different flags.
+ if IS_GCC
+-CFLAGS += -std=gnu99 -O2
++CFLAGS += -std=gnu99
+ if IS_DEBUG
+-CFLAGS += -g
+ CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
+ CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
+ CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare

diff --git a/app-misc/tmux/tmux-2.2.ebuild b/app-misc/tmux/tmux-2.2.ebuild
new file mode 100644
index 0000000..92528bd
--- /dev/null
+++ b/app-misc/tmux/tmux-2.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils bash-completion-r1 flag-o-matic versionator
+
+DESCRIPTION="Terminal multiplexer"
+HOMEPAGE="http://tmux.github.io/";
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="ISC"
+SLOT="0"
+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"
+IUSE="debug selinux kernel_FreeBSD kernel_linux"
+
+CDEPEND="
+       || (
+               =dev-libs/libevent-2.0*
+               >=dev-libs/libevent-2.1.5-r4
+       )
+       kernel_linux? ( sys-libs/libutempter )
+       kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 
sys-libs/libutempter ) )
+       sys-libs/ncurses:0="
+DEPEND="${CDEPEND}
+       virtual/pkgconfig
+"
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-screen )
+"
+
+DOCS=( CHANGES FAQ README TODO )
+
+PATCHES=( "${FILESDIR}"/${PN}-2.0-flags.patch )
+
+src_prepare() {
+       # bug 438558
+       # 1.7 segfaults when entering copy mode if compiled with -Os
+       replace-flags -Os -O2
+
+       # regenerate aclocal.m4 to support earlier automake versions
+       rm aclocal.m4 || die
+
+       autotools-utils_src_prepare
+}
+
+src_configure() {
+       local myeconfargs=(
+               --sysconfdir="${EPREFIX}"/etc
+               $(use_enable debug)
+       )
+       autotools-utils_src_configure
+}
+
+src_install() {
+       autotools-utils_src_install
+}
+
+pkg_postinst() {
+       if ! version_is_at_least 1.9a ${REPLACING_VERSIONS:-1.9a}; then
+               echo
+               ewarn "Some configuration options changed in this release."
+               ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
+               ewarn
+               ewarn "WARNING: After updating to ${P} you will _not_ be able 
to connect to any"
+               ewarn "older, running tmux server instances. You'll have to use 
an existing client to"
+               ewarn "end your old sessions or kill the old server instances. 
Otherwise you'll have"
+               ewarn "to temporarily downgrade to access them."
+               echo
+       fi
+}

Reply via email to