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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Sep 24 15:52:00 2002 UTC (17 years, 2 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
removed clutter

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/omniORB/omniORB-304.ebuild,v 1.11 2002/08/14 12:08:08 murphy Exp $
4
5 A="${PN}_${PV}.tar.gz omniORBpy_1_4.tar.gz omniNotify11b1.tar.gz"
6 S=${WORKDIR}/omni
7 DESCRIPTION="a robust, high-performance CORBA 2 ORB"
8 SRC_URI="ftp://ftp.uk.research.att.com/pub/omniORB/omniORB3/${PN}_${PV}.tar.gz
9 ftp://ftp.uk.research.att.com/pub/omniORB/omniORBpy/${PN}py_1_4.tar.gz
10 ftp://ftp.uk.research.att.com/pub/omniNotify/omniNotify1/omniNotify11b1.tar.gz"
11 HOMEPAGE="http://www.uk.research.att.com/omniORB/"
12 KEYWORDS="x86 sparc sparc64"
13 LICENSE="GPL-2"
14 SLOT="0"
15
16 DEPEND="virtual/glibc
17 >=dev-lang/python-2.1"
18
19 PLT="i586_linux_2.0_glibc2.1"
20
21 src_unpack() {
22
23 unpack ${PN}_${PV}.tar.gz
24 cd ${S}/src/lib
25 unpack ${PN}py_1_4.tar.gz
26 cd ${S}/src/services
27 unpack omniNotify11b1.tar.gz
28
29 cd ${S}/config
30 cp config.mk config.mk.orig
31 sed -e "s:#platform = ${PLT}:platform = ${PLT}:" \
32 config.mk.orig > config.mk
33
34
35
36 cd ${S}/mk
37 cp unix.mk unix.mk.orig
38 sed -e "s:^MKDIRHIER.*:MKDIRHIER = mkdir -p:" unix.mk.orig > unix.mk
39
40 cd platforms
41 cp ${PLT}.mk ${PLT}.orig
42 sed -e "s:#PYTHON = /usr.*:PYTHON=/usr/bin/python:" \
43 ${PLT}.orig > ${PLT}.mk
44
45 }
46
47
48 src_compile() {
49
50 cd ${S}/src
51 try make export
52 cd ${S}/src/lib/omniORBpy
53 try make export
54 cd ${S}/src/services/omniNotify
55 try make export
56 }
57
58 src_install () {
59
60 T=/usr
61 into ${T}
62 cd ${S}
63 dodir /usr/share/omniORB/bin/scripts
64 cp -af bin/scripts/* ${D}/usr/share/omniORB/bin/scripts
65 dobin bin/${PLT}/*
66 insinto ${T}/idl
67 doins idl/*.idl
68 insinto ${T}/idl/COS
69 doins idl/COS/*.idl
70 cp -af include ${D}/${T}
71 dodir /usr/lib/python2.1/site-packages
72 cd ${S}
73 cp -af lib/${PLT}/_* ${D}/usr/lib/python2.1/site-packages
74 dolib lib/${PLT}/*.{a,so*}
75 rm ${D}/usr/lib/_*.*
76 exeinto ${T}/lib
77 doexe lib/${PLT}/omnicpp
78 dodir /usr/lib/python2.1
79 cp -af lib/python/* ${D}/usr/lib/python2.1/
80 doman man/man[15]/*.[15]
81
82 exeinto /etc/rc.d/init.d
83 newexe ${FILESDIR}/omniORB.rc5 omniORB
84
85 dodir /etc/omniorb
86 insinto /etc/omniorb
87 cd ${S}
88 doins src/services/omniNotify/channel.cfg
89 doins src/services/omniNotify/standard.cfg
90
91 dodoc CHANGES* COPYING* CREDITS PORTING README* ReleaseNote_omniORB_304 THIS_IS_omniORB_3_0_4
92 cd doc
93 docinto print
94 dodoc *.ps
95 dodoc *.tex
96 dodoc *.pdf
97
98 docinto html
99 dodoc *.html
100 docinto html/omniORB
101 dodoc omniORB/*.{gif,html}
102
103 dodir /etc/env.d/
104 echo "PATH=/usr/share/omniORB/bin/scripts" > ${D}/etc/env.d/90omniORB
105 echo "OMNIORB_CONFIG=/etc/omniorb/omniORB.cfg" >> ${D}/etc/env.d/90omniORB
106 # echo "PYTHONPATH=/usr/share/omniORB/python" >> ${D}/etc/env.d/90omniORB
107 }
108 pkg_postinst() {
109 if [ ! -f "${ROOT}etc/omniorb/omniORB.cfg" ] ; then
110 echo "ORBInitialHost `uname -n`" > ${ROOT}etc/omniorb/omniORB.cfg
111 echo "ORBInitialPort 2809" >> ${ROOT}etc/omniorb/omniORB.cfg
112 # ln -s ${ROOT}etc/omniorb/omniORB.cfg /etc/omniORB.cfg
113 fi
114 /usr/bin/python ${FILESDIR}/mkomnistubs.py
115 }

  ViewVC Help
Powered by ViewVC 1.1.20