blob: 2681312a957fc303b5f0695471405272abe24a72 (
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
36
37
38
39
40
41
42
43
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/texi2html/texi2html-5.0-r1.ebuild,v 1.1 2012/03/15 19:07:35 ssuominen Exp $
EAPI=4
DESCRIPTION="Perl script that converts Texinfo to HTML"
HOMEPAGE="http://www.nongnu.org/texi2html/"
SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
LICENSE="CCPL-ShareAlike-1.0 FDL-1.3 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="unicode"
RDEPEND=">=dev-lang/perl-5.10.1
dev-perl/libintl-perl
unicode? (
dev-perl/Text-Unidecode
dev-perl/Unicode-EastAsianWidth
)"
DEPEND="${RDEPEND}"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_configure() {
local myconf
use unicode && myconf='--with-external-Unicode-EastAsianWidth'
econf \
--with-external-libintl-perl \
$(use_with unicode unidecode) \
${myconf}
}
src_install() {
default
rm -f "${ED}"/usr/share/${PN}/images/{COPYING*,GPL,README}
}
pkg_preinst() {
rm -f "${EROOT}"/usr/bin/${PN}
}
|