diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-07-20 00:37:20 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-07-20 00:37:20 +0000 |
commit | fd43a3d0b031ddfb2f7338b3e2326bfb1b0649f7 (patch) | |
tree | ae04d00256c999055c58e3ca1062864b0943fd6c /eclass/embassy.eclass | |
parent | Added libsdl and openal to DEPEND and closing bug #57627. (diff) | |
download | historical-fd43a3d0b031ddfb2f7338b3e2326bfb1b0649f7.tar.gz historical-fd43a3d0b031ddfb2f7338b3e2326bfb1b0649f7.tar.bz2 historical-fd43a3d0b031ddfb2f7338b3e2326bfb1b0649f7.zip |
eclass/embassy.eclass - A new eclass for EMBASSY packages (add-ons for EMBOSS)
Diffstat (limited to 'eclass/embassy.eclass')
-rw-r--r-- | eclass/embassy.eclass | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/eclass/embassy.eclass b/eclass/embassy.eclass new file mode 100644 index 000000000000..233df0a28dd7 --- /dev/null +++ b/eclass/embassy.eclass @@ -0,0 +1,77 @@ +# 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.1 2004/07/20 00:37:20 ribosome Exp $ + +# Author Olivier Fisette <ribosome@gentoo.org> + +# This eclass is used to install EMBASSY programs (EMBOSS add-ons). + +# The inheriting ebuild should provide a "DESCRIPTION", "KEYWORDS" and, if +# necessary, add "(R|P)DEPEND"encies. Additionnaly, the inheriting ebuild's +# name must begin by "embassy-". + +ECLASS=embassy +INHERITED="$INHERITED $ECLASS" + +# EMBOSS version needed for the EMBASSY packages +EBOV="2.9.0" +# 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}" + +DESCRIPTION="Based on the $ECLASS eclass" +HOMEPAGE="http://emboss.sourceforge.net/" +LICENSE="GPL-2" +SRC_URI="ftp://ftp.uk.embnet.org/pub/EMBOSS/EMBOSS-${EBOV}.tar.gz + ftp://ftp.uk.embnet.org/pub/EMBOSS/${EF}.tar.gz" + +SLOT="0" +IUSE="X png icc" + +RDEPEND="=app-sci/emboss-${EBOV}* + X? ( virtual/x11 ) + png? ( sys-libs/zlib + media-libs/libpng + >=media-libs/gd-1.8 + )" + +DEPEND="icc? ( dev-lang/icc ) + ${RDEPEND}" + +S=${WORKDIR}/EMBOSS-${EBOV}/embassy/${EF} + +embassy_src_unpack() { + unpack ${A} + mkdir EMBOSS-${EBOV}/embassy + mv ${EF} EMBOSS-${EBOV}/embassy/ + cp /usr/lib/libplplot.la EMBOSS-${EBOV}/plplot/ + cp /usr/lib/libajax.la EMBOSS-${EBOV}/ajax/ + cp /usr/lib/libajaxg.la EMBOSS-${EBOV}/ajax/ + cp /usr/lib/libnucleus.la EMBOSS-${EBOV}/nucleus/ +} + +embassy_src_compile() { + if use icc; then + CC=/opt/intel/compiler80/bin/icc + CXX=/opt/intel/compiler80/bin/icc + fi + local EXTRA_CONF + ! use X && EXTRA_CONF="${EXTRA_CONF} --without-x" + ! use png && EXTRA_CONF="${EXTRA_CONF} --without-pngdriver" + ./configure ${EXTRA_CONF} || die + emake || die "Before reporting this error as a bug, please make sure you compiled + EMBOSS and the EMBASSY packages with the same USE flags. Failure to + do so may prevent the compilation of some EMBASSY packages, or cause + runtime problems with some EMBASSY programs. For example, if you + compile EMBOSS with \"png\" support and then try to build DOMAINATRIX + without \"png\" support, compilation will fail when linking the binaries." +} + +embassy_src_install() { + einstall || die + dodoc AUTHORS ChangeLog NEWS README +} + +EXPORT_FUNCTIONS src_unpack src_compile src_install |