| 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-9999.ebuild,v 1.5 2011/07/30 11:58:51 grobian Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools git-2
|
| 8 |
|
| 9 |
EGIT_REPO_URI="git://tmux.git.sourceforge.net/gitroot/tmux/tmux"
|
| 10 |
|
| 11 |
DESCRIPTION="Terminal multiplexer"
|
| 12 |
HOMEPAGE="http://tmux.sourceforge.net"
|
| 13 |
|
| 14 |
LICENSE="ISC"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS=""
|
| 17 |
IUSE="debug vim-syntax"
|
| 18 |
|
| 19 |
COMMON_DEPEND="
|
| 20 |
>=dev-libs/libevent-2.0.10
|
| 21 |
sys-libs/ncurses"
|
| 22 |
DEPEND="${COMMON_DEPEND}
|
| 23 |
virtual/pkgconfig"
|
| 24 |
RDEPEND="${COMMON_DEPEND}
|
| 25 |
vim-syntax? ( || (
|
| 26 |
app-editors/vim
|
| 27 |
app-editors/gvim ) )"
|
| 28 |
|
| 29 |
DOCS=( CHANGES FAQ NOTES TODO )
|
| 30 |
|
| 31 |
src_prepare() {
|
| 32 |
eautoreconf
|
| 33 |
# look for config file in the prefix
|
| 34 |
sed -i -e '/SYSTEM_CFG/s:"/etc:"'"${EPREFIX}"'/etc:' tmux.h || die
|
| 35 |
# and don't just add some includes
|
| 36 |
sed -i -e 's:-I/usr/local/include::' Makefile.in || die
|
| 37 |
}
|
| 38 |
|
| 39 |
src_configure() {
|
| 40 |
econf \
|
| 41 |
$(use_enable debug)
|
| 42 |
}
|
| 43 |
|
| 44 |
src_install() {
|
| 45 |
default
|
| 46 |
|
| 47 |
docinto examples
|
| 48 |
dodoc examples/*.conf
|
| 49 |
|
| 50 |
if use vim-syntax; then
|
| 51 |
insinto /usr/share/vim/vimfiles/syntax
|
| 52 |
doins examples/tmux.vim
|
| 53 |
|
| 54 |
insinto /usr/share/vim/vimfiles/ftdetect
|
| 55 |
doins "${FILESDIR}"/tmux.vim
|
| 56 |
fi
|
| 57 |
}
|