diff options
author | Jeffrey Gardner <je_fro@gentoo.org> | 2011-02-01 02:53:26 +0000 |
---|---|---|
committer | Jeffrey Gardner <je_fro@gentoo.org> | 2011-02-01 02:53:26 +0000 |
commit | b61567c4bafe9a4ae7725805429be31bfbc31f3d (patch) | |
tree | a88a2609feba004708defb7edb5f8a7b64b8ffe6 /sci-biology/seaview | |
parent | Initial addition. Ebuild written by me. (diff) | |
download | gentoo-2-b61567c4bafe9a4ae7725805429be31bfbc31f3d.tar.gz gentoo-2-b61567c4bafe9a4ae7725805429be31bfbc31f3d.tar.bz2 gentoo-2-b61567c4bafe9a4ae7725805429be31bfbc31f3d.zip |
Adding latest version.
(Portage version: 2.1.9.35/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/seaview')
-rw-r--r-- | sci-biology/seaview/ChangeLog | 9 | ||||
-rw-r--r-- | sci-biology/seaview/seaview-4.2.12.ebuild | 78 |
2 files changed, 85 insertions, 2 deletions
diff --git a/sci-biology/seaview/ChangeLog b/sci-biology/seaview/ChangeLog index e403271eca29..0ffacaa3eece 100644 --- a/sci-biology/seaview/ChangeLog +++ b/sci-biology/seaview/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-biology/seaview -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/seaview/ChangeLog,v 1.36 2010/07/16 22:05:28 hwoarang Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/seaview/ChangeLog,v 1.37 2011/02/01 02:53:26 je_fro Exp $ + +*seaview-4.2.12 (01 Feb 2011) + + 01 Feb 2011; Jeff Gardner <je_fro@gentoo.org> +seaview-4.2.12.ebuild: + Adding latest version. 16 Jul 2010; Markos Chandras <hwoarang@gentoo.org> seaview-4.2.5.ebuild: Stable on amd64 wrt bug #328429 diff --git a/sci-biology/seaview/seaview-4.2.12.ebuild b/sci-biology/seaview/seaview-4.2.12.ebuild new file mode 100644 index 000000000000..c6199ad14fea --- /dev/null +++ b/sci-biology/seaview/seaview-4.2.12.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/seaview/seaview-4.2.12.ebuild,v 1.1 2011/02/01 02:53:26 je_fro Exp $ + +EAPI="2" + +inherit toolchain-funcs multilib eutils base + +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 ~x86" +IUSE="+pdf +xft" + +DEPEND="x11-libs/fltk:1.1 + pdf? ( media-libs/pdflib ) + xft? ( x11-libs/libXft + x11-libs/fltk:1.1[xft] )" +RDEPEND="${DEPEND} + sci-biology/clustalw + || ( sci-libs/libmuscle sci-biology/muscle ) + sci-biology/phyml" + +S="${WORKDIR}/${PN}" + +src_prepare() { + # respect CXXFLAGS (package uses them as CFLAGS) + sed -i \ + -e "s:^CXX.*:CXX = $(tc-getCXX):" \ + -e "s:\$(OPT):${CXXFLAGS}:" \ + -e "s:^OPT:#OPT:" \ + -e "s:^#IFLTK .*:IFLTK = $(fltk-config --use-images --cxxflags):" \ + -e "s:^#LFLTK .*:LFLTK = $(fltk-config --use-images --ldflags):" \ + -e "s:^USE_XFT:#USE_XFT:" \ + -e "s:^#HELPFILE:HELPFILE:" \ + -e "s:^#PHYMLNAME:PHYMLNAME:" \ + Makefile || die "sed failed while editing Makefile" + + if use pdf; then + sed -i \ + -e "s:PDF_PS_FLAGS = -DNO_PDF:#PDF_PS_FLAGS = -DNO_PDF:" \ + -e "s:PDF_PS = postscript:#PDF_PS = postscript:" \ + -e "s:#PDF_INC = \$(HOME)/PDFlibLite:PDF_INC = /usr/include:" \ + -e "s:#PDF_LIB = \$(HOME)/PDFlibLite:PDF_LIB = /usr/lib:" \ + -e "s:#PDF_PS = pdf:PDF_PS = pdf:" \ + -e "s:#PDF_PS_FLAGS = -I\$(PDF_INC):PDF_PS_FLAGS = -I\$(PDF_INC):" \ + -e "s:#LPDF = -L\$(PDF_LIB) -lpdf:LPDF = -L\$(PDF_LIB) -lpdf:" \ + Makefile || die "sed failed while editing Makefile to enable pdf output" + fi + + if use xft; then + sed -i \ + -e "s:^#USE_XFT .*:USE_XFT = -DUSE_XFT $(xft-config --cflags):" \ + -e "s:-lXft:$(xft-config --libs):" \ + Makefile || die "sed failed while editing Makefile to enable xft" + else + sed -i -e "s:-lXft::" Makefile || die + fi + base_src_prepare +} + +src_install() { + dobin seaview || die + + # /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 || die + + make_desktop_entry seaview Seaview + + doman seaview.1 || die +} |