/[gentoo-x86]/app-misc/tmux/tmux-1.6.ebuild
Gentoo

Contents of /app-misc/tmux/tmux-1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Oct 13 17:23:16 2012 UTC (2 years, 1 month ago) by radhermit
Branch: MAIN
Changes since 1.8: +2 -4 lines
Stabilize for x86 (bug #435320) and remove unused eutils inherit.

(Portage version: 2.2.0_alpha136/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/tmux/tmux-1.6.ebuild,v 1.8 2012/09/26 12:19:51 blueness Exp $
4
5 EAPI=4
6
7 DESCRIPTION="Terminal multiplexer"
8 HOMEPAGE="http://tmux.sourceforge.net"
9 SRC_URI="mirror://sourceforge/tmux/${P}.tar.gz"
10
11 LICENSE="ISC"
12 SLOT="0"
13 KEYWORDS="amd64 ~arm ~mips ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
14 IUSE="vim-syntax"
15
16 DEPEND="
17 || ( >=dev-libs/libevent-2.0.10 <dev-libs/libevent-2 )
18 sys-libs/ncurses"
19 RDEPEND="${DEPEND}
20 vim-syntax? ( || (
21 app-editors/vim
22 app-editors/gvim ) )"
23
24 DOCS=( CHANGES FAQ NOTES TODO )
25
26 pkg_setup() {
27 if has_version "<app-misc/tmux-1.3"; then
28 echo
29 ewarn "Commands 'up-pane', 'down-pane' and 'select-prompt' were removed in version 1.3."
30 ewarn "You may want to update your configuration file accordingly to avoid errors on"
31 ewarn "tmux startup."
32 ewarn
33 ewarn "For the full Changelog, together with details on what replaced the above"
34 ewarn "commands, visit http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/CHANGES"
35 ewarn
36 ewarn "WARNING: after updating to ${P} you will _not_ be able to connect to any"
37 ewarn "running 1.2 tmux server instances. You'll have to use an existing client to"
38 ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
39 ewarn "to temporarily downgrade to tmux 1.2 to access them."
40 echo
41 elif has_version "<app-misc/tmux-1.6"; then
42 echo
43 ewarn "Some configuration options changed in this release."
44 ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
45 ewarn "or visit http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/CHANGES"
46 ewarn "for more details."
47 echo
48 fi
49 }
50
51 src_prepare() {
52 # look for config file in the prefix
53 sed -i -e '/SYSTEM_CFG/s:"/etc:"'"${EPREFIX}"'/etc:' tmux.h || die
54 # and don't just add some includes
55 sed -i -e 's:-I/usr/local/include::' Makefile.in || die
56 }
57
58 src_install() {
59 default
60
61 docinto examples
62 dodoc examples/*.conf
63
64 if use vim-syntax; then
65 insinto /usr/share/vim/vimfiles/syntax
66 doins examples/tmux.vim
67
68 insinto /usr/share/vim/vimfiles/ftdetect
69 doins "${FILESDIR}"/tmux.vim
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20