summaryrefslogtreecommitdiff
blob: fe41d2cf9b45dd58edeb08d3a678b2e6e33c8eb0 (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
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/html2text/html2text-1.3.2-r1.ebuild,v 1.1 2009/03/19 13:41:39 flameeyes Exp $

inherit eutils toolchain-funcs

DESCRIPTION="A HTML to text converter"
HOMEPAGE="http://www.mbayer.de/html2text/index.shtml"
SRC_URI="http://userpage.fu-berlin.de/~mbayer/tools/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch 1.3.2_to_1.3.2a.diff
	epatch "${FILESDIR}"/${P}-compiler.patch
}

src_compile() {
	econf || die
	emake CXX="$(tc-getCXX)" LDFLAGS="${LDFLAGS}" DEBUG="${CXXFLAGS}" || die
}

src_install() {
	dobin html2text || die "dobin failed"
	doman html2text.1.gz html2textrc.5.gz || die "doman failed"
	dodoc CHANGES CREDITS KNOWN_BUGS README TODO
}