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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Oct 13 17:18:59 2012 UTC (2 years ago) by radhermit
Branch: MAIN
Version bump.

(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: $
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 COMMON_DEPEND="
17 >=dev-libs/libevent-2.0.10
18 sys-libs/ncurses"
19 DEPEND="${COMMON_DEPEND}
20 virtual/pkgconfig"
21 RDEPEND="${COMMON_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.7"; then
30 echo
31 ewarn "Some configuration options changed in this release."
32 ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
33 ewarn
34 ewarn "WARNING: after updating to ${P} you will _not_ be able to connect to any"
35 ewarn "running 1.6 tmux server instances. You'll have to use an existing client to"
36 ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
37 ewarn "to temporarily downgrade to tmux 1.6 to access them."
38 echo
39 fi
40 }
41
42 src_prepare() {
43 # look for config file in the prefix
44 sed -i -e '/SYSTEM_CFG/s:"/etc:"'"${EPREFIX}"'/etc:' tmux.h || die
45 # and don't just add some includes
46 sed -i -e 's:-I/usr/local/include::' Makefile.in || die
47 }
48
49 src_install() {
50 default
51
52 docinto examples
53 dodoc examples/*.conf
54
55 if use vim-syntax; then
56 insinto /usr/share/vim/vimfiles/syntax
57 doins examples/tmux.vim
58
59 insinto /usr/share/vim/vimfiles/ftdetect
60 doins "${FILESDIR}"/tmux.vim
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20