# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A standards-compliant implementation of the CORBA standard." HOMEPAGE="http://www.mico.org" SRC_URI="http://www.mico.org/${P}.tar.gz" LICENSE="LGPL-2 GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="static threads wifi X" DEPEND="sys-apps/sed" RDEPEND="" FEATURES="test" S=${WORKDIR}/${PN} src_compile() { econf \ $(use_enable static) \ $(use_enable threads) \ $(use_enable wifi wireless) \ $(use_with X x) \ || die "Configure failed." emake || "emake failed" } src_install() { # Mico does not honor DESTDIR, so we have to modify MakeVars directly sed -i -r "s|^((SHARED_)?INSTDIR\s*=\s*)(.*)$|\1${D}\3|" ${S}/MakeVars emake install || die "Install failed" # Mico's licence is a mixture of GPL and LGPL, and must be documented dodoc LICENSE }