/[gentoo-x86]/sci-biology/phylip/phylip-3.67.ebuild
Gentoo

Contents of /sci-biology/phylip/phylip-3.67.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Apr 22 06:51:38 2015 UTC (3 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/phylip/phylip-3.67.ebuild,v 1.7 2015/03/29 14:05:50 jlec Exp $
4
5 inherit toolchain-funcs
6
7 DESCRIPTION=" The PHYLogeny Inference Package"
8 LICENSE="freedist"
9 HOMEPAGE="http://evolution.genetics.washington.edu/phylip.html"
10 SRC_URI="http://evolution.gs.washington.edu/${PN}/download/${P}.tar.gz"
11
12 SLOT="0"
13 IUSE=""
14 KEYWORDS="amd64 ppc x86"
15
16 RDEPEND="x11-libs/libXaw"
17
18 DEPEND="${RDEPEND}
19 x11-proto/xproto"
20
21 S="${WORKDIR}/${P}/src"
22
23 src_compile() {
24 sed -e "s/CFLAGS = -O3 -fomit-frame-pointer/CFLAGS = ${CFLAGS}/" \
25 -e "s/CC = cc/CC = $(tc-getCC)/" \
26 -e "s/DC = cc/DC = $(tc-getCC)/" \
27 -i Makefile || die "Patching Makefile failed."
28 mkdir ../fonts
29 emake -j1 all put || die "Compilation failed."
30 mv ../exe/font* ../fonts || die "Font move failed."
31 mv ../exe/factor ../exe/factor-${PN} || die "Renaming factor failed."
32 }
33
34 src_install() {
35 cd "${WORKDIR}/${P}"
36
37 dobin exe/* || die "Failed to install programs."
38
39 dodoc "${FILESDIR}"/README.Gentoo || die "Failed to install Gentoo notes."
40
41 dohtml phylip.html || die "Failed to install HTML documentation index."
42 insinto /usr/share/doc/${PF}/html/doc
43 doins doc/* || die "Failed to install HTML documentation."
44
45 insinto /usr/share/${PN}/fonts
46 doins fonts/* || die "Fonts installation failed."
47 }

  ViewVC Help
Powered by ViewVC 1.1.20