You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
9 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION=" The PHYLogeny Inference Package"
|
||
|
HOMEPAGE="http://evolution.genetics.washington.edu/phylip.html"
|
||
|
SRC_URI="http://evolution.gs.washington.edu/${PN}/download/${P}.tar.gz"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="BSD-2"
|
||
|
IUSE=""
|
||
|
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||
|
|
||
|
RDEPEND="x11-libs/libXaw"
|
||
|
DEPEND="${RDEPEND}
|
||
|
x11-proto/xproto"
|
||
|
|
||
|
S="${WORKDIR}/${P}/src"
|
||
|
|
||
|
src_prepare() {
|
||
|
mv Makefile.unx Makefile || die
|
||
|
sed \
|
||
|
-e "/ -o /s:\(\$(CC)\):\1 ${LDFLAGS}:g" \
|
||
|
-i Makefile || die "Patching Makefile failed."
|
||
|
mkdir ../fonts || die
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake -j1 \
|
||
|
CC="$(tc-getCC)" \
|
||
|
DC="$(tc-getCC)" \
|
||
|
CFLAGS="${CFLAGS} -Wno-unused-result" \
|
||
|
all put
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
9 years ago
|
cd "${WORKDIR}/${P}" || die
|
||
9 years ago
|
|
||
|
mv exe/font* fonts || die "Font move failed."
|
||
|
mv exe/factor exe/factor-${PN} || die "Renaming factor failed."
|
||
|
|
||
9 years ago
|
dolib.so exe/*so && rm exe/*so || die
|
||
9 years ago
|
dobin exe/*
|
||
|
|
||
|
dodoc "${FILESDIR}"/README.Gentoo
|
||
|
|
||
|
dohtml -r phylip.html doc
|
||
|
|
||
|
insinto /usr/share/${PN}/
|
||
|
doins -r fonts
|
||
|
}
|