/[gentoo-x86]/net-misc/omniORB/omniORB-4.1.1.ebuild
Gentoo

Contents of /net-misc/omniORB/omniORB-4.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Nov 1 22:40:32 2008 UTC (11 years, 1 month ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. Should fix CFLAGS handling - bug #241076.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo-r1-perfctr x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-4.1.1.ebuild,v 1.1 2007/11/03 17:04:58 caleb Exp $
4
5 inherit python
6
7 DESCRIPTION="A robust, high-performance CORBA 2 ORB"
8 SRC_URI="mirror://sourceforge/omniorb/${PF}.tar.gz"
9 HOMEPAGE="http://omniorb.sourceforge.net/"
10
11 IUSE="ssl"
12
13 LICENSE="LGPL-2 GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16
17 DEPEND="dev-lang/python
18 ssl? ( >=dev-libs/openssl-0.9.6b )"
19
20 src_unpack() {
21 unpack ${A}
22 sed -i -e "s/^CXXDEBUGFLAGS.*/CXXDEBUGFLAGS = ${CXXFLAGS}/" \
23 -e "s/^CDEBUGFLAGS.*/CDEBUGFLAGS = ${CFLAGS}/" \
24 ${S}/mk/beforeauto.mk.in \
25 ${S}/mk/platforms/i586_linux_2.0_*.mk
26 }
27
28 src_compile() {
29 cd "${S}"
30
31 mkdir "${S}/build"
32 cd "${S}/build"
33
34 MY_CONF="--prefix=/usr --with-omniORB-config=/etc/omniorb/omniORB.cfg --with-omniNames-logdir=/var/log/omniORB"
35
36 use ssl && MY_CONF="${MY_CONF} --with-openssl=/usr"
37
38 python_version
39 PYTHON=/usr/bin/python${PYVER} ../configure ${MY_CONF} \
40 || die "./configure failed"
41
42 emake || die "make failed"
43 }
44
45 src_install () {
46
47 cd "${S}/build"
48 emake DESTDIR="${D}" install
49
50 cd "${S}"
51 dodoc COPYING* CREDITS README* ReleaseNotes*
52
53 cd "${S}/doc"
54 docinto print
55 dodoc *.ps
56 dodoc *.tex
57 dodoc *.pdf
58
59 dodir /etc/env.d/
60 echo "PATH=/usr/share/omniORB/bin/scripts" > "${D}"/etc/env.d/90omniORB
61 echo "OMNIORB_CONFIG=/etc/omniorb/omniORB.cfg" >> "${D}"/etc/env.d/90omniORB
62 newinitd ${FILESDIR}/omniORB-4.0.0 omniORB
63
64 cp "${S}/sample.cfg" "${S}/omniORB.cfg"
65 dodir /etc/omniorb
66 insinto /etc/omniorb
67 doins "${S}/omniORB.cfg"
68
69 keepdir /var/log/omniORB
70 }
71
72 pkg_postinst() {
73 echo "Performing post-installation routines for ${P}."
74
75 if [ ! -f "${ROOT}etc/omniorb/omniORB.cfg" ] ; then
76 echo "ORBInitialHost `uname -n`" > "${ROOT}etc/omniorb/omniORB.cfg"
77 echo "ORBInitialPort 2809" >> "${ROOT}etc/omniorb/omniORB.cfg"
78 fi
79
80 }

  ViewVC Help
Powered by ViewVC 1.1.20