summaryrefslogtreecommitdiff
blob: 4f1cf0e9239e9937b71915542c50b5eb87678216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit autotools eutils

DESCRIPTION="Converts RTF files to various formats"
HOMEPAGE="https://www.gnu.org/software/unrtf/unrtf.html"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
IUSE=""

src_prepare() {
	# eautoreconf fails when automake-1.14* is installed. Please check with
	# next version bump if we still need this workaround.
	rm aclocal.m4 || die

	epatch "${FILESDIR}"/unrtf-0.21.8-automake-fix.patch
	epatch "${FILESDIR}"/${PN}-0.21.8-iconv-detection.patch
	eautoreconf
}