diff options
-rw-r--r-- | app-misc/tmux/tmux-9999.ebuild | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild index a3361bdd2bf5..27997de379f4 100644 --- a/app-misc/tmux/tmux-9999.ebuild +++ b/app-misc/tmux/tmux-9999.ebuild @@ -18,15 +18,18 @@ IUSE="debug selinux utempter vim-syntax kernel_FreeBSD kernel_linux" 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? ( || ( @@ -35,21 +38,21 @@ RDEPEND="${CDEPEND} ) )" -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 } @@ -59,17 +62,13 @@ src_configure() { $(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 |