/[gentoo-x86]/sci-biology/arb/arb-5.3.ebuild
Gentoo

Contents of /sci-biology/arb/arb-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Oct 24 19:28:55 2012 UTC (2 years, 9 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/arb/arb-5.3.ebuild,v 1.1 2012/08/14 16:47:19 jlec Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Tools for DNA/RNA sequence database handling and data analysis, phylogenetic analysis"
10 HOMEPAGE="http://www.arb-home.de/"
11 SRC_URI="
12 http://download.arb-home.de/release/arb_${PV}/arbsrc.tgz -> ${P}.tgz
13 http://dev.gentoo.org/~jlec/distfiles/${P}-linker.patch.xz"
14
15 SLOT="0"
16 LICENSE="arb"
17 IUSE="+opengl"
18 KEYWORDS="~amd64 ~x86"
19
20 CDEPEND="app-text/sablotron
21 media-libs/libpng
22 media-libs/tiff
23 www-client/lynx
24 x11-libs/libXaw
25 x11-libs/libXpm
26 x11-libs/motif:0
27 opengl? (
28 media-libs/glew
29 media-libs/freeglut
30 || (
31 media-libs/mesa[motif]
32 ( media-libs/mesa x11-libs/libGLw ) ) )"
33 DEPEND="${CDEPEND}
34 sys-process/time"
35 RDEPEND="${CDEPEND}
36 sci-visualization/gnuplot"
37 # Recommended: libmotif3 gv xfig xterm treetool java
38
39 src_unpack() {
40 unpack ${A}
41 mv arbsrc* ${P}
42 }
43
44 src_prepare() {
45 epatch \
46 "${WORKDIR}"/${P}-linker.patch \
47 "${FILESDIR}"/5.1-libs.patch \
48 "${FILESDIR}"/5.1-bfr-overflow.patch \
49 "${FILESDIR}"/5.2-libpng15.patch \
50 "${FILESDIR}"/${PN}-5.2-gcc-47.patch
51 sed \
52 -e 's/all: checks/all:/' \
53 -e "s/GCC:=.*/GCC=$(tc-getCC) ${CFLAGS}/" \
54 -e "s/GPP:=.*/GPP=$(tc-getCXX) ${CXXFLAGS}/" \
55 -i "${S}/Makefile" || die
56 cp config.makefile.template config.makefile
57 sed -i -e '/^[ \t]*read/ d' -e 's/SHELL_ANS=0/SHELL_ANS=1/' "${S}/arb_install.sh" || die
58 use amd64 && sed -i -e 's/ARB_64 := 0/ARB_64 := 1/' config.makefile
59 use opengl || sed -i -e 's/OPENGL := 1/OPENGL := 0/' config.makefile
60 emake ARBHOME="${S}" links
61 }
62
63 src_compile() {
64 emake ARBHOME="${S}" PATH="${PATH}:${S}/bin" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${S}/lib" tarfile
65 use amd64 && mv arb.tgz arb.64.gentoo.tgz
66 use x86 && mv arb.tgz arb.32.gentoo.tgz
67 ln -s arb.*.tgz arb.tgz || die
68 }
69
70 src_install() {
71 ARBHOME="${D}/opt/arb" "${S}/arb_install.sh" || die
72 cat <<- EOF > "${S}/99${PN}"
73 ARBHOME=/opt/arb
74 PATH=/opt/arb/bin
75 LD_LIBRARY_PATH=/opt/arb/lib
76 EOF
77 doenvd "${S}/99${PN}"
78 }

  ViewVC Help
Powered by ViewVC 1.1.20