[Pkg-mediawiki-commits] [SCM] Debian packaging of math extension for Mediawiki branch, master, updated. debian/2%1.0+git20120528-2-1-g1465514
Jonathan Wiltshire
jmw at debian.org
Sat Jun 2 20:47:59 UTC 2012
The following commit has been merged in the master branch:
commit 14655148d5c92b1bc60430af38f577b378305d1f
Author: Jonathan Wiltshire <jmw at debian.org>
Date: Sat Jun 2 21:43:50 2012 +0100
Build only bytecode on architectures that don't have ocamlopts available
diff --git a/debian/control b/debian/control
index 7acc040..2f4c7fe 100644
--- a/debian/control
+++ b/debian/control
@@ -32,7 +32,7 @@ Description: math rendering plugin for MediaWiki (common files)
Package: mediawiki-math-texvc
Architecture: any
-Depends: ${shlibs:Depends}, texlive-latex-base, ghostscript, imagemagick, ${misc:Depends}
+Depends: ${interpreter:Depends}, ${shlibs:Depends}, texlive-latex-base, ghostscript, imagemagick, ${misc:Depends}
Recommends: mediawiki-extensions-math, latex-cjk-all, texlive-latex-extra
Conflicts: mediawiki-math (<< 1:1.18)
Replaces: mediawiki-math (<< 1:1.18)
diff --git a/debian/rules b/debian/rules
index cb873ef..159bd41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,13 @@ export DH_OPTIONS
override_dh_auto_build:
- cd math && make
+ if [ -x /usr/bin/ocamlopt ]; then\
+ make -C math texvc;\
+ else\
+ make -C math texvc.bc;\
+ mv math/texvc.bc math/texvc;\
+ echo "interpreter:Depends=ocaml-base-nox" >> debian/mediawiki-math.substvars;\
+ fi
cd debian && xsltproc -nonet -o texvc.1 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl texvc.xml
override_dh_auto_clean:
--
Debian packaging of math extension for Mediawiki
More information about the Pkg-mediawiki-commits
mailing list