blob: f289f042b6f4314f6efd6c15dcc558c876ecc3eb (
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
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.13-r1.ebuild,v 1.5 2012/05/23 23:05:28 vapier Exp $
EAPI="2"
inherit flag-o-matic eutils
DESCRIPTION="The GNU info program and utilities"
HOMEPAGE="http://www.gnu.org/software/texinfo/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.lzma"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="nls static"
RDEPEND="!=app-text/tetex-2*
>=sys-libs/ncurses-5.2-r2
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
app-arch/xz-utils
nls? ( sys-devel/gettext )"
src_prepare() {
epatch "${FILESDIR}"/${P}-xz.patch #269742
touch doc/install-info.1 #354589
epatch "${FILESDIR}"/${P}-texi2dvi-regexp-range.patch #311885
touch doc/{texi2dvi,texi2pdf,pdftexi2dvi}.1 #354589
epatch "${FILESDIR}"/${P}-accentenc-test.patch
}
src_configure() {
use static && append-ldflags -static
econf $(use_enable nls)
}
src_compile() {
# Make cross-compiler safe (#196041)
if tc-is-cross-compiler ; then
emake -C tools/gnulib/lib || die
fi
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog INTRODUCTION NEWS README TODO
newdoc info/README README.info
newdoc makeinfo/README README.makeinfo
}
|