blob: 0870737faf4aa40a71d83202e258e2eb929bc807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mico/mico-2.3.13.ebuild,v 1.2 2009/02/10 08:12:59 haubi Exp $
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="A freely available and fully compliant implementation of the CORBA standard"
HOMEPAGE="http://www.mico.org/"
SRC_URI="http://www.mico.org/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
IUSE="gtk postgres qt3 ssl tcl threads X"
# doesn't compile:
# bluetooth? ( net-wireless/bluez-libs )
RDEPEND="
gtk? ( >=x11-libs/gtk+-2 )
postgres? ( dev-db/postgresql )
qt3? ( =x11-libs/qt-3* )
ssl? ( dev-libs/openssl )
tcl? ( dev-lang/tcl )
X? ( x11-libs/libXt )
"
DEPEND="${RDEPEND}
>=sys-devel/flex-2.5.2
>=sys-devel/bison-1.22
"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}" || die "failed to cd to '${S}'"
epatch "${FILESDIR}"/${P}-nolibcheck.patch
epatch "${FILESDIR}"/${P}-gcc43.patch
}
src_compile() {
tc-export CC CXX
if use gtk; then
# set up gtk-1 wrapper for gtk-2
mkdir "${T}"/path || die "failed to create temporary path"
cp "${FILESDIR}"/gtk-config "${T}"/path || die "failed to dupe gtk-config"
chmod +x "${T}"/path/gtk-config || die "failed to arm gtk-config"
export PATH="${T}"/path:${PATH}
fi
# Don't know which version of JavaCUP would suffice, but there is no
# configure argument to disable checking for JavaCUP.
# So we override the configure check to not find 'javac'.
export ac_cv_path_JAVAC=no
# '--without-ssl' just does not add another search path - the only way
# to disable openssl utilization seems to override the configure check.
use ssl || export ac_cv_lib_ssl_open=no
# '--without-*' or '--with-*=no' does not disable some features, the value
# needs to be empty instead. This applies to: bluetooth, gtk, pgsql, qt, tcl.
# But --without-x works.
# moc is searched within PATH, not within QTDIR.
use qt3 && export MOC="${QTDIR}"/bin/moc
# bluetooth and wireless both don't compile cleanly
econf \
--disable-mini-stl \
$(use_enable threads) \
--with-gtk=$(use gtk && echo /usr) \
--with-pgsql=$(use postgres && echo /usr) \
--with-qt=$(use qt3 && echo "${QTDIR}") \
--with-tcl=$(use tcl && echo /usr) \
$(use_with X x /usr) \
--with-bluetooth='' \
--disable-wireless
emake || die "make failed"
}
src_install() {
emake INSTDIR="${D}"/usr SHARED_INSTDIR="${D}"/usr install || die "install failed"
dodir /usr/share || die
mv "${D}"/usr/man "${D}"/usr/share || die
dodir /usr/share/doc/${PF} || die
mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF} || die
dodoc BUGS CHANGES* CONVERT FAQ README* ROADMAP TODO VERSION WTODO || die
}
|