app-misc/tmux: Sync live ebuild.
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Oct 2017 14:37:45 +0000 (16:37 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 5 Oct 2017 14:38:03 +0000 (16:38 +0200)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

app-misc/tmux/tmux-9999.ebuild

index 27997de379f4e61d99d2b5bd2ce0429dbc51cfe8..9e06490e5cc946a64ab63c1284b1c7a336c430cf 100644 (file)
@@ -38,11 +38,12 @@ RDEPEND="
                )
        )"
 
-DOCS=( CHANGES README TODO example_tmux.conf )
+DOCS=( CHANGES README TODO )
 
 PATCHES=(
-       # usptream fixes (can be removed with next version bump)
        "${FILESDIR}/${PN}-2.4-flags.patch"
+
+       # usptream fixes (can be removed with next version bump)
 )
 
 S="${WORKDIR}/${P/_/-}"
@@ -52,6 +53,9 @@ src_prepare() {
        # 1.7 segfaults when entering copy mode if compiled with -Os
        replace-flags -Os -O2
 
+       # regenerate aclocal.m4 to support earlier automake versions
+       rm aclocal.m4 || die
+
        default
        eautoreconf
 }
@@ -69,10 +73,10 @@ src_configure() {
 src_install() {
        default
 
-       if use vim-syntax; then
-               insinto /usr/share/vim/vimfiles/ftdetect
-               doins "${FILESDIR}"/tmux.vim
-       fi
+       einstalldocs
+
+       dodoc example_tmux.conf
+       docompress -x /usr/share/doc/${PF}/example_tmux.conf
 }
 
 pkg_postinst() {