[arch-commits] Commit in libxslt/trunk (ChangeLog PKGBUILD)

Ionut Biru ibiru at archlinux.org
Wed Aug 18 15:17:11 UTC 2010


    Date: Wednesday, August 18, 2010 @ 11:17:10
  Author: ibiru
Revision: 87866

upgpkg: libxslt 1.1.26-2
python rebuild

Modified:
  libxslt/trunk/PKGBUILD
Deleted:
  libxslt/trunk/ChangeLog

-----------+
 ChangeLog |    9 ---------
 PKGBUILD  |   20 +++++++++++++-------
 2 files changed, 13 insertions(+), 16 deletions(-)

Deleted: ChangeLog
===================================================================
--- ChangeLog	2010-08-18 14:30:49 UTC (rev 87865)
+++ ChangeLog	2010-08-18 15:17:10 UTC (rev 87866)
@@ -1,9 +0,0 @@
-2008-05-31  Eric Belanger  <eric at archlinux.org>
-
-	* libxslt 1.1.24-1
-	* Upstream update
-
-2008-05-01  Eric Belanger  <eric at archlinux.org>
-
-	* libxslt 1.1.23-1
-	* Upstream update

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-18 14:30:49 UTC (rev 87865)
+++ PKGBUILD	2010-08-18 15:17:10 UTC (rev 87866)
@@ -4,22 +4,28 @@
 
 pkgname=libxslt
 pkgver=1.1.26
-pkgrel=1
+pkgrel=2
 pkgdesc="XML stylesheet transformation library"
 arch=('i686' 'x86_64')
 url="http://xmlsoft.org/XSLT/"
 license=('custom')
-depends=('libxml2>=2.7.6' 'libgcrypt>=1.4.4')
-makedepends=('python>=2.6')
+depends=('libxml2>=2.7.7' 'libgcrypt>=1.4.6')
+makedepends=('python2')
 options=('!libtool')
 source=(ftp://xmlsoft.org/libxslt/${pkgname}-${pkgver}.tar.gz)
 md5sums=('e61d0364a30146aaa3001296f853b2b9')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  ./configure --prefix=/usr || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+  ./configure --prefix=/usr --with-python=/usr/bin/python2.7
+  make
+  make DESTDIR="${pkgdir}" install
+
+  for f in pyxsltproc.py extfunc.py exslt.py extelem.py basic.py; do
+      sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+          -i ${pkgdir}/usr/share/doc/libxslt-python-1.1.26/examples/${f}
+  done
+
   install -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
 }




More information about the arch-commits mailing list