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

Florian Pritz bluewind at nymeria.archlinux.org
Sat May 25 10:03:47 UTC 2013


    Date: Saturday, May 25, 2013 @ 12:03:46
  Author: bluewind
Revision: 91597

potential fix for FS#21579

upgpkg: asciidoc 8.6.8-2

Modified:
  asciidoc/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-25 09:55:41 UTC (rev 91596)
+++ PKGBUILD	2013-05-25 10:03:46 UTC (rev 91597)
@@ -9,7 +9,7 @@
 
 pkgname=asciidoc
 pkgver=8.6.8
-pkgrel=1
+pkgrel=2
 pkgdesc='Text document format for short documents, articles, books and UNIX man pages.'
 arch=('any')
 url='http://www.methods.co.nz/asciidoc/'
@@ -25,17 +25,26 @@
 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
 md5sums=('6ffff1ab211f30481741ce4d1e4b12bf')
 
-build() {
+prepare() {
   cd ${pkgname}-${pkgver}
 
   # python2 fix
   for file in asciidocapi.py a2x.py asciidoc.py filters/music/music2png.py filters/latex/latex2png.py \
-      filters/code/code-filter.py filters/graphviz/graphviz2png.py; do
-    sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
+	  filters/code/code-filter.py filters/graphviz/graphviz2png.py; do
+	sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
   done
-  sed -i -e 's_sys:python_sys:python2_g' -e 's_sys3:python_sys3:python2_g' xhtml11.conf
-  sed -i 's_sys:python_sys:python2_g' xhtml11-quirks.conf 
+  #sed -i -e 's_sys:python_sys:python2_g' -e 's_sys3:python_sys3:python2_g' xhtml11.conf
+  #sed -i 's_sys:python_sys:python2_g' xhtml11-quirks.conf
+  #sed -i -e 's/{python}/{python2}/g' \
+	  #-e 's#{language at python:py:#{language at python2:py:#' \
+	  #filters/source/source-highlight-filter.conf \
+	  #html5.conf xhtml11.conf xhtml11-quirks.conf
+  #sed -i -e "s#'python'#'python2'#g" filters/code/code-filter.py
+}
 
+build() {
+  cd ${pkgname}-${pkgver}
+
   ./configure \
     --prefix=/usr \
     --sysconfdir=/etc
@@ -56,6 +65,6 @@
     ${pkgdir}/usr/share/vim/vimfiles/ftdetect/asciidoc.vim
 
   # fix FS#21579 - [asciidoc] 8.6.2-2 "asciidoc" table style doesn't work (mismatched python version) 
-  sed -i 's/python/python2/' \
-    ${pkgdir}/etc/asciidoc/asciidoc.conf
+  #sed -i 's/python/python2/' \
+    #${pkgdir}/etc/asciidoc/asciidoc.conf
 }




More information about the arch-commits mailing list