1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION=" The PHYLogeny Inference Package"
9 HOMEPAGE="http://evolution.genetics.washington.edu/phylip.html"
10 SRC_URI="http://evolution.gs.washington.edu/${PN}/download/${P}.tar.gz"
15 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
16 # 'mix' tool collides with dev-lang/elixir, bug #537514
17 RDEPEND="x11-libs/libXaw
22 S="${WORKDIR}/${P}/src"
25 mv Makefile.unx Makefile || die
27 -e "/ -o /s:\(\$(CC)\):\1 ${LDFLAGS}:g" \
28 -i Makefile || die "Patching Makefile failed."
36 CFLAGS="${CFLAGS} -Wno-unused-result" \
41 cd "${WORKDIR}/${P}" || die
43 mv exe/font* fonts || die "Font move failed."
44 mv exe/factor exe/factor-${PN} || die "Renaming factor failed."
46 dolib.so exe/*so && rm exe/*so
49 dodoc "${FILESDIR}"/README.Gentoo
51 dohtml -r phylip.html doc
53 insinto /usr/share/${PN}/