# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit python eutils DESCRIPTION="A robust, high-performance CORBA 2 ORB for Python" HOMEPAGE="http://omniorb.sourceforge.net/" SRC_URI="http://downloads.sourceforge.net/project/omniorb/${PN}/${P}/${P}.tar.bz2" LICENSE="LGPL-2 GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="ssl" RDEPEND=">=net-misc/omniORB-4.1.4 ssl? ( >=dev-libs/openssl-0.9.6b )" # src_install may use the diff command DEPEND="${RDEPEND} >=sys-apps/diffutils-3.0 " src_install() { emake DESTDIR="${D}" install #Both omniORB and omniORBpy install that file. #We remove it before proceeding with installation if it is already available #(and identical) on the system CONFLICTING_FILE="$(python_get_sitedir)/omniidl_be/__init__.py" PKG_FILE=${D}${CONFLICTING_FILE} SYSTEM_FILE=${ROOT}${CONFLICTING_FILE} test -f ${PKG_FILE} && \ test -f ${SYSTEM_FILE} && \ diff ${SYSTEM_FILE} ${PKG_FILE} && \ rm ${PKG_FILE} }