summaryrefslogtreecommitdiff
blob: 538dc896321aeed8ee77eb9ed45f6d907c27dfa6 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python{2_6,2_7} )

inherit latex-package distutils-r1

DESCRIPTION="cpssp - Draw protein secondary structures"
HOMEPAGE="https://www.ctan.org/pkg/cpssp"
SRC_URI="https://dev.gentoo.org/~alexxy/distfiles/${P}.zip"

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

BDEPEND="app-arch/unzip"

src_compile() {
	einfo "Extracting from cpssp.ins"
	latex cpssp.ins >/dev/null 2>&1
	einfo "Compiling doc"
	pdflatex cpssp.dtx >/dev/null 2>&1
	makeindex -s gind.ist -o cpssp.ind cpssp.idx >/dev/null 2>&1
	makeindex -s gglo.ist -o cpssp.gls cpssp.glo >/dev/null 2>&1
	pdflatex cpssp.dtx >/dev/null 2>&1
}

src_install() {
	latex-package_src_doinstall styles bin doc
	dobin cpssp
}