blob: 59515c170b2843f7d0eeb80a46de979dcd3ad497 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs
DESCRIPTION="Simple, modern, alternative to programs such as GNU screen"
HOMEPAGE="http://tmux.sourceforge.net"
SRC_URI="mirror://sourceforge/tmux/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE="debug examples"
DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
if use debug ; then
sed -i "/DEBUG/s/^#//" GNUmakefile || die "sed debug failed"
fi
}
src_compile() {
emake CC="$(tc-getCC)" || die "emake failed"
}
src_install() {
emake \
DESTDIR="${D}" \
MANDIR="/usr/share/man/man1" \
PREFIX="/usr" install || die "emake install failed"
dodoc NOTES TODO
if use examples ; then
docinto examples
dodoc examples/*
fi
}
pkg_postinst() {
elog "NOTE that tmux doesn't support \\\033_string\\\033\\\\\\ for window"
elog "titles. If you're using BASH unset PROMPT_COMMAND."
}
|