-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.PL
41 lines (39 loc) · 1.74 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#======================================================================
# Makefile Maker for LaTeXML::Plugin::sTeX
#======================================================================
use ExtUtils::MakeMaker;
use strict;
use warnings;
require Term::ANSIColor;
use Term::ANSIColor;
#======================================================================
# Update omdoc+ltxml.model
#======================================================================
# \033[0m makes the output red and \033[0m resets the output color
if (!$ENV{CI}) { # don't regenerate model in CI until we figure out why the default namespace isn't omdoc
my @args = ("bash", "-c", "type trang || which trang ||echo '\n\033[0;31mTrang is not found which could lead to a make failure.\nYou can ignore this message if you do not intend to change the schema.\nSee README for more info!\n \033[0m' ");
my $ifTrang = system(@args);
my $updateModel = `cd lib/LaTeXML/resources/RelaxNG/; make`;
}
#======================================================================
# Use "perl Makefile.PL <options>"
#======================================================================
WriteMakefile(
NAME => 'LaTeXML::Plugin::sTeX',
AUTHOR => 'Deyan Ginev <[email protected]>',
ABSTRACT => "A LaTeXML extension for sTeX (Semantic LaTeX)",
VERSION => "0.2",
PREREQ_PM => {
'LaTeXML'=>'0.8.4',
},
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/slatex/LaTeXML-Plugin-sTeX.git',
web => 'https://github.com/slatex/LaTeXML-Plugin-sTeX',
}}})
: ()),
);