* [gentoo-dev] RFC: emboss.eclass corrected version for review
@ 2011-03-21 10:58 justin
2011-03-21 14:34 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: justin @ 2011-03-21 10:58 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1: Type: text/plain, Size: 173 bytes --]
Hi,
I corrected and implemented what you suggested. Anything left over to
correct?
Thanks
justin
P.s. the enable-64 thing will be fixed in the emboss ebuild
[-- Attachment #1.2: emboss.eclass --]
[-- Type: text/plain, Size: 3986 bytes --]
# Copyright 1999-2011 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 <ofisette@gmail.com>
#
# Author of the next generation eclass
# Justin Lecher <jlec@gentoo.org>
# @ECLASS: emboss.eclass
# @MAINTAINER:
# sci-biology@gentoo.org
# jlec@gentoo.org
# @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS add-ons).
# @DESCRIPTION:
# The inheriting ebuild must set EAPI=4 and provide EBO_DESCRIPTION before the inherit line.
# KEYWORDS should be set. Additionally "(R|P)DEPEND"encies and other standard
# ebuild Variables can be extended (FOO+=" bar").
# Default installation of following DOCS="AUTHORS ChangeLog NEWS README"
#
# Example:
#
# EAPI="4"
#
# EBO_DESCRIPTION="applications from the CBS group"
#
# inherit emboss
#
# KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
# @ECLASS-VARIABLE: EBO_DESCRIPTION
# @DESCRIPTION:
# Should be set. Completes the generic description of the embassy module as follows:
#
# EMBOSS integrated version of ${EBO_DESCRIPTION},
# e.g.
# "EMBOSS integrated version of applications from the CBS group"
#
# Defaults to the upstream name of the module.
# @ECLASS-VARIABLE: EBO_EAUTORECONF
# @DESCRIPTION:
# Set to 'no', if you don't want eautoreconf to be run after patching.
: ${EBO_EAUTORECONF:="yes"}
# @ECLASS-VARIABLE: EBO_EXTRA_ECONF
# @DEFAULT_UNSET
# @DESCRIPTION:
# Extra config options passed to econf, similar to EXTRA_ECONF.
case ${EAPI:-0} in
4) ;;
*) die "this eclass doesn't support < EAPI 4" ;;
esac
inherit autotools eutils multilib
HOMEPAGE="http://emboss.sourceforge.net/"
LICENSE="LGPL-2 GPL-2"
SLOT="0"
IUSE="mysql pdf png postgres static-libs X"
DEPEND="
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="${DEPEND}"
if [[ ${PN} == embassy-* ]]; then
# The EMBASSY package name, retrieved from the inheriting ebuild's name
EN=${PN:8}
# The full name and version of the EMBASSY package (excluding the Gentoo
# revision number)
EF=$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV}
: ${EBO_DESCRIPTION:=${EN}}
DESCRIPTION="EMBOSS integrated version of ${EBO_DESCRIPTION}"
SRC_URI="ftp://emboss.open-bio.org/pub/EMBOSS/${EF}.tar.gz -> embassy-${EN}-${PV}.tar.gz"
DEPEND+=" >=sci-biology/emboss-6.3.1_p4[mysql=,pdf=,png=,postgres=,static-libs=,X=]"
S="${WORKDIR}"/${EF}
fi
DOCS="AUTHORS ChangeLog NEWS README"
# @FUNCTION: emboss_src_prepare
# @DESCRIPTION:
# Does following things
#
# 1. Patches with "${FILESDIR}"/${PF}.patch, of present
# 2. Runs eautoreconf, unless EBO_EAUTORECONF is set to no
#
emboss_src_prepare() {
[[ -f "${FILESDIR}"/${PF}.patch ]] && epatch "${FILESDIR}"/${PF}.patch
[[ ${EBO_EAUTORECONF} == yes ]] && eautoreconf
}
# @FUNCTION: emboss_src_configure
# @DESCRIPTION:
# runs econf with following options. Extra options can be passed by setting EBO_EXTRA_ECONF
#
# $(use_with X x)
# $(use_with png pngdriver)
# $(use_with pdf hpdf)
# $(use_with mysql mysql)
# $(use_with postgres postgresql)
# $(use_enable static-libs static)
# --enable-large
# --without-java
# --enable-systemlibs
# --docdir="${EPREFIX}/usr/share/doc/${PF}/"
# ${EBO_EXTRA_ECONF}
emboss_src_configure() {
econf \
$(use_with X x) \
$(use_with png pngdriver) \
$(use_with pdf hpdf) \
$(use_with mysql mysql) \
$(use_with postgres postgresql) \
$(use_enable static-libs static) \
--enable-large \
--without-java \
--enable-systemlibs \
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
${EBO_EXTRA_ECONF}
}
EXPORT_FUNCTIONS src_prepare src_configure
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] RFC: emboss.eclass corrected version for review
2011-03-21 10:58 [gentoo-dev] RFC: emboss.eclass corrected version for review justin
@ 2011-03-21 14:34 ` Mike Frysinger
2011-03-21 16:01 ` justin
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2011-03-21 14:34 UTC (permalink / raw
To: gentoo-dev; +Cc: justin
> # @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS add-ons).
do those need to be capitalized ? if upstream refers to them as
EMBOSS and EMBASSY, then i guess it makes sense ...
> # ebuild Variables can be extended (FOO+=" bar").
variables
> # Example:
> ...
> # KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
not sure this makes sense in the example
> # @ECLASS-VARIABLE: EBO_EAUTORECONF
> # @DESCRIPTION:
> # Set to 'no', if you don't want eautoreconf to be run after patching.
isnt the opposite behavior the desired default ? generally running
autotools is undesirable ...
> : ${EBO_EAUTORECONF:="yes"}
no need for quotes
> inherit autotools eutils multilib
i dont see multilib being used anywhere
> DEPEND="
> dev-libs/expat
> ....
> RDEPEND="${DEPEND}"
usually DEPEND is a superset of RDEPEND, so might make more sense to
reverse these. not that it really matters.
> S="${WORKDIR}"/${EF}
no need for quotes
> [[ -f "${FILESDIR}"/${PF}.patch ]] && epatch "${FILESDIR}"/${PF}.patch
no need for quotes inside of this [[...]]
> # runs econf with following options. Extra options can be passed by setting EBO_EXTRA_ECONF
i'd add a "." to the end here, or just drop the 2nd sentence
altogether. you already documented EBO_EXTRA_ECONF above, and the
example shows it being used.
> --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
these arent typically specified with a trailing slash
-mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] RFC: emboss.eclass corrected version for review
2011-03-21 14:34 ` Mike Frysinger
@ 2011-03-21 16:01 ` justin
2011-03-21 17:02 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: justin @ 2011-03-21 16:01 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
On 21/03/11 15:34, Mike Frysinger wrote:
>> # @BLURB: Use this to easy install EMBOSS and EMBASSY programs (EMBOSS add-ons).
>
> do those need to be capitalized ? if upstream refers to them as
> EMBOSS and EMBASSY, then i guess it makes sense ...
>
Yipp, upstream is CAPITAL with everything.
>> # Example:
>> ...
>> # KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
>
> not sure this makes sense in the example
Just an example, do you suggest a subset or leave it out completely?
>
>> # @ECLASS-VARIABLE: EBO_EAUTORECONF
>> # @DESCRIPTION:
>> # Set to 'no', if you don't want eautoreconf to be run after patching.
>
> isnt the opposite behavior the desired default ? generally running
> autotools is undesirable ...
We need this, because I added many things to fix the buildsystem to get
rid of strange options, defaultings etc.
The rest is accepted. Thanks Mike.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] RFC: emboss.eclass corrected version for review
2011-03-21 16:01 ` justin
@ 2011-03-21 17:02 ` Mike Frysinger
0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-03-21 17:02 UTC (permalink / raw
To: gentoo-dev
On Mon, Mar 21, 2011 at 12:01 PM, justin wrote:
> On 21/03/11 15:34, Mike Frysinger wrote:
>>> # Example:
>>> ...
>>> # KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
>>
>> not sure this makes sense in the example
>
> Just an example, do you suggest a subset or leave it out completely?
punt it
-mike
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-21 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 10:58 [gentoo-dev] RFC: emboss.eclass corrected version for review justin
2011-03-21 14:34 ` Mike Frysinger
2011-03-21 16:01 ` justin
2011-03-21 17:02 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox