1 # Contributor: Brice Méalier <mealier_brice@yahoo.fr>
2 # Maintainer: Essien Ita Essien <me@essienitaessien.com>
3 # Contributor: Tobias Sandmann <tSa *at* gmx *dot* eu>
4 # Contributor: pfm <nl081130@yahoo.de>
9 pkgdesc="omniORB is a CORBA object request broker for C++ and Python."
11 url="http://omniorb.sourceforge.net/"
14 makedepends=('python2')
15 conflicts=('omniorbpy-omg')
16 source=(http://downloads.sourceforge.net/omniorb/omniORBpy-$pkgver.tar.bz2)
17 md5sums=('a7ab4789b913313f18a1171ff7a140b7')
20 mkdir -p "$srcdir"/omniORBpy-$pkgver/build || return 1
22 cd "$srcdir"/omniORBpy-$pkgver/build || return 1
24 ../configure PYTHON=/usr/bin/python2 --prefix=/usr || return 1
26 make DESTDIR="$pkgdir" install || return 1
28 _python_script_path=`python2 -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='/usr')"`
29 # remove files provided by omniORB
30 rm $startdir/pkg/$_python_script_path/omniidl_be/__init__.py* || return 1
32 # adjust directory permissions
33 find "$pkgdir" -type d -exec chmod 755 "{}" \; || return 1