blob: 2333b80d29c33ef94645694db38e5e5d6259b27f (
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
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/dirac/dirac-1.0.2.ebuild,v 1.8 2009/05/30 09:17:32 ulm Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils autotools
DESCRIPTION="Open Source video codec"
HOMEPAGE="http://dirac.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="mmx debug doc"
DEPEND="doc? ( app-doc/doxygen
virtual/latex-base
media-gfx/graphviz
|| ( app-text/dvipdfm
app-text/ptex )
)"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.5.2-doc.patch"
AT_M4DIR="m4" eautoreconf
}
src_compile() {
econf \
$(use_enable mmx) \
$(use_enable debug) \
$(use_enable doc) \
|| die "econf failed"
VARTEXFONTS="${T}/fonts" emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" \
htmldir="/usr/share/doc/${PF}/html" \
latexdir="/usr/share/doc/${PF}/programmers" \
algodir="/usr/share/doc/${PF}/algorithm" \
faqdir="/usr/share/doc/${PF}" \
install || die "emake install failed"
dodoc README AUTHORS NEWS TODO ChangeLog
}
|