diff options
Diffstat (limited to 'main/gnome-doc-utils')
-rw-r--r-- | main/gnome-doc-utils/APKBUILD | 36 | ||||
-rw-r--r-- | main/gnome-doc-utils/xslt.patch | 17 |
2 files changed, 43 insertions, 10 deletions
diff --git a/main/gnome-doc-utils/APKBUILD b/main/gnome-doc-utils/APKBUILD index 9641482c7f..e58bf8fd92 100644 --- a/main/gnome-doc-utils/APKBUILD +++ b/main/gnome-doc-utils/APKBUILD @@ -1,20 +1,36 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gnome-doc-utils -pkgver=0.16.1 +pkgver=0.18.1 pkgrel=0 pkgdesc="Documentation utilities for Gnome" url="http://www.gnome.org" license="GPL LGPL" depends="python docbook-xml rarian" makedepends="libxslt-dev libxml2-dev perl-xml-parser rarian-dev pkgconfig - gettext-dev" -source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.16/$pkgname-$pkgver.tar.bz2" + gettext-dev intltool" +source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 + xslt.patch" -build () -{ - cd ""$srcdir"/$pkgname-$pkgver" - ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var --disable-scrollkeeper || return 1 - make || return 1 - make DESTDIR=""$pkgdir"" install || return 1 +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + patch -p1 -i "$srcdir"/xslt.patch } -md5sums="85d4bba44773f6162de72e81e8bd0ab0 gnome-doc-utils-0.16.1.tar.bz2" + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-scrollkeeper || return 1 + # broken with parallell builds + make -j1 || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="c98ca796f3f2938a1fced7476e65351e gnome-doc-utils-0.18.1.tar.bz2 +6aa99cdd5dec2eb887f7ca4976ec840e xslt.patch" diff --git a/main/gnome-doc-utils/xslt.patch b/main/gnome-doc-utils/xslt.patch new file mode 100644 index 0000000000..bc9784fdf9 --- /dev/null +++ b/main/gnome-doc-utils/xslt.patch @@ -0,0 +1,17 @@ +--- gnome-doc-utils-0.18.1/doc/xslt/Makefile.in.orig ++++ gnome-doc-utils-0.18.1/doc/xslt/Makefile.in +@@ -947,11 +947,11 @@ + all: $(xsldoc_docs) $(xsldoc_xmls) + + $(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl +- $(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ +- | xsltproc -o "$@" \ ++ $(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" > $@.tmp ++ xsltproc -o "$@" \ + --stringparam basename "$(basename $(notdir $@))" \ + --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ +- "$(srcdir)/xsldoc-fill.xsl" - ++ "$(srcdir)/xsldoc-fill.xsl" $@.tmp && rm -f $@.tmp + + $(xsldoc_xmls): xsldoc-docbook.xsl + $(xsldoc_xmls): C/%.xml : C/%.xsldoc |