From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pxl6e-00019q-DH for garchives@archives.gentoo.org; Thu, 10 Mar 2011 19:01:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C82CFE0529; Thu, 10 Mar 2011 19:00:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 841F4E0529 for ; Thu, 10 Mar 2011 19:00:21 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D23A81B4169 for ; Thu, 10 Mar 2011 19:00:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 405178006E for ; Thu, 10 Mar 2011 19:00:20 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: eclass/ X-VCS-Repository: proj/sci X-VCS-Files: eclass/embassy-ng.eclass X-VCS-Directories: eclass/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: b47d033e03fbf2ab1245448221cb307f85e708d9 Date: Thu, 10 Mar 2011 19:00:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: c1a6e2df09ab0ab7b796ab6de1724ba2 commit: b47d033e03fbf2ab1245448221cb307f85e708d9 Author: Justin Lecher gentoo org> AuthorDate: Thu Mar 10 11:22:04 2011 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu Mar 10 11:22:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Db47d033e defualt for largefile support --- eclass/embassy-ng.eclass | 106 ++++++++++++++++++++++++++++++++++++++++= ++++++ 1 files changed, 106 insertions(+), 0 deletions(-) diff --git a/eclass/embassy-ng.eclass b/eclass/embassy-ng.eclass new file mode 100644 index 0000000..ad5e6ae --- /dev/null +++ b/eclass/embassy-ng.eclass @@ -0,0 +1,106 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/embassy.eclass,v 1.17 2008/11/= 03 22:17:50 ribosome Exp $ + +# Creator of the original eclass +# Author Olivier Fisette +# +# Author of the next generation eclass +# Justin Lecher + +# @ECLASS: versionator.eclass +# @MAINTAINER: +# sci-biology@gentoo.org +# jlec@gentoo.org +# @BLURB: Use this to easy install EMBASSY programs (EMBOSS add-ons). +# @DESCRIPTION: The inheriting ebuild should provide a "DESCRIPTION", "K= EYWORDS" +# and, if necessary, add "(R|P)DEPEND"encies. Additionnaly, the inheriti= ng +# ebuild's name must begin by "embassy-". Also, before inheriting, the e= build +# should specify what version of EMBOSS is required by setting EBOV. + +EAPI=3D"4" + +inherit autotools eutils multilib + +DESCRIPTION=3D"Based on the $ECLASS eclass" +HOMEPAGE=3D"http://emboss.sourceforge.net/" +LICENSE=3D"LGPL-2 GPL-2" + +SLOT=3D"0" +IUSE+=3D" doc minimal mysql pdf png postgres static-libs X" + +DEPEND=3D" + dev-libs/expat + dev-libs/libpcre:3 + sci-libs/plplot + sys-libs/zlib + mysql? ( dev-db/mysql ) + pdf? ( media-libs/libharu ) + png? ( + sys-libs/zlib + media-libs/libpng + media-libs/gd + ) + postgres? ( dev-db/postgresql-base ) + X? ( x11-libs/libXt )" + +RDEPEND=3D"${DEPEND}" + +if [[ ${PN} =3D=3D "emboss" ]] ; then + DESCRIPTION=3D"The European Molecular Biology Open Software Suite - A s= equence analysis package" + SRC_URI=3D"ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-${EBOV}.tar.gz" + [[ -n ${EBO_PATCH} ]] && SRC_URI+=3D" ftp://${PN}.open-bio.org/pub/EMBO= SS/fixes/patches/patch-1-${MY_PATCH}.gz -> ${P}.patch.gz" + IUSE+=3D" minimal" + RDEPEND+=3D" !sys-devel/cons" + PDEPEND=3D" + !minimal? ( + sci-biology/aaindex + sci-biology/cutg + sci-biology/prints + sci-biology/prosite + sci-biology/rebase + sci-biology/transfac + )" + S=3D"${WORKDIR}/EMBOSS-${EBOV}" +else + # The EMBASSY package name, retrieved from the inheriting ebuild's name + EN=3D${PN:8} + # The full name and version of the EMBASSY package (excluding the Gento= o + # revision number) + EF=3D"$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV}" + + DESCRIPTION=3D"EMBOSS integrated version of ${EBO_DESCRIPTION}" + SRC_URI=3D"ftp://emboss.open-bio.org/pub/EMBOSS/${EF}.tar.gz -> embassy= -${EBOV}-${PN:8}-${PV}.tar.gz" + DEPEND+=3D" =3Dsci-biology/emboss-${EBOV}*[mysql=3D,pdf=3D,png=3D,postg= res=3D,static-libs=3D,X=3D]" + + S=3D"${WORKDIR}"/${EF} +fi + +embassy-ng_src_prepare() { + [[ -n ${EBO_PATCH} ]] && epatch "${WORKDIR}"/${P}.patch + [[ -f "${FILESDIR}"/${PF}.patch ]] && epatch "${FILESDIR}"/${PF}.patch + [[ -n ${NO_RECONF} ]] || eautoreconf +} + +embassy-ng_src_configure() { + econf \ + $(use_with X x) \ + $(use_with png pngdriver "${EPREFIX}/usr") \ + $(use_with doc docroot "${EPREFIX}/usr") \ + $(use_with pdf hpdf "${EPREFIX}/usr") \ + $(use_with mysql mysql "${EPREFIX}/usr/bin/mysql_config") \ + $(use_with postgres postgresql "${EPREFIX}/usr/bin/pg_config") \ + $(use_enable amd64 64) \ + $(use_enable static-libs static) \ + --enable-large + --without-java \ + --enable-systemlibs \ + ${EBO_ECONF} +} + +embassy-ng_src_install() { + emake DESTDIR=3D"${D}" install + nonfatal dodoc AUTHORS ChangeLog FAQ NEWS README THANKS +} + +EXPORT_FUNCTIONS src_prepare src_configure src_install