summaryrefslogtreecommitdiff
blob: c6fdee740ad78e4156dd860d8ec8014b00252e50 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/bera/bera-20040930.ebuild,v 1.1 2005/12/01 17:23:07 nattfodd Exp $

inherit latex-package

MY_P=${PN}
S=${WORKDIR}/${MY_P}
SUPPLIER="public"
DESCRIPTION="LaTeX package for the Bera Type1 font family"
HOMEPAGE="http://www.ctan.org/tex-archive/fonts/bera/"
SRC_URI="mirror://gentoo/${P}.zip"
LICENSE="LPPL-1.2"

DEPEND="app-arch/unzip"

KEYWORDS="~x86"
SLOT="0"

IUSE=""

src_unpack() {
	unpack ${A}
	cd ${S}
	unzip ${MY_P}.zip
}

src_install() {
	DOCS="${S}/README ${S}/LICENSE ${S}/doc/fonts/bera/bera.txt"
	# install sty and fonts
	cd ${S}/tex/latex/${MY_P}
	latex-package_src_install

	cd ${S}/fonts/vf/public/${MY_P}
	latex-package_src_install

	cd ${S}/fonts/tfm/public/${MY_P}
	latex-package_src_install

	# install map
	cd ${S}
	dodir ${TEXMF}/fonts/map/dvips/${MY_P}
	cp -pPR fonts/map/dvips/${MY_P}.map ${D}${TEXMF}/fonts/map/dvips/${MY_P}

	latex-package_src_install
}

pkg_postinst() {
	latex-package_rehash
	updmap-sys --enable Map ${MY_P}.map
}

pkg_postrm() {
	updmap-sys --disable ${MY_P}.map
}