Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/seaview/
Date: Mon, 30 Jan 2012 00:57:33
Message-Id: 2fcbf893286791d9d0139b9250938d57df54c65a.mmokrejs@gentoo
1 commit: 2fcbf893286791d9d0139b9250938d57df54c65a
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Mon Jan 30 00:57:29 2012 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Mon Jan 30 00:57:29 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2fcbf893
7
8 sci-biology/seaview: version bump; add missing symlink so that the C++ header can be found; remove calll to xft-config and use pkg-config instead; set our Gentoo FLTK path (not include path) to /usr/include/fltk-1 so that svg.o gets included during linking, otherwise we get undefined reference to svg_tree_save(FD_nj_plot*)
9
10 (Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sci-biology/seaview/ChangeLog | 13 ++++++
14 sci-biology/seaview/metadata.xml | 16 +++++++
15 sci-biology/seaview/seaview-4.3.3.ebuild | 69 ++++++++++++++++++++++++++++++
16 3 files changed, 98 insertions(+), 0 deletions(-)
17
18 diff --git a/sci-biology/seaview/ChangeLog b/sci-biology/seaview/ChangeLog
19 new file mode 100644
20 index 0000000..cd6851b
21 --- /dev/null
22 +++ b/sci-biology/seaview/ChangeLog
23 @@ -0,0 +1,13 @@
24 +# ChangeLog for sci-biology/seaview
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*seaview-4.3.3 (30 Jan 2012)
29 +
30 + 30 Jan 2012; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
31 + +seaview-4.3.3.ebuild, +metadata.xml:
32 + version bump; add missing symlink so that the C++ header can be found; remove
33 + calll to xft-config and use pkg-config instead; set our Gentoo FLTK path (not
34 + include path) to /usr/include/fltk-1 so that svg.o gets included during
35 + linking, otherwise we get undefined reference to svg_tree_save(FD_nj_plot*)
36 +
37
38 diff --git a/sci-biology/seaview/metadata.xml b/sci-biology/seaview/metadata.xml
39 new file mode 100644
40 index 0000000..0c1ebc3
41 --- /dev/null
42 +++ b/sci-biology/seaview/metadata.xml
43 @@ -0,0 +1,16 @@
44 +<?xml version="1.0" encoding="UTF-8"?>
45 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
46 +<pkgmetadata>
47 + <maintainer>
48 + <email>weaver@g.o</email>
49 + <name>Andrey Kislyuk</name>
50 + </maintainer>
51 + <herd>sci-biology</herd>
52 + <longdescription>
53 + SeaView is a graphical multiple sequence alignment editor developped by
54 + Manolo Gouy. SeaView is able to read and write various alignment
55 + formats (NEXUS, MSF, CLUSTAL, FASTA, PHYLIP, MASE). It allows to
56 + manually edit the alignment, and also to run DOT-PLOT or CLUSTALW
57 + programs to locally improve the alignment.
58 + </longdescription>
59 +</pkgmetadata>
60
61 diff --git a/sci-biology/seaview/seaview-4.3.3.ebuild b/sci-biology/seaview/seaview-4.3.3.ebuild
62 new file mode 100644
63 index 0000000..b2cfe65
64 --- /dev/null
65 +++ b/sci-biology/seaview/seaview-4.3.3.ebuild
66 @@ -0,0 +1,69 @@
67 +# Copyright 1999-2012 Gentoo Foundation
68 +# Distributed under the terms of the GNU General Public License v2
69 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/seaview/seaview-4.2.5.ebuild,v 1.5 2011/03/20 20:02:27 jlec Exp $
70 +
71 +EAPI="2"
72 +
73 +inherit toolchain-funcs multilib eutils base
74 +
75 +DESCRIPTION="A graphical multiple sequence alignment editor"
76 +HOMEPAGE="http://pbil.univ-lyon1.fr/software/seaview.html"
77 +SRC_URI="ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/seaview/archive/${PN}_${PV}.tar.gz"
78 +
79 +LICENSE="public-domain"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +IUSE="+xft"
83 +
84 +DEPEND="x11-libs/fltk:1
85 + xft? ( x11-libs/libXft
86 + x11-libs/fltk:1[xft] )"
87 +RDEPEND="${DEPEND}
88 + sci-biology/clustalw
89 + || ( sci-libs/libmuscle sci-biology/muscle )
90 + sci-biology/phyml"
91 +
92 +S="${WORKDIR}/${PN}"
93 +
94 +src_prepare() {
95 + # respect CXXFLAGS (package uses them as CFLAGS)
96 + sed -i \
97 + -e "s:^CXX.*:CXX = $(tc-getCXX):" \
98 + -e "s:\$(OPT):${CXXFLAGS}:" \
99 + -e "s:^OPT:#OPT:" \
100 + -e "s:^FLTK = /usr/include:FLTK = /usr/include/fltk-1:" \
101 + -e "s:^#IFLTK .*:IFLTK = $(fltk-config --use-images --cflags):" \
102 + -e "s:^#LFLTK .*:LFLTK = $(fltk-config --use-images --ldflags):" \
103 + -e "s:^USE_XFT:#USE_XFT:" \
104 + -e "s:^#HELPFILE:HELPFILE:" \
105 + -e "s:/usr/share/doc/seaview/seaview.htm:/usr/share/seaview/seaview.htm:" \
106 + -e "s:^#PHYMLNAME:PHYMLNAME:" \
107 + Makefile || die "sed failed while editing Makefile"
108 +
109 + if use xft; then
110 + sed -i \
111 + -e "s:^#USE_XFT .*:USE_XFT = -DUSE_XFT $(pkg-config --cflags xft):" \
112 + -e "s:-lXft:$(pkg-config --libs xft):" \
113 + Makefile || die "sed failed while editing Makefile to enable xft"
114 + else
115 + sed -i -e "s:-lXft::" Makefile || die
116 + fi
117 + cd FL || die
118 + ln -sf . FL
119 + base_src_prepare
120 +}
121 +
122 +src_install() {
123 + dobin seaview || die
124 +
125 + # /usr/share/seaview/seaview.html is hardcoded in the binary, see Makefile
126 + insinto /usr/share/seaview
127 + doins example.nxs seaview.html
128 +
129 + insinto /usr/share/seaview/images
130 + doins seaview.xpm || die
131 +
132 + make_desktop_entry seaview Seaview
133 +
134 + doman seaview.1 || die
135 +}