blob: 7d6a7c346810cb3ebb80aab14eeea12dcafa1797 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/listings/listings-1.4.ebuild,v 1.6 2008/03/16 14:49:49 coldwind Exp $
inherit latex-package
DESCRIPTION="A source code and pretty print package for LaTeX"
# Taken from ctan:
# http://www.tex.ac.uk/tex-archive/macros/latex/contrib/listings.zip
SRC_URI="mirror://gentoo/${P}.zip"
HOMEPAGE="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/listings/"
LICENSE="LPPL-1.3"
IUSE="doc"
SLOT="0"
KEYWORDS="alpha amd64 ppc sparc x86"
DEPEND="app-arch/unzip"
S=${WORKDIR}/${PN}
TEXMF="/usr/share/texmf-site"
DOCS="README"
src_compile() {
export VARTEXFONTS="${T}/fonts"
emake listings || die "Failed to create listings.sty"
if use doc; then
emake -j1 all || die "Failed to create documentation"
fi
}
src_install() {
export VARTEXFONTS="${T}/fonts"
latex-package_src_install
}
|