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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Oct 13 17:24:18 2012 UTC (7 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove old.

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

  ViewVC Help
Powered by ViewVC 1.1.13