public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-biology/meme: ChangeLog meme-3.5.7.ebuild
@ 2008-09-12 14:06 Markus Dittrich (markusle)
  0 siblings, 0 replies; only message in thread
From: Markus Dittrich (markusle) @ 2008-09-12 14:06 UTC (permalink / raw
  To: gentoo-commits

markusle    08/09/12 14:06:54

  Modified:             ChangeLog
  Added:                meme-3.5.7.ebuild
  Log:
  Version bump.
  (Portage version: 2.2_rc8/cvs/Linux 2.6.26-SENTINEL-2 i686)

Revision  Changes    Path
1.8                  sci-biology/meme/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/meme/ChangeLog?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/meme/ChangeLog?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/meme/ChangeLog?r1=1.7&r2=1.8

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-biology/meme/ChangeLog,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ChangeLog	14 Jun 2008 12:34:50 -0000	1.7
+++ ChangeLog	12 Sep 2008 14:06:53 -0000	1.8
@@ -1,6 +1,11 @@
 # ChangeLog for sci-biology/meme
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/meme/ChangeLog,v 1.7 2008/06/14 12:34:50 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/meme/ChangeLog,v 1.8 2008/09/12 14:06:53 markusle Exp $
+
+*meme-3.5.7 (12 Sep 2008)
+
+  12 Sep 2008; Markus Dittrich <markusle@gentoo.org> +meme-3.5.7.ebuild:
+  Version bump.
 
   14 Jun 2008; Markus Dittrich <markusle@gentoo.org> -meme-3.5.4.ebuild:
   Removed old ebuild with bad autotools usage (fixes bug #226609).



1.1                  sci-biology/meme/meme-3.5.7.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/meme/meme-3.5.7.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/meme/meme-3.5.7.ebuild?rev=1.1&content-type=text/plain

Index: meme-3.5.7.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/meme/meme-3.5.7.ebuild,v 1.1 2008/09/12 14:06:53 markusle Exp $

inherit autotools eutils toolchain-funcs

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="~x86 ~amd64"
# Other possible USE flags include "debug", "client", "server", "web",
# "queue". Other variables must be set at compile time, but only when
# the Web server is built. Right now, Web server and client are disabled.
IUSE="mpi"

# Works only with LAM-MPI.
DEPEND=">=dev-lang/perl-5.6.1
	mpi? ( sys-cluster/lam-mpi )"

S="${WORKDIR}/${PN}_${PV}"

pkg_setup() {
	# generate meme group to restrict logging to 
	# /var/log/meme
	enewgroup meme
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${PN}-3.5.4-Makefile.am.patch"
	einfo "Regenerating autotools files..."
	eautoreconf
}

src_compile() {
	local EXTRA_CONF
	# Build system is too bugy to make the programs use standard locations.
	# Put everything in "/opt" instead.
	EXTRA_CONF="${EXTRA_CONF} --prefix=/opt/${PN}"
	EXTRA_CONF="${EXTRA_CONF} --with-logs=/var/log/${PN}"
	# Connect hyperlinks to official Web site.
	EXTRA_CONF="${EXTRA_CONF} --with-url=http://meme.nbcr.net/meme"
	# Disable Web server, client and Web site.
	EXTRA_CONF="${EXTRA_CONF} --disable-server --disable-client --disable-web"
	# Parallel implementation
	if ! use mpi; then
		EXTRA_CONF="${EXTRA_CONF} --enable-serial"
	fi

	./configure ${EXTRA_CONF} || die "Configure failed."
	CC="$(tc-getCC)" ac_cc_opt="${CFLAGS}"  make -e || die "Make failed."

# Install parallel files only on x86, otherwise the install fails with the error:
# i386 architecture of input file `mp.o' is incompatible with i386:x86-64 output
	if [[ "${ARCH}" == "x86" ]] ; then
		if use mpi; then
			cd src/parallel
			make || die "Parallel make failed."
		fi
	fi
}

src_install() {
	make install DESTDIR="${D}" || die "Failed to install program files."
	exeinto "/opt/${PN}/bin"
	if [[ "${ARCH}" == "x86" ]] ; then
		if use mpi; then
		doexe "${S}/src/parallel/${PN}_p" || \
			die "Failed to install parallel MEME implementation."
		fi
	fi

	# allow logging only for members of meme group
	diropts -m 0770 -g meme -o root
	keepdir "/var/log/${PN}"
}

pkg_postinst() {
	echo
	einfo 'Prior to using MEME/MAST, you should source "/opt/meme/etc/meme.sh"'
	einfo '(or "/opt/meme/etc/meme.csh" if you use a csh-style shell). To do'
	einfo 'this automatically with bash, add the following statement to your'
	einfo '"~/.bashrc" file (without the quotes): "source /opt/meme/etc/meme.sh".'
	echo
	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.'
	echo
}

src_test() {
	make test || die "Regression tests failed."
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-12 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 14:06 [gentoo-commits] gentoo-x86 commit in sci-biology/meme: ChangeLog meme-3.5.7.ebuild Markus Dittrich (markusle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox