blob: cfb0b79adf74b9a1abf8bfebc102520cd2b85271 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="adds culmus fonts support for hebrew documents in LaTeX."
HOMEPAGE="http://ivritex.sourceforge.net/"
SRC_URI="mirror://sourceforge/ivritex/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RDEPEND=">=app-text/tetex-3.0"
DEPEND="${RDEPEND}
media-fonts/culmus"
S=${WORKDIR}/${PN}
src_compile() {
emake CULMUSDIR=/usr/share/fonts/culmus/ || die "Compile Failed!"
}
src_install() {
#I'm using pkginstall instead of regular install to avoid sandbox
#violations caused by running mktexlsr and updmap
emake CULMUSDIR=/usr/share/fonts/culmus/ \
TEXMFDIR="${D}/usr/share/texmf/" pkginstall \
|| die "Install Failed!"
dodoc README
}
pkg_postinst() {
mktexlsr
updmap-sys --enable Map=culmus.map
}
pkg_postrm() {
mktexlsr
updmap-sys --disable culmus.map
}
|