summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-20 11:14:23 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-20 12:29:21 +0100
commit68d94399d2dbcc0efa6835df6bef41475d5ddbc2 (patch)
tree45b984859721288e09b399ed7f6d06dd27ba3e1d /sci-biology/seaview
parentdev-python/cffi: Version Bump (diff)
downloadgentoo-68d94399d2dbcc0efa6835df6bef41475d5ddbc2.tar.gz
gentoo-68d94399d2dbcc0efa6835df6bef41475d5ddbc2.tar.bz2
gentoo-68d94399d2dbcc0efa6835df6bef41475d5ddbc2.zip
sci-biology/seaview: Version Bump
fixes compilation problems with newer fltk Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=556750 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-biology/seaview')
-rw-r--r--sci-biology/seaview/Manifest1
-rw-r--r--sci-biology/seaview/seaview-4.5.4.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/sci-biology/seaview/Manifest b/sci-biology/seaview/Manifest
index 6bb12c484533..fc48e74418df 100644
--- a/sci-biology/seaview/Manifest
+++ b/sci-biology/seaview/Manifest
@@ -1 +1,2 @@
DIST seaview_4.3.5.tar.gz 309530 SHA256 38050d6792eb799d61e5e849f76971a9c7d45f467e5c04fbc4363062d8e7100d SHA512 b20c018da9a29d79fe0393fed5d29117729492ea8f36e72d4aeb98044a3de4a13331bd29e76ca552a08f6da764e57e69f9fb0325fc031551514d7a54b56c849a WHIRLPOOL 82fc7324bf1d934d69712629808d6b4178a5f2cdcf25351fb2fe2784f9cea0c1ec0aaaba7a3a08c84795108eb049394ceaab052af8cc0efbb0975064fa4e80e0
+DIST seaview_4.5.4.tar.gz 420608 SHA256 f4569ad7f1d8de2b141175b1122f036cb45f55f8e9e59e42d6026668e091e7ed SHA512 a8a2e49a13f87ae4279311068147169b1e17874e9ce5787003b854c7271efc7a128db6916bb883a9b7b0b90f855fe40d83c77e9fd9f5751464e04346b9923301 WHIRLPOOL c52f7ac9d7d4c85d7670bdb3a87c9ba94904b25e11583ad8abf3de9f43fa3967d64b96d447ebb5ebe614053c4de64828d1c3c5763c64dc269e78fb3c49151886
diff --git a/sci-biology/seaview/seaview-4.5.4.ebuild b/sci-biology/seaview/seaview-4.5.4.ebuild
new file mode 100644
index 000000000000..16459f31e3a8
--- /dev/null
+++ b/sci-biology/seaview/seaview-4.5.4.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A graphical multiple sequence alignment editor"
+HOMEPAGE="http://pbil.univ-lyon1.fr/software/seaview.html"
+SRC_URI="ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/seaview/archive/${PN}_${PV}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="+xft"
+
+CDEPEND="
+ sys-libs/zlib
+ x11-libs/fltk:1
+ x11-libs/libX11
+ xft? (
+ x11-libs/libXft
+ x11-libs/fltk:1[xft] )"
+RDEPEND="${CDEPEND}
+ sci-biology/clustalw
+ || ( sci-libs/libmuscle sci-biology/muscle )
+ sci-biology/phyml"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ # respect CXXFLAGS (package uses them as CFLAGS)
+ sed \
+ -e "s:^CC.*:CC = $(tc-getCC):" \
+ -e "s:^CXX.*:CXX = $(tc-getCXX):" \
+ -e "s:\$(OPT):${CXXFLAGS}:" \
+ -e "s:^OPT:#OPT:" \
+ -e "s:^FLTK = .*$:FLTK = ${EPREFIX}/usr/include/fltk-1:" \
+ -e "s:^#IFLTK .*:IFLTK = $(fltk-config --use-images --cflags):" \
+ -e "s:^#LFLTK .*:LFLTK = $(fltk-config --use-images --ldflags):" \
+ -e "s:^USE_XFT:#USE_XFT:" \
+ -e "s:^#HELPFILE:HELPFILE:" \
+ -e "s:/usr/share/doc/seaview/seaview.htm:${EPREFIX}/usr/share/seaview/seaview.htm:" \
+ -e "s:^#PHYMLNAME:PHYMLNAME:" \
+ -e 's:-lXinerama::g' \
+ -e 's:-lpng::g' \
+ -e 's:-ljpeg::g' \
+ -e 's:-lfontconfig::g' \
+ -i Makefile || die "sed failed while editing Makefile"
+
+ if use xft; then
+ sed \
+ -e "s:^#USE_XFT .*:USE_XFT = -DUSE_XFT $($(tc-getPKG_CONFIG) --cflags xft):" \
+ -e "s:-lXft:$($(tc-getPKG_CONFIG) --libs xft):" \
+ -i Makefile || die "sed failed while editing Makefile to enable xft"
+ else
+ sed -i -e "s:-lXft::" Makefile || die
+ fi
+}
+
+src_install() {
+ dobin seaview
+
+ # /usr/share/seaview/seaview.html is hardcoded in the binary, see Makefile
+ insinto /usr/share/seaview
+ doins example.nxs seaview.html
+
+ insinto /usr/share/seaview/images
+ doins seaview.xpm
+
+ make_desktop_entry seaview Seaview
+
+ doman seaview.1
+}