diff options
Diffstat (limited to 'app-misc/tmux')
-rw-r--r-- | app-misc/tmux/Manifest | 2 | ||||
-rw-r--r-- | app-misc/tmux/files/tmux-1.9a-flags.patch | 28 | ||||
-rw-r--r-- | app-misc/tmux/files/tmux-2.0-flags.patch | 18 | ||||
-rw-r--r-- | app-misc/tmux/files/tmux.vim | 1 | ||||
-rw-r--r-- | app-misc/tmux/metadata.xml | 15 | ||||
-rw-r--r-- | app-misc/tmux/tmux-1.9a.ebuild | 85 | ||||
-rw-r--r-- | app-misc/tmux/tmux-2.0.ebuild | 85 | ||||
-rw-r--r-- | app-misc/tmux/tmux-9999.ebuild | 71 |
8 files changed, 305 insertions, 0 deletions
diff --git a/app-misc/tmux/Manifest b/app-misc/tmux/Manifest new file mode 100644 index 00000000000..40e25698d46 --- /dev/null +++ b/app-misc/tmux/Manifest @@ -0,0 +1,2 @@ +DIST tmux-1.9a.tar.gz 447938 SHA256 c5e3b22b901cf109b20dab54a4a651f0471abd1f79f6039d79b250d21c2733f5 SHA512 842984638dc1f7364c03393187379598f35679d535d911d5df4016944d6032e61a1bf840d7d339c6e99b30c55581d470acca85ab6ee5799b8927d18c0e9a91df WHIRLPOOL eca5cd48a263e25d24b7e2865f76bb30267e20590e9b2a905637498d7992389b9c7e0253c992780b1a6458869204cffcf93f4dba09efdfeb2f803a0f95f6553e +DIST tmux-2.0.tar.gz 455754 SHA256 795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362 SHA512 8a4be40ceb9b371a91107173de08348c4379b103454fa397ee326506f78a5fda1034dc7148c090c687221eddb8a2fc0c3aeb85da57841df6bcd74fb5f4f5f53d WHIRLPOOL d5c9570aafed049b1404e9243e0339202bfa33e8ca2874f304cb9a7c764b7878db19f87aa5f6b9a9476038bc3702e5d11784c8ca83eb731e61763ecb08a39fec diff --git a/app-misc/tmux/files/tmux-1.9a-flags.patch b/app-misc/tmux/files/tmux-1.9a-flags.patch new file mode 100644 index 00000000000..8bf21d86ed6 --- /dev/null +++ b/app-misc/tmux/files/tmux-1.9a-flags.patch @@ -0,0 +1,28 @@ +--- tmux-1.9a/Makefile.am ++++ tmux-1.9a/Makefile.am +@@ -27,23 +27,20 @@ + if IS_GCC + CFLAGS += -std=gnu99 + if IS_DEBUG +-CFLAGS += -O0 -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 + CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align + CFLAGS += -Wdeclaration-after-statement + CPPFLAGS += -DDEBUG +-else +-CFLAGS += -O2 + endif + if IS_GCC4 +-CPPFLAGS += -iquote. -I/usr/local/include ++CPPFLAGS += -iquote. + if IS_DEBUG + CFLAGS += -Wno-pointer-sign + endif + else +-CPPFLAGS += -I. -I- -I/usr/local/include ++CPPFLAGS += -I. -I- + endif + endif + 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 00000000000..d2c40e04b78 --- /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/files/tmux.vim b/app-misc/tmux/files/tmux.vim new file mode 100644 index 00000000000..baac50adab1 --- /dev/null +++ b/app-misc/tmux/files/tmux.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux diff --git a/app-misc/tmux/metadata.xml b/app-misc/tmux/metadata.xml new file mode 100644 index 00000000000..a88ed84b3bb --- /dev/null +++ b/app-misc/tmux/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>shell-tools</herd> + <maintainer> + <email>wired@gentoo.org</email> + <name>Alex Alexander</name> + </maintainer> + <longdescription> + tmux is a "terminal multiplexer", it enables a number of terminals + (or windows) to be accessed and controlled from a single terminal. + tmux is intended to be a simple, modern, BSD-licensed alternative to + programs such as <pkg>app-misc/screen</pkg>. + </longdescription> +</pkgmetadata> diff --git a/app-misc/tmux/tmux-1.9a.ebuild b/app-misc/tmux/tmux-1.9a.ebuild new file mode 100644 index 00000000000..df654947cb4 --- /dev/null +++ b/app-misc/tmux/tmux-1.9a.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 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 + +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 vim-syntax" + +COMMON_DEPEND=" + >=dev-libs/libevent-2.0.10 + sys-libs/ncurses" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-screen ) + vim-syntax? ( || ( + app-editors/vim + app-editors/gvim ) )" + +DOCS=( CHANGES FAQ README TODO ) + +PATCHES=( "${FILESDIR}"/${P}-flags.patch ) + +pkg_setup() { + if has_version "<app-misc/tmux-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 +} + +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 + + # remove generated files + rm -r compat/.{dirstamp,deps} || 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 + + newbashcomp examples/bash_completion_tmux.sh ${PN} + + docinto examples + dodoc examples/*.conf + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins examples/tmux.vim + + insinto /usr/share/vim/vimfiles/ftdetect + doins "${FILESDIR}"/tmux.vim + fi +} diff --git a/app-misc/tmux/tmux-2.0.ebuild b/app-misc/tmux/tmux-2.0.ebuild new file mode 100644 index 00000000000..f82e139e091 --- /dev/null +++ b/app-misc/tmux/tmux-2.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 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 + +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 vim-syntax" + +COMMON_DEPEND=" + >=dev-libs/libevent-2.0.10 + sys-libs/ncurses" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-screen ) + vim-syntax? ( || ( + app-editors/vim + app-editors/gvim ) )" + +DOCS=( CHANGES FAQ README TODO ) + +PATCHES=( "${FILESDIR}"/${P}-flags.patch ) + +pkg_setup() { + if has_version "<app-misc/tmux-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 +} + +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 + + # remove generated files + rm -r compat/.{dirstamp,deps} || 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 + + newbashcomp examples/bash_completion_tmux.sh ${PN} + + docinto examples + dodoc examples/*.conf + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins examples/tmux.vim + + insinto /usr/share/vim/vimfiles/ftdetect + doins "${FILESDIR}"/tmux.vim + fi +} diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild new file mode 100644 index 00000000000..f809290ff99 --- /dev/null +++ b/app-misc/tmux/tmux-9999.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils git-r3 bash-completion-r1 flag-o-matic + +EGIT_REPO_URI="https://github.com/tmux/tmux.git" + +DESCRIPTION="Terminal multiplexer" +HOMEPAGE="http://tmux.github.io/" +SRC_URI="" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="" +IUSE="debug selinux vim-syntax" + +COMMON_DEPEND=" + >=dev-libs/libevent-2.0.10 + sys-libs/ncurses" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-screen ) + vim-syntax? ( || ( + app-editors/vim + app-editors/gvim ) )" + +DOCS=( CHANGES FAQ README TODO ) + +src_prepare() { + # respect CFLAGS and don't add some includes + sed \ + -e 's:-I/usr/local/include::' \ + -e 's:-O2::' \ + -i Makefile.am || die + + # bug 438558 + # 1.7 segfaults when entering copy mode if compiled with -Os + replace-flags -Os -O2 + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + --sysconfdir="${EPREFIX}"/etc + $(use_enable debug) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + newbashcomp examples/bash_completion_tmux.sh ${PN} + + docinto examples + dodoc examples/*.conf + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins examples/tmux.vim + + insinto /usr/share/vim/vimfiles/ftdetect + doins "${FILESDIR}"/tmux.vim + fi +} |