summaryrefslogtreecommitdiff
path: root/community/omniorb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/omniorb/PKGBUILD')
-rw-r--r--community/omniorb/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/omniorb/PKGBUILD b/community/omniorb/PKGBUILD
new file mode 100644
index 000000000..0cd67c2bd
--- /dev/null
+++ b/community/omniorb/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 27121 2010-09-17 15:17:17Z schuay $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Essien Ita Essien <me@essienitaessien.com>
+# Contributor: Brice Mealier <mealier_brice@yahoo.fr>
+
+pkgname=omniorb
+pkgver=4.1.4
+pkgrel=2
+pkgdesc="A CORBA object request broker for C++ and Python."
+arch=('i686' 'x86_64')
+url="http://omniorb.sourceforge.net/"
+license=('GPL2' 'LGPL2')
+depends=('gcc-libs' 'python2' 'openssl')
+makedepends=('pkgconfig')
+source=(http://downloads.sourceforge.net/omniorb/omniORB-$pkgver.tar.gz)
+md5sums=('1f6070ff9b6339876976d61981eeaa6a')
+
+build() {
+ cd $srcdir/omniORB-$pkgver
+
+ # python2 fix
+ for file in $(find . -name '*.py' -print); do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ # Fix to build with OpenSSL 1.0.0
+ sed -i 's/SSL_METHOD/const SSL_METHOD/' \
+ src/lib/omniORB/orbcore/ssl/sslContext.cc \
+ include/omniORB4/sslContext.h
+ ./configure --prefix=/usr --with-omniORB-config=/etc/omniorb/omniORB.cfg \
+ --with-omniNames-logdir=/var/log/omniORB --with-openssl=/usr
+ make
+ make DESTDIR=$pkgdir install
+ for i in man/man1/*.1; do
+ install -D -m 644 $i $pkgdir/usr/share/$i
+ done
+ chmod 755 $pkgdir/{usr,usr/bin,usr/lib,usr/share,usr/include,usr/share/idl,usr/lib/pkgconfig,usr/lib/python2.7,usr/lib/python2.7/site-packages}
+}