mail-filter/dovecot-antispam: use system txt2man
authorTim Harder <radhermit@gentoo.org>
Tue, 2 Feb 2016 23:35:47 +0000 (18:35 -0500)
committerTim Harder <radhermit@gentoo.org>
Tue, 2 Feb 2016 23:36:54 +0000 (18:36 -0500)
Fixes bug #565946.

mail-filter/dovecot-antispam/dovecot-antispam-2.0_pre20130429.ebuild

index fca9408010c349bb9e934550b3150441ee92d2fc..1038b37e328e21f65065a0209692aba904970221 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,12 +14,17 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
 
-DEPEND=">=net-mail/dovecot-2.1.16"
-RDEPEND="${DEPEND}"
+RDEPEND=">=net-mail/dovecot-2.1.16"
+DEPEND="${RDEPEND}
+       app-text/txt2man"
 
 DOCS=( README )
 
 src_prepare() {
+       # use system txt2man
+       rm doc/txt2man || die
+       sed -i 's#./txt2man#txt2man#' doc/Makefile || die
+
        AT_M4DIR="m4" eautoreconf
 }