/[gentoo-x86]/gnome-base/orbit/orbit-2.14.19-r1.ebuild
Gentoo

Contents of /gnome-base/orbit/orbit-2.14.19-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Wed May 9 01:35:12 2012 UTC (12 months, 1 week ago) by aballier
Branch: MAIN
Changes since 1.11: +2 -2 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha102/cvs/Linux x86_64)

1 tetromino 1.10 # Copyright 1999-2012 Gentoo Foundation
2 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.12 # $Header: /var/cvsroot/gentoo-x86/gnome-base/orbit/orbit-2.14.19-r1.ebuild,v 1.11 2012/05/05 05:38:08 jdhore Exp $
4 pacho 1.1
5     EAPI="3"
6     GCONF_DEBUG="yes"
7 pacho 1.4 GNOME_ORG_MODULE="ORBit2"
8 pacho 1.1
9     inherit gnome2 toolchain-funcs autotools
10    
11     DESCRIPTION="ORBit2 is a high-performance CORBA ORB"
12 pacho 1.4 HOMEPAGE="http://projects.gnome.org/ORBit2/"
13 pacho 1.1
14     LICENSE="GPL-2 LGPL-2"
15     SLOT="2"
16 aballier 1.12 KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
17 pacho 1.1 IUSE="doc test"
18    
19     RDEPEND=">=dev-libs/glib-2.8:2
20     >=dev-libs/libIDL-0.8.2"
21    
22     DEPEND="${RDEPEND}
23 jdhore 1.11 virtual/pkgconfig
24 flameeyes 1.8 dev-util/gtk-doc-am
25 pacho 1.1 doc? ( >=dev-util/gtk-doc-1 )"
26    
27     pkg_setup() {
28     DOCS="AUTHORS ChangeLog HACKING MAINTAINERS NEWS README* TODO"
29     if use test; then
30     if ! use debug; then
31     elog "USE=debug is required for the test feature. Auto-enabling."
32     fi
33     G2CONF="${G2CONF} --enable-debug"
34     fi
35     }
36    
37     src_prepare() {
38     # Fix wrong process kill, bug #268142
39     sed "s:killall lt-timeout-server:killall timeout-server:" \
40     -i test/timeout.sh || die "sed 1 failed"
41    
42     # Do not mess with CFLAGS
43     sed 's/-ggdb -O0//' -i configure.in configure || die "sed 2 failed"
44    
45     if ! use test; then
46     sed -i -e 's/test //' Makefile.am || die
47     fi
48    
49     # Drop failing test, bug #331709
50     sed -i -e 's/test-mem //' test/Makefile.am || die
51    
52     eautoreconf
53 tetromino 1.10 gnome2_src_prepare
54 pacho 1.1 }
55    
56 flameeyes 1.2 src_configure() {
57 pacho 1.1 # We need to unset IDL_DIR, which is set by RSI's IDL. This causes certain
58     # files to be not found by autotools when compiling ORBit. See bug #58540
59     # for more information. Please don't remove -- 8/18/06
60     unset IDL_DIR
61    
62     # We need to use the hosts IDL compiler if cross-compiling, bug #262741
63     if tc-is-cross-compiler; then
64     # check that host version is present and executable
65     [ -x /usr/bin/orbit-idl-2 ] || die "Please emerge ~${CATEGORY}/${P} on the host system first"
66     G2CONF="${G2CONF} --with-idl-compiler=/usr/bin/orbit-idl-2"
67     fi
68 flameeyes 1.2 gnome2_src_configure
69     }
70 pacho 1.1
71 flameeyes 1.2 src_compile() {
72 pacho 1.1 # Parallel build fails from time to time, bug #273031
73     MAKEOPTS="${MAKEOPTS} -j1"
74     gnome2_src_compile
75     }
76    
77     src_test() {
78     # can fail in parallel, see bug #235994
79     emake -j1 check || die "tests failed"
80     }

  ViewVC Help
Powered by ViewVC 1.1.13