1 # Contributor: Tocer Deng <tocer.deng@gmail.com>
2 # inspire by http://gentoo-overlays.zugaina.org/sugar/portage/dev-python/pyxpcom/pyxpcom-1.9.2.ebuild
8 pkgdesc="Python interface for mozilla XPCOM library"
10 url="http://developer.mozilla.org/en/PyXPCOM"
13 depends=('python2' 'xulrunner' 'zip')
14 makedepends=('autoconf2.13')
15 source=(http://hg.mozilla.org/pyxpcom/archive/$_pkgtag.tar.bz2
16 http://gentoo-overlays.zugaina.org/sugar/portage/dev-python/pyxpcom/files/0.87/fc-xpcom-dynstr.patch
18 md5sums=('ce390f3a6ceb789fc6203255cc048b7a'
19 '91af0081ca8b5c508e1617911bef9cda')
22 cd "$srcdir/$pkgname-$_pkgtag"
23 patch config/config.mk ../../fc-xpcom-dynstr.patch
24 autoconf-2.13 || return 1
26 _xulsdkdir="$(pkg-config --variable sdkdir libxul)"
28 [ -d objdir ] && rm -rf objdir
29 mkdir objdir || return 1
31 export PYTHON=/usr/bin/python2
32 ../configure --with-libxul-sdk=${_xulsdkdir} \
36 --libdir=/usr/lib || return 1
40 install -d $pkgdir/usr/lib/python2.7/site-packages
41 install -d ${pkgdir}${_xulsdkdir}/bin
42 install -d ${pkgdir}${_xulsdkdir}/include
43 install -d ${pkgdir}${_xulsdkdir}/idl
44 install -d ${pkgdir}${_xulsdkdir}/sdk/lib
47 cp -r dist/bin/python/* $pkgdir/usr/lib/python2.7/site-packages/ || return 1
48 cp -r dist/bin/* ${pkgdir}${_xulsdkdir}/bin/ || return 1
49 cp -r dist/include/* ${pkgdir}${_xulsdkdir}/include/ || return 1
50 cp -r dist/lib/* ${pkgdir}${_xulsdkdir}/sdk/lib/ || return 1
53 # vim:set ts=2 sw=2 et: