You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-biology/clustalx/clustalx-2.1.ebuild

40 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/clustalx/clustalx-2.1.ebuild,v 1.3 2012/06/13 07:02:28 johu Exp $
EAPI=4
inherit eutils qt4-r2
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"
LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="x11-libs/qt-core:4
x11-libs/qt-gui:4"
RDEPEND="${DEPEND}
>=sci-biology/clustalw-2.1"
src_prepare() {
sed -e "s|colprot.xml|/usr/share/${PN}/colprot.xml|" \
-e "s|coldna.xml|/usr/share/${PN}/coldna.xml|" \
-e "s|colprint.xml|/usr/share/${PN}/colprint.xml|" \
-i ClustalQtParams.h || \
die "Failed to patch shared files location."
sed -e "s|clustalx.hlp|/usr/share/${PN}/clustalx.hlp|" \
-i HelpDisplayWidget.cpp || \
die "Failed to patch help file location."
}
src_install() {
dobin clustalx
insinto /usr/share/${PN}
doins colprot.xml coldna.xml colprint.xml clustalx.hlp
make_desktop_entry ${PN} ClustalX
}