blob: 7f3110298bc431f5382a89e74967f912bedfb58f (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils flag-o-matic
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="~amd64 ~x86"
IUSE="gtk postgres ssl tcl threads"
DEPEND=">=sys-devel/flex-2.5.2
>=sys-devel/bison-1.22
ssl? ( dev-libs/openssl )
tcl? ( dev-lang/tcl )
postgres? ( dev-db/postgresql )"
S="${WORKDIR}/${PN}"
src_compile() {
local myopts="--enable-final
--disable-mini-stl"
# --enable-life
# --enable-externalize"
if ! use threads; then
myopts="${myopts} --enable-threads=no --enable-pthreads=no"
fi
append-flags -fno-strict-aliasing
econf ${myopts} \
$(use_with ssl ssl /usr) \
$(use_with tcl tcl /usr) \
$(use_with gtk gtk /usr) \
$(use_with postgres pgsql /usr)
# $(use_with qt3 qt ${QTDIR}
# Hardlock to 1 as it is a memory hog
emake -j1 || die "make failed"
}
src_install() {
emake INSTDIR="${D}"/usr SHARED_INSTDIR="${D}"/usr install || die "install failed"
dodir /usr/share/
mv "${D}"/usr/man "${D}"/usr/share
dodir /usr/share/doc/${PF}
mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF}
dodoc BUGS CHANGES* CONVERT FAQ README* ROADMAP TODO VERSION WTODO
}
|