blob: 4a3199f352c9858682bdeed29d25c2fad0b66b66 (
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
56
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop qmake-utils
DESCRIPTION="Graphical interface for the ClustalW multiple alignment program"
HOMEPAGE="http://www.ebi.ac.uk/tools/clustalw2/"
SRC_URI="
http://www.clustal.org/download/current/${P}.tar.gz
https://dev.gentoo.org/~jlec/distfiles/${PN}.png.xz"
LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
"
RDEPEND="${DEPEND}
>=sci-biology/clustalw-${PV}
"
PATCHES=( "${FILESDIR}/${P}"-qt5.patch ) # kindly borrowed from Debian
src_prepare() {
default
sed \
-e "s|colprot.xml|${EPREFIX}/usr/share/${PN}/colprot.xml|" \
-e "s|coldna.xml|${EPREFIX}/usr/share/${PN}/coldna.xml|" \
-e "s|colprint.xml|${EPREFIX}/usr/share/${PN}/colprint.xml|" \
-i ClustalQtParams.h || \
die "Failed to patch shared files location."
sed \
-e "s|clustalx.hlp|${EPREFIX}/usr/share/${PN}/clustalx.hlp|" \
-i HelpDisplayWidget.cpp || \
die "Failed to patch help file location."
rm -rf usr || die
}
src_configure() {
eqmake5
}
src_install() {
dobin clustalx
insinto /usr/share/${PN}
doins colprot.xml coldna.xml colprint.xml clustalx.hlp
make_desktop_entry ${PN} ClustalX
doicon "${WORKDIR}"/${PN}.png
}
|