summaryrefslogtreecommitdiff
blob: 599981b16af725507c9fb07e5dc227a14679d069 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

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=""

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
}