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

EAPI=8

MY_PN="${PN}-$(ver_rs 2 -)"
DESCRIPTION="Circular layout visualization of genomic and other data"
HOMEPAGE="http://circos.ca/"
SRC_URI="http://circos.ca/distribution/${MY_PN}.tgz"
S="${WORKDIR}/${MY_PN}"

LICENSE="GPL-2+ GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="dev-perl/Config-General
	dev-perl/Font-TTF
	dev-perl/GD
	dev-perl/Math-Bezier
	dev-perl/Math-Round
	dev-perl/Math-VecStat
	dev-perl/Params-Validate
	dev-perl/Readonly
	dev-perl/Regexp-Common
	dev-perl/Set-IntSpan
	dev-perl/Statistics-Basic
	dev-perl/SVG
	dev-perl/Text-Format
	dev-perl/Graphics-ColorObject
	dev-perl/List-MoreUtils"
RDEPEND="${DEPEND}"

src_prepare() {
	# remove windows only things
	rm -r "${S}/bin/${PN}.exe" || die
	rm -r "${S}/bin/compile.bat" || die
	default
}

src_install() {
	insinto /opt/${PN}
	doins -r */

	exeinto /opt/${PN}/bin
	doexe bin/circos bin/gddiag

	dosym ../../opt/${PN}/bin/circos /usr/bin/circos

	einstalldocs

	local d
	while IFS="" read -d $'\0' -r d; do
		dodoc "${d}"
	done < <(find * -maxdepth 0 -type f -print0)
}