CDEPEND="
dev-libs/libevent:0=
+ sys-libs/ncurses:0=
utempter? (
kernel_linux? ( sys-libs/libutempter )
kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) )
- )
- sys-libs/ncurses:0="
-DEPEND="${CDEPEND}
+ )"
+
+DEPEND="
+ ${CDEPEND}
virtual/pkgconfig"
-RDEPEND="${CDEPEND}
- dev-libs/libevent:=
+
+RDEPEND="
+ ${CDEPEND}
selinux? ( sec-policy/selinux-screen )
vim-syntax? (
|| (
)
)"
-DOCS=( CHANGES FAQ README TODO )
+DOCS=( CHANGES README TODO example_tmux.conf )
-src_prepare() {
- # respect CFLAGS and don't add some includes
- sed \
- -e 's:-I/usr/local/include::' \
- -e 's:-O2::' \
- -i Makefile.am || die
+PATCHES=(
+ # usptream fixes (can be removed with next version bump)
+ "${FILESDIR}/${PN}-2.4-flags.patch"
+)
+
+S="${WORKDIR}/${P/_/-}"
+src_prepare() {
# bug 438558
# 1.7 segfaults when entering copy mode if compiled with -Os
replace-flags -Os -O2
default
-
eautoreconf
}
$(use_enable debug)
$(use_enable utempter)
)
+
econf "${myeconfargs[@]}"
}
src_install() {
default
- einstalldocs
-
- dodoc example_tmux.conf
- docompress -x /usr/share/doc/${PF}/example_tmux.conf
-
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}"/tmux.vim