aboutsummaryrefslogtreecommitdiff
blob: 99719c803ff6d12875f89b844567f8efc4730857 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit qmake-utils

DESCRIPTION="A free open-source cross-platform bioinformatics software"
HOMEPAGE="http://ugene.unipro.ru"
SRC_URI="http://${PN}.unipro.ru/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cpu_flags_x86_sse2"

# http://ugene.net/download.html states Qt5.4 and QtWebkit but:
#   Project MESSAGE: Cannot build Unipro UGENE with Qt version 4.8.7
#   Project ERROR: Use at least Qt 5.2.1. 
DEPEND="
	>=dev-qt/qtgui-5.2.1
	>=dev-qt/qtscript-5.2.1[scripttools]"
RDEPEND="${DEPEND}"

LANGS="cs en ru zh"

src_configure() {
	local CONFIG_OPTS
	if use amd64; then
		CONFIG_OPTS+=( CONFIG+="x64" )
	elif use ppc; then
		CONFIG_OPTS+=( CONFIG+="ppc" )
	fi

	use cpu_flags_x86_sse2 && CONFIG_OPTS+=( use_sse2 )

	eqmake5 $CONFIG_OPTS || die
}

src_install() {
	emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install
}