diff options
Diffstat (limited to 'extra/gdome2')
-rw-r--r-- | extra/gdome2/PKGBUILD | 23 | ||||
-rw-r--r-- | extra/gdome2/gdome2-0.8.1-libxml2.patch | 18 |
2 files changed, 33 insertions, 8 deletions
diff --git a/extra/gdome2/PKGBUILD b/extra/gdome2/PKGBUILD index 6f97ea5ea..9522ae97d 100644 --- a/extra/gdome2/PKGBUILD +++ b/extra/gdome2/PKGBUILD @@ -1,26 +1,33 @@ -# $Id: PKGBUILD 150508 2012-02-18 11:44:22Z pierre $ +# $Id: PKGBUILD 197759 2013-10-29 18:43:37Z eric $ # Maintainer: # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=gdome2 pkgver=0.8.1 -pkgrel=4 +pkgrel=5 pkgdesc="Gnome DOM Engine" -url="http://gdome2.cs.unibo.it/" arch=('i686' 'x86_64') +url="http://gdome2.cs.unibo.it/" license=('LGPL') depends=('libxml2' 'glib2') -options=(!libtool) -source=("http://gdome2.cs.unibo.it/tarball/${pkgname}-${pkgver}.tar.gz") -md5sums=('bfc114e59eec50cbda8e4ece751ff022') +source=("http://gdome2.cs.unibo.it/tarball/${pkgname}-${pkgver}.tar.gz" + gdome2-0.8.1-libxml2.patch) +md5sums=('bfc114e59eec50cbda8e4ece751ff022' + 'bde155107f30bf65d441adf70efc3c00') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p0 -i "${srcdir}/gdome2-0.8.1-libxml2.patch" +} + build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} ./configure --prefix=/usr --mandir=/usr/share/man make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install } diff --git a/extra/gdome2/gdome2-0.8.1-libxml2.patch b/extra/gdome2/gdome2-0.8.1-libxml2.patch new file mode 100644 index 000000000..bf493bc22 --- /dev/null +++ b/extra/gdome2/gdome2-0.8.1-libxml2.patch @@ -0,0 +1,18 @@ +Patch by Harris Landgarten. + +The patch was submitted on bug 448236, following the announcement on +https://mail.gnome.org/archives/xml/2012-August/msg00005.html +--- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 06:47:54.000000000 -0400 ++++ libgdome/gdomecore/gdome-xml-documentt.c 2012-12-23 08:57:23.000000000 -0500 +@@ -342,7 +342,11 @@ + } + xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL); + xmlOutputBufferFlush(out_buff); ++#if LIBXML_VERSION < 20900 + ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use); ++#else ++ ret = g_strndup (xmlBufContent(out_buff->buffer), xmlBufUse(out_buff->buffer)); ++#endif + (void)xmlOutputBufferClose(out_buff); + + return gdome_xml_str_mkref_own (ret); |