Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/html2text/
Date: Mon, 08 Oct 2018 16:10:58
Message-Id: 1539014953.a09956475820a07f01fabe695710d59f0b14687a.mgorny@gentoo
1 commit: a09956475820a07f01fabe695710d59f0b14687a
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Sep 30 14:58:41 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 8 16:09:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0995647
7
8 app-text/html2text: EAPI7 revbump, improve ebuild
9
10 Closes: https://bugs.gentoo.org/667382
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/10027
14
15 app-text/html2text/html2text-1.3.2a-r2.ebuild | 40 +++++++++++++++++++++++++++
16 1 file changed, 40 insertions(+)
17
18 diff --git a/app-text/html2text/html2text-1.3.2a-r2.ebuild b/app-text/html2text/html2text-1.3.2a-r2.ebuild
19 new file mode 100644
20 index 00000000000..f96c4819e23
21 --- /dev/null
22 +++ b/app-text/html2text/html2text-1.3.2a-r2.ebuild
23 @@ -0,0 +1,40 @@
24 +# Copyright 1999-2018 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit toolchain-funcs
30 +
31 +DESCRIPTION="HTML to text converter"
32 +HOMEPAGE="http://www.mbayer.de/html2text/"
33 +SRC_URI="http://www.mbayer.de/html2text/downloads/${P}.tar.gz
34 + http://www.mbayer.de/html2text/downloads/patch-utf8-${P}.diff
35 + http://www.mbayer.de/html2text/downloads/patch-amd64-${P}.diff
36 +"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
41 +
42 +PATCHES=(
43 + "${FILESDIR}/${P}-compiler.patch"
44 + "${FILESDIR}/${P}-urlistream-get.patch"
45 + "${DISTDIR}/patch-utf8-${P}.diff"
46 + "${DISTDIR}/patch-amd64-${P}.diff"
47 +)
48 +
49 +src_prepare() {
50 + default
51 + gunzip html2text.1.gz html2textrc.5.gz || die
52 + tc-export CXX
53 +}
54 +
55 +src_compile() {
56 + emake LDFLAGS="${LDFLAGS}" DEBUG="${CXXFLAGS}"
57 +}
58 +
59 +src_install() {
60 + dobin html2text
61 + doman html2text.1 html2textrc.5
62 + dodoc CHANGES CREDITS KNOWN_BUGS README TODO
63 +}