blob: 2b8bc777833a769321746232b8b0de8fbdf68433 [file] [log] [blame]
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/meme/meme-4.3.0-r1.ebuild,v 1.1 2010/03/07 20:56:03 jlec Exp $
EAPI="3"
inherit autotools eutils
DESCRIPTION="The MEME/MAST system - Motif discovery and search"
HOMEPAGE="http://meme.sdsc.edu/meme"
SRC_URI="http://meme.nbcr.net/downloads/${PN}_${PV}.tar.gz"
LICENSE="meme"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="mpi"
DEPEND="dev-libs/libxml2
dev-libs/libxslt
app-shells/tcsh
mpi? ( virtual/mpi )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}_${PV}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-4.0.0-Makefile.am.patch
eautoreconf
}
src_configure() {
MY_PREFIX="${EROOT}opt/meme"
USE_DISABLE_MPI=""; if ! use mpi; then USE_DISABLE_MPI="--enable-serial"; fi
econf --prefix=$MY_PREFIX --sysconfdir=${MY_PREFIX}/etc \
--with-logs="${EROOT}var/log/meme" \
$USE_DISABLE_MPI
# $(use_enable openmp)
}
#pkg_setup() {
# generate meme group to restrict logging to /var/log/meme
# enewgroup meme
#}
src_install() {
emake install DESTDIR="${D}" || die "Failed to install program files."
echo "PATH=${EPREFIX}/opt/${PN}/bin" > 99${PN}
doenvd 99${PN} || die
# allow logging only for members of meme group
# diropts -m 0770 -g meme -o root
diropts -m ugo+rwxt -o root
keepdir /var/log/meme
}
#pkg_postinst() {
# einfo 'Log files are produced in the "/var/log/meme" directory. Users'
# einfo 'need to be part of the meme group to use this facility.'
#}
src_test() {
# bug #297070
emake -j1 test || die "Regression tests failed."
}