summaryrefslogtreecommitdiff
blob: 23d77ae5918ba0940c888c434b6218687b4f37b4 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit latex-package

DESCRIPTION="LaTeX package to typeset SI units, numbers and angles."
HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/SIstyle/"
SRC_URI="http://www.rennings.net/gentoo/distfiles/${P}.zip"

LICENSE="LPPL-1.3b"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND=""

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd "${S}/source/latex/SIstyle/figs"
	unpack ./graphs_scr.zip
}

src_install() {
	cd "${S}/tex/latex/SIstyle"
	latex-package_src_install
	cd "${S}/doc/latex/SIstyle"
	latex-package_src_install

	cd "${S}/source/latex/SIstyle"
	insinto "${TEXMF}/source/latex/SIstyle"
	doins sistyle.dtx sistyle.ins figs/fig{1,2}.*ps || die
	cd figs/graphs_scr
	insinto "${TEXMF}/source/latex/SIstyle/graphs_src"
	doins *.mp MPfig.bat readme_figs.txt *.m || die
}