Date: Saturday, March 19, 2011 @ 08:04:43 Author: allan Revision: 115689
upgpkg: python-feedparser 5.0.1-3 add python3 version of sgmllib Modified: python-feedparser/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-03-19 11:23:01 UTC (rev 115688) +++ PKGBUILD 2011-03-19 12:04:43 UTC (rev 115689) @@ -3,10 +3,10 @@ # Contributor: Simo Leone <[email protected]> # Note: python2 version must be built first as packaging python3 version "destroys" the source -pkgname=('python2-feedparser' 'python-feedparser') +pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib') pkgbase=python-feedparser pkgver=5.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Parse RSS and Atom feeds in Python" arch=('any') url="http://feedparser.sf.net" @@ -30,7 +30,7 @@ } package_python-feedparser() { - depends=('python' 'libxml2' ) + depends=('libxml2' 'python-sgmllib') cd ${srcdir}/feedparser-$pkgver . convert_to_py3.sh @@ -38,3 +38,16 @@ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/license } + +package_python-sgmllib() { + depends=('python') + pkgdesc="Port of sgmllib to python-3" + license=('PSF') + + cd ${srcdir}/feedparser-$pkgver + install -Dm644 feedparser/sgmllib.py \ + ${pkgdir}/usr/lib/python3.2/site-packages/sgmllib.py + + python /usr/lib/python3.2/compileall.py \ + ${pkgdir}/usr/lib/python3.2/site-packages/ +}
