You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/html2text/html2text-1.3.2.ebuild

40 lines
925 B

# 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.ebuild,v 1.20 2009/09/23 16:35:01 patrick 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=""
src_unpack() {
unpack ${A}
cd ${S}
if [ `gcc-major-version` -ge 4 -o \
`gcc-major-version` -ge 3 -a `gcc-minor-version` -ge 3 ];
then
epatch 1.3.2_to_1.3.2a.diff
fi
epatch ${FILESDIR}/${P}-compiler.patch
}
src_compile() {
econf || die
emake CXX="$(tc-getCXX)" || die
}
src_install() {
dobin html2text
doman html2text.1.gz
doman html2textrc.5.gz
dodoc CHANGES CREDITS KNOWN_BUGS README TODO
}