# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit python 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 } pkg_preinst() { PORTAGE_ELOG_CLASSES="log info warn qa error log" PORTAGE_ELOG_SYSTEM="custom" # There might be a conflict between omniORB and omniORBpy files # Remove the offending file if it is the same as the one currently installed CONFLICTING_FILE="$(python_get_lib_dir)/site-packages/omniidl_be/__ini__.py" PORTAGE_ELOG_COMMAND="echo " elog "<${CONFLICTING_FILE}>" elog "<${D}${CONFLICTING_FILE}>" test -f ${D}${CONFLICTING_FILE} && \ test -f ${CONFLICTING_FILE} && \ diff ${CONFLICTING_FILE} ${D}${CONFLITING_FILE} && \ rm ${D}${CONFLICTING_FILE} rm ${D}/${CONFLICTING_FILE} }