summaryrefslogtreecommitdiff
blob: 91eadd3e094932bf5dc1b7ef87fdf3db23a0d05d (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
68
69
70
71
72
73
74
75
76
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/berlin-base/omniORB/omniORB-303.ebuild,v 1.2 2001/05/02 16:14:25 achim Exp $

A=${PN}_${PV}.tar.gz
S=${WORKDIR}/omni
DESCRIPTION="a robust, high-performance CORBA 2 ORB"
SRC_URI="ftp://ftp.uk.research.att.com/pub/omniORB/omniORB3/${A}"
HOMEPAGE="http://www.uk.research.att.com/omniORB/"

DEPEND=""

PLT="i586_linux_2.0_glibc2.1"

src_unpack() {

  unpack ${A}

  cd ${S}/config
  cp config.mk config.mk.orig
  sed -e "s:#platform = ${PLT}:platform = ${PLT}:" \
  config.mk.orig > config.mk

  cd ${S}/mk
  cp unix.mk unix.mk.orig
  sed -e "s:^MKDIRHIER.*:MKDIRHIER = mkdir -p:" unix.mk.orig > unix.mk

  cd platforms
  cp ${PLT}.mk ${PLT}.orig
  sed -e "s:#PYTHON = /usr.*:PYTHON=/usr/bin/python:" \
      ${PLT}.orig > ${PLT}.mk

}


src_compile() {

    cd src
    try make export

}

src_install () {

    T=/opt/berlin
    into ${T}
    cd ${S}
    dobin bin/${PLT}/*
    insinto ${T}/lib/idl
    doins idl/*.idl
    insinto ${T}/lib/idl/COS
    doins idl/COS/*.idl
    cp -af include ${T}
    dolib lib/${PLT}/*.{a,so*}
    exeinto ${D}/lib
    doexe lib/${PLT}/omnicpp
    dodir /usr/lib/python2.0
    cp -af lib/python/* ${D}/usr/lib/python2.0/
    doman man/man[15]/*.[15]

    dodoc CHANGES* COPYING* CREDITS PORTING README* ReleaseNote_omniORB_303 THIS_IS_omniORB_3_0_3
    cd doc
    docinto ps
    dodoc *.ps
    docinto tex
    dodoc *.tex
    docinto pdf
    dodoc *.pdf
    docinto html
    dodoc *.html
    docinto html/omniORB
    dodoc omniORB/*.{gif,html}

}