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 1PzbDp-0005Jo-Nc for garchives@archives.gentoo.org; Tue, 15 Mar 2011 20:52:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18C651C066; Tue, 15 Mar 2011 20:51:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DD35C1C062 for ; Tue, 15 Mar 2011 20:51:09 +0000 (UTC) Received: from [10.0.0.101] (ip-62-143-16-215.unitymediagroup.de [62.143.16.215]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jlec) by smtp.gentoo.org (Postfix) with ESMTPSA id 99B451BC12E; Tue, 15 Mar 2011 20:51:08 +0000 (UTC) Message-ID: <4D7FD134.4060606@gentoo.org> Date: Tue, 15 Mar 2011 21:51:00 +0100 From: justin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20110114 Lightning/1.0b3pre Thunderbird/3.1.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: emboss.eclass as replacement for embassy.eclass References: <4D7F1633.1080104@gentoo.org> In-Reply-To: <4D7F1633.1080104@gentoo.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2438C97BF37A65A728351C07" X-Archives-Salt: X-Archives-Hash: 90700f1448d3ec0f0822765c49911fb8 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2438C97BF37A65A728351C07 Content-Type: multipart/mixed; boundary="------------020403060305080408080901" This is a multi-part message in MIME format. --------------020403060305080408080901 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Donnie pointed out, that it might be clever to attach what I want to have reviewed. So here it is. justin --------------020403060305080408080901 Content-Type: text/plain; name="emboss.eclass" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="emboss.eclass" # 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/0= 3 22:17:50 ribosome Exp $ # Creator of the original eclass # Author Olivier Fisette # # Author of the next generation eclass # Justin Lecher # @ECLASS: emboss.eclass # @MAINTAINER: # sci-biology@gentoo.org # jlec@gentoo.org # @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS ad= d-ons). # @DESCRIPTION: # The inheriting ebuild should provide EBO_DESCRIPTION before the inherit= line. # KEYWORDS should be set. Additionally "(R|P)DEPEND"encies and other stan= dard # ebuild Variables can be extended (FOO+=3D"BAR"). # The inheriting ebuild's name must begin with "emboss" or "embassy" and = must be EAPI=3D4 conform. # @ECLASS-VARIABLE: EBO_DESCRIPTION # @DESCRIPTION: # Should be set. Completes the describtion of the embassy module as follo= ws: # # EMBOSS integrated version of EBO_DESCRIPTION" # # Defaults to the upstream name of the module. # @ECLASS-VARIABLE: EBO_PATCH # @DEFAULT_UNSET # @DESCRIPTION: Specify the patch level of EMBOSS. Only available for the= emboss ebuild. # The patch wil be fetch from: # # ftp://emboss.open-bio.org/pub/EMBOSS/fixes/patches/patch-1-${EBO_PATCH}= =2Egz. # # Embassy packages should create one patch package and place it in FILESD= IR, e.g. # "files/embassy-iprscan-4.3.1-r2.patch". The patch will be automatically= used during src_prepare # @ECLASS-VARIABLE: NO_RECONF # @DEFAULT_UNSET # @DESCRIPTION: # Set this, if you do not want to have eautoreconf be run after patching.= # @ECLASS-VARIABLE: EBO_ECONF # @DEFAULT_UNSET # @DESCRIPTION: # Extra config options passed to econf, similar to EXTRA_ECONF. EAPI=3D"4" inherit autotools eutils multilib HOMEPAGE=3D"http://emboss.sourceforge.net" LICENSE=3D"LGPL-2 GPL-2" SLOT=3D"0" IUSE=3D"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? ( media-libs/gd[png] ) postgres? ( dev-db/postgresql-base ) X? ( x11-libs/libXt ) " RDEPEND=3D" ${DEPEND} " DOCS=3D"AUTHORS ChangeLog NEWS README " if [[ ${PN} =3D=3D "emboss" ]] ; then EBOV=3D${PV/_p*} DESCRIPTION=3D"The European Molecular Biology Open Software Suite - A se= quence 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/EMBOS= S/fixes/patches/patch-1-${EBO_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} DOCS+=3D"FAQ THANKS " 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 Gentoo= # revision number) EF=3D$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV} EBO_DESCRIPTION=3D${EBO_DESCRIPTION:=3D${EN}} DESCRIPTION=3D"EMBOSS integrated version of ${EBO_DESCRIPTION}" SRC_URI=3D"ftp://emboss.open-bio.org/pub/EMBOSS/${EF}.tar.gz -> embassy-= ${PN:8}-${PV}.tar.gz" DEPEND+=3D">=3Dsci-biology/emboss-6.3.1_p4[mysql=3D,pdf=3D,png=3D,postgr= es=3D,static-libs=3D,X=3D] " S=3D${WORKDIR}/${EF} fi # @FUNCTION: emboss_src_prepare # @USAGE: # @RETURN: # @MAINTAINER: # @DESCRIPTION: # Does three things # # 1. Patches EMBOSS if EBO_PATCH is set # 2. Patches with "${FILESDIR}"/${PF}.patch, of present # 3. Runs eautoreconf unless NO_RECONF is set # emboss_src_prepare() { [[ ${PN} =3D=3D emboss ]] && [[ -n ${EBO_PATCH} ]] && epatch "${WORKDIR}= "/${P}.patch [[ -f "${FILESDIR}"/${PF}.patch ]] && epatch "${FILESDIR}"/${PF}.patch [[ -n ${NO_RECONF} ]] || eautoreconf } # @FUNCTION: emboss_src_prepare # @USAGE: # @RETURN: # @MAINTAINER: # @DESCRIPTION: # runs econf with following options. Extra options can be passed by setti= ng EBO_ECONF # # $(use_with X x) # $(use_with png pngdriver "${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} emboss_src_configure() { econf \ $(use_with X x) \ $(use_with png pngdriver "${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} } # @FUNCTION: emboss_src_install # @USAGE: # @RETURN: # @MAINTAINER: # @DESCRIPTION: # Standard src_install. Takes care of correct position of docs. emboss_src_install() { default mv "${ED}"/usr/share/EMBOSS/doc/* "${ED}"/usr/share/doc/${PF}/ rm -rf "${ED}"/usr/share/EMBOSS/doc } [[ ${PN} =3D=3D embassy ]] || EXPORT_FUNCTIONS src_prepare src_configure = src_install --------------020403060305080408080901-- --------------enig2438C97BF37A65A728351C07 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1/0TUACgkQgAnW8HDreRa0JACggH7WvYvhE7Hr7llhSanyezng lZMAn3xgURSmgfzqRypfEu7SYF+MyEDC =mr1X -----END PGP SIGNATURE----- --------------enig2438C97BF37A65A728351C07--