/[gentoo-alt]/trunk/prefix/eclass/embassy-2.10.eclass
Gentoo

Contents of /trunk/prefix/eclass/embassy-2.10.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 2610 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/embassy-2.10.eclass,v 1.6 2005/07/30 00:39:02 ribosome Exp $
4
5 # Author Olivier Fisette <ribosome@gentoo.org>
6
7 # This eclass is used to install EMBASSY programs (EMBOSS add-ons).
8
9 # The inheriting ebuild should provide a "DESCRIPTION", "KEYWORDS" and, if
10 # necessary, add "(R|P)DEPEND"encies. Additionnaly, the inheriting ebuild's
11 # name must begin by "embassy-".
12
13 inherit eutils multilib
14
15
16 # EMBOSS version needed for the EMBASSY packages
17 EBOV="2.10.0"
18 # The EMBASSY package name, retrieved from the inheriting ebuild's name
19 EN=${PN:8}
20 # The full name and version of the EMBASSY package (excluding the Gentoo
21 # revision number)
22 EF="$(echo ${EN} | tr "[:lower:]" "[:upper:]")-${PV}"
23
24 DESCRIPTION="Based on the $ECLASS eclass"
25 HOMEPAGE="http://emboss.sourceforge.net/"
26 LICENSE="GPL-2"
27 SRC_URI="ftp://ftp.uk.embnet.org/pub/EMBOSS/EMBOSS-${EBOV}.tar.gz
28 ftp://ftp.uk.embnet.org/pub/EMBOSS/${EF}.tar.gz"
29
30 SLOT="0"
31 IUSE="X png"
32
33 DEPEND=">=sci-biology/emboss-${EBOV}
34 X? ( virtual/x11 )
35 png? ( sys-libs/zlib
36 media-libs/libpng
37 >=media-libs/gd-1.8
38 )"
39
40 S=${WORKDIR}/EMBOSS-${EBOV}/embassy/${EF}
41
42 embassy-2.10_src_unpack() {
43 unpack ${A}
44 mkdir EMBOSS-${EBOV}/embassy
45 mv ${EF} EMBOSS-${EBOV}/embassy/
46 cp /usr/$(get_libdir)/libplplot.la EMBOSS-${EBOV}/plplot/
47 cp /usr/$(get_libdir)/libajax.la EMBOSS-${EBOV}/ajax/
48 cp /usr/$(get_libdir)/libajaxg.la EMBOSS-${EBOV}/ajax/
49 cp /usr/$(get_libdir)/libnucleus.la EMBOSS-${EBOV}/nucleus/
50 if [ -e ${FILESDIR}/${PF}.patch ]; then
51 cd ${S}
52 epatch ${FILESDIR}/${PF}.patch
53 fi
54 }
55
56 embassy-2.10_src_compile() {
57 local EXTRA_CONF
58 ! use X && EXTRA_CONF="${EXTRA_CONF} --without-x"
59 ! use png && EXTRA_CONF="${EXTRA_CONF} --without-pngdriver"
60 ./configure --host=${CHOST} \
61 --mandir=/usr/share/man \
62 --infodir=/usr/share/info \
63 --datadir=/usr/share \
64 --sysconfdir=/etc \
65 --localstatedir=/var/lib \
66 ${EXTRA_CONF} || die
67 emake || die "Before reporting this error as a bug, please make sure you compiled
68 EMBOSS and the EMBASSY packages with the same \"USE\" flags. Failure to
69 do so may prevent the compilation of some EMBASSY packages, or cause
70 runtime problems with some EMBASSY programs. For example, if you
71 compile EMBOSS with \"png\" support and then try to build DOMAINATRIX
72 without \"png\" support, compilation will fail when linking the binaries."
73 }
74
75 embassy-2.10_src_install() {
76 einstall || die
77 dodoc AUTHORS ChangeLog NEWS README
78 }
79
80 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20