summaryrefslogtreecommitdiff
blob: 145a7eef0596eb23506d4bc3ed98a89b0e24b1dc (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
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit latex-package

MY_PN="LuxiMono"
DESCRIPTION="LaTeX Type1 typewriter font"
SRC_URI="http://dev.gentooexperimental.org/~dreeevil/${MY_PN}-${PV}.zip"
HOMEPAGE="http://www.ctan.org/tex-archive/fonts/LuxiMono/"
LICENSE="luximono"

IUSE=""
SLOT="0"
KEYWORDS="~x86"

RDEPEND="virtual/latex-base"
DEPEND="${RDEPEND}
	app-arch/unzip"

S=${WORKDIR}/${MY_PN}
SUPPLIER="public"

src_unpack(){
	unpack ${A}
	cd "${S}"
	unzip ul9.zip || die "unzip failed"
}

src_install() {
	local pack="luxi"
	local texshr="${TEXMF}/fonts"

	# latex-package_src_doinstall generally uses different
	# directories than this package expects

	dodoc doc/fonts/luxi/* README.luximono || die "dodoc failed"

	insinto ${texshr}/map/dvips/luxi
	doins dvips/config/* || die

	insinto ${texshr}/afm/${SUPPLIER}/luxi
	doins *.afm || die "doins afm failed"

	insinto ${texshr}/tfm/${SUPPLIER}/luxi
	doins fonts/tfm/public/luxi/*.tfm || die "doins tfm failed"

	insinto ${texshr}/vf/${SUPPLIER}/luxi
	doins fonts/vf/public/luxi/*.vf || die "doins vf failed"

	insinto ${texshr}/type1/${SUPPLIER}/luxi
	doins *.pfb || die "doins pfb failed"

	insinto ${TEXMF}/tex/latex/luxi
	doins tex/latex/luxi/* || die

}

pkg_postinst() {
#	this order is intended
	latex-package_rehash
	updmap-sys --enable Map ul9.map
}

pkg_postrm() {
	updmap-sys --disable ul9.map
	latex-package_rehash
}