Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/86420
Change subject: Add local LaTeXML webservice for the Math role
......................................................................
Add local LaTeXML webservice for the Math role
Installes LaTeXML insinde the math extension.
Work in progress... (vagrant does not support provision under windows very well)
Change-Id: I94d9703b1fa7738981c724af3c35d36174495ec2
---
M puppet/manifests/packages.pp
M puppet/manifests/roles.pp
2 files changed, 63 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/20/86420/1
diff --git a/puppet/manifests/packages.pp b/puppet/manifests/packages.pp
index 588887e..e163167 100644
--- a/puppet/manifests/packages.pp
+++ b/puppet/manifests/packages.pp
@@ -11,6 +11,7 @@
# *Note*:: each class in this file must correspond to a package of the
# same name. The package must be declared with no parameters. If you
# need to do anything fancier, create a module instead.
+# The naming convention follows the form ^([\da-z-]+)\n->class packages::\1
{\n package { '\1': }\n}\n , and replacing the - by _ afterward.
#
class packages::imagemagick {
@@ -48,3 +49,43 @@
class packages::ocaml_native_compilers {
package { 'ocaml-native-compilers': }
}
+class packages::texlive {
+ package { 'texlive': }
+}
+class packages::subversion {
+ package { 'subversion': }
+}
+class packages::libclone_perl {
+ package { 'libclone-perl': }
+}
+class packages::libdata_compare_perl {
+ package { 'libdata-compare-perl': }
+}
+class packages::libio_prompt-perl {
+ package { 'libio-prompt-perl': }
+}
+class packages::perlmagick {
+ package { 'perlmagick': }
+}
+class packages::libparse_recdescent_perl {
+ package { 'libparse-recdescent-perl': }
+}
+class packages::libxml_libxml_perl {
+ package { 'libxml-libxml-perl': }
+}
+class packages::libxml_libxslt_perl {
+ package { 'libxml-libxslt-perl': }
+}
+class packages::libarchive_zip_perl {
+ package { 'libarchive-zip-perl': }
+}
+class packages::libio_string_perl {
+ package { 'libio-string-perl': }
+}
+class packages::libapache2_mod_perl2 {
+ package { 'libapache2-mod-perl2': }
+}
+class packages::libplack_perl {
+ package { 'libplack-perl': }
+}
+
diff --git a/puppet/manifests/roles.pp b/puppet/manifests/roles.pp
index 9f67460..02de420 100644
--- a/puppet/manifests/roles.pp
+++ b/puppet/manifests/roles.pp
@@ -481,6 +481,28 @@
creates => '/vagrant/mediawiki/extensions/Math/math/texvc',
require => Package['mediawiki-math', 'ocaml-native-compilers'],
}
+ exec { 'compile texvcfilter':
+ command => 'make',
+ cwd => '/vagrant/mediawiki/extensions/Math/texvccheck',
+ creates => '/vagrant/mediawiki/extensions/Math/texvccheck/texvccheck',
+ require => Package['mediawiki-math', 'ocaml-native-compilers'],
+ }
+ git::clone { 'operations/debs/latexml':
+ directory => '/vagrant/mediawiki/extensions/Math/LaTeXML',
+ }
+ exec { 'create makefile':
+ command => 'perl Makefile.PL',
+ cwd => '/vagrant/mediawiki/extensions/Math/LaTeXML',
+ creates => '/vagrant/mediawiki/extensions/Math/LaTeXML/Make',
+ require => Package ['texlive', 'subversion', 'libclone-perl',
'libdata-compare-perl', 'libio-prompt-perl', 'perlmagick',
'libparse-recdescent-perl', 'libxml-libxml-perl', 'libxml-libxslt-perl',
'libarchive-zip-perl', 'libio-string-perl', 'libapache2-mod-perl2',
'libplack-perl'],
+ }
+ exec { 'compile latexml':
+ command => 'make',
+ cwd => '/vagrant/mediawiki/extensions/Math/LaTeXML',
+ creates => '/vagrant/mediawiki/extensions/Math/LaTeXML/blib',
+ require => Package['subversion'],
+ }
+
}
# == Class: role::chromium
--
To view, visit https://gerrit.wikimedia.org/r/86420
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I94d9703b1fa7738981c724af3c35d36174495ec2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits