blob: 2af02004bb0a8d876308152f4049d674370bdb4c (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils autotools toolchain-funcs flag-o-matic
DESCRIPTION="DVI to plain text translator"
HOMEPAGE="http://catdvi.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="virtual/tex-base
dev-libs/kpathsea"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}/${P}-kpathsea.patch"
eautoconf
has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
}
src_compile() {
# Do not use plain emake here, because make tests
# may cache fonts and generate sandbox violations.
emake catdvi CC="$(tc-getCC)"
}
src_install() {
dobin catdvi
doman catdvi.1
dodoc AUTHORS ChangeLog NEWS README TODO
}
|