app-misc/tmux: remove FAQ from DOCS array. improve equild's quality.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 16 Jun 2017 18:48:29 +0000 (20:48 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 16 Jun 2017 18:49:27 +0000 (20:49 +0200)
Gentoo-Bug: https://bugs.gentoo.org/621858

Package-Manager: Portage-2.3.5, Repoman-2.3.1

app-misc/tmux/tmux-9999.ebuild

index a3361bdd2bf5e66ab65943eef35f7139e557f9a5..27997de379f4e61d99d2b5bd2ce0429dbc51cfe8 100644 (file)
@@ -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