blob: c983388e7bc08cfa5283902336c066980d1901d5 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit autotools-utils eutils multilib python-r1
MY_P=${P/omniorb/omniORB}
DESCRIPTION="A robust high-performance CORBA ORB for Python"
HOMEPAGE="http://omniorb.sourceforge.net/"
SRC_URI="mirror://sourceforge/omniorb/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
>=net-misc/omniORB-4.1.3[${PYTHON_USEDEP}]
ssl? ( dev-libs/openssl:0= )"
RDEPEND=${DEPEND}
S=${WORKDIR}/${MY_P}
src_prepare() {
sed \
-e "s/^CXXDEBUGFLAGS.*/CXXDEBUGFLAGS = ${CXXFLAGS}/" \
-e "s/^CDEBUGFLAGS.*/CDEBUGFLAGS = ${CFLAGS}/" \
-e "s/'prefix[\t ]*:= \/usr'/'prefix := \${DESTDIR}\/usr'/" \
-i "${S}"/mk/beforeauto.mk.in || die
sed \
-e 's#^.*compileall[^\\]*#${EPREFIX}/bin/true;#' \
-i "${S}"/python/dir.mk \
"${S}"/python/omniORB/dir.mk \
"${S}"/python/COS/dir.mk \
"${S}"/python/CosNaming/dir.mk || die
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=( --with-omniorb="${EPREFIX}/usr" )
use ssl && myconf+=( --with-openssl="${EPREFIX}/usr" )
python_foreach_impl autotools-utils_src_configure
}
src_compile() {
python_foreach_impl autotools-utils_src_compile
}
src_install() {
python_foreach_impl autotools-utils_src_install
HTML_DOCS=( doc/omniORBpy )
DOCS=( doc/omniORBpy.p* doc/tex/* )
einstalldocs
insinto /usr/share/doc/${PF}/
doins -r examples
}
|