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 42 43 44 45 46 47 48 49 50 51 52 53
|
Makefiles are patched with debian/*.patch files, not by the build system
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -8,8 +8,8 @@
use Config;
use File::Slurp;
-use lib 'lib'; # to find FixTeXMakefile.pm
-use Games::Go::Sgf2Dg::FixTexMakefile;
+#use lib 'lib'; # to find FixTeXMakefile.pm
+#use Games::Go::Sgf2Dg::FixTexMakefile;
eval { require PDF::Create; }; # is this module available?
if ($@) {
@@ -43,7 +43,7 @@
my %makeMakerOpts = (
EXE_FILES => [ 'bin/sgf2dg' ],
- MAN1PODS => { 'bin/sgf2dg' => "\$(INST_MAN1DIR)/sgf2dg.1" },
+ MAN1PODS => { 'bin/sgf2dg' => "\$(INST_MAN1DIR)/sgf2dg.1p" },
);
if (($Config{osname} eq 'dos') or ($Config{osname} eq 'win32')) { # punt
@@ -53,7 +53,7 @@
} else {
push @{$makeMakerOpts{EXE_FILES}}, 'sgfsplit';
$makeMakerOpts{OBJECT} = ('sgfsplit.o');
- $makeMakerOpts{MAN1PODS}{'sgfsplit.c'} = '$(INST_MAN1DIR)/sgfsplit.1';
+ $makeMakerOpts{MAN1PODS}{'sgfsplit.c'} = '$(INST_MAN1DIR)/sgfsplit.1p';
}
@@ -130,7 +130,7 @@
# how to make a manual.tex file into a manual.dvi
manual.dvi : manual.tex
- tex $<
+ env TEXINPUTS=.:tex: TFMFONTS=.:tex: tex $<
# how to install tex portion of Sgf2Dg
install_tex :
@@ -153,9 +153,9 @@
$content =~ s/\S*after_build.pl//g;
# remove all references to FixTexMakefile.pm
-$content =~ s/\S*FixTexMakefile.pm//g;
+$content =~ s/\S*FixTexMakefile.pm'?//g;
write_file('Makefile', $content);
# Find TeX stuff on the system and modify tex/Makefile accordingly
-Games::Go::Sgf2Dg::FixTexMakefile::fix();
+#Games::Go::Sgf2Dg::FixTexMakefile::fix();
|