# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 DESCRIPTION="Clustering software for microarray analysis" HOMEPAGE="http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/software.htm#ctv" SRC_URI="${P}.tar.gz" LICENSE="Eisen" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="X" DEPEND="X? ( x11-libs/motif )" RDEPEND=" !>=media-gfx/graphviz-2.28.0 X? ( x11-misc/xdg-utils app-text/mupdf )" RESTRICT="fetch" pkg_nofetch() { einfo "Please obtain ${P}.tar.gz from ${HOMEPAGE} and place it in ${DISTDIR}" } src_prepare() { sed -i \ -e 's:^docdir = .*$:docdir = @docdir@:' \ -e 's:^htmldir = .*$:htmldir = @htmldir@:' \ -e 's:^imagedir = .*$:imagedir = @htmldir@/images:' \ -e 's:^fileformatdir = .*$:fileformatdir = @docdir@:' \ X11/Makefile.in || die "sed failed" } src_configure() { econf \ $(use_with X x) \ --docdir="/usr/share/doc/${P}" \ --htmldir="/usr/share/doc/${P}/html" } src_install() { default insinto /usr/share/doc/${P}/examples doins example/example.c example/README insinto /usr/share/doc/${PR} doins doc/cluster.pdf }