Skip to content
Permalink
Browse files

texi2html perl-version sanity (see Issue #6), fixing it on 10.13

  • Loading branch information
dmacks committed Mar 10, 2018
1 parent 5f06aab commit 633be9796d786efbac5ee01cf65ebb8a55db88fa
@@ -0,0 +1,106 @@
Package: texi2html
Version: 1.82
Revision: 103
Distribution: 10.13
# dist-difference due to availability of perl5.16 from apple
Depends: <<
perl5162-core,
texinfo (>= 4.1-3)
<<
BuildDepends: <<
fink-buildenv-modules
<<
Conflicts: <<
tetex-base (<= 1.0-6)
<<
Source: http://download.savannah.nongnu.org/releases/%n/%n-%v.tar.gz
Source-MD5: 7ea537a8c81ffbf5421b39c0333e91df
PatchFile: %n.patch
PatchFile-MD5: c681dc5f6f2ef703e726ed925c35fbfc
InfoTest: <<
TestDepends: <<
sed,
text-unidecode-pm
<<
TestScript: <<
# perl interp set during autoconf during tests
make check TESTS_ENVIRONMENT='PERL_INTERP=$(PERL)' || exit 2
<<
<<
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info
PatchScript: <<
%{default_script}
perl -pi -e 's| sed | gsed |g' test/run_test.sh
perl -pi -e 's|mktemp -p /tmp|mktemp |g' test/run_test.sh
perl -pi -e 's|mktemp -p /tmp|mktemp |g' test/many_input_files/tex_l2h.sh
perl -pi -e 's|mktemp -p /tmp|mktemp |g' test/many_input_files/tex_t4ht.sh
# allow passing of perl interp to use during tests (needs to be 5.16)
find test -name \*.sh | xargs perl -pi -e 's/perl -w -x /\$PERL_INTERP -w -x /'
<<
CompileScript: <<
# texi2html has known compatibility issues with perl 5.18
./configure %c PERL=%p/bin/perl5.16.2
# echo '#define DEFAULT_INFOPATH "%p/share/info:%p/info:/usr/local/share/info:/usr/local/lib/info:/usr/local/info:/usr/share/info:."' >>config.h
make
<<
InstallScript: <<
make install prefix=%i mandir=%i/share/man infodir=%i/share/info
mkdir -p %i/share/doc/%n/html
mv %i/bin/texi2html %i/bin/texi2html.texi2html
mv %i/share/man/man1/texi2html.1 %i/share/man/man1/texi2html.1.texi2html
<<
PostInstScript: <<
update-alternatives --install %p/bin/texi2html texi2html %p/bin/texi2html.texi2html 60 --slave %p/share/man/man1/texi2html.1 texi2html.1 %p/share/man/man1/texi2html.1.texi2html
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove texi2html %p/bin/texi2html.texi2html
fi
<<
DocFiles: README COPYING AUTHORS NEWS INSTALL ChangeLog TODO
InfoDocs: texi2html.info
Description: Converts texinfo documents to HTML
DescDetail: <<
Texinfo is the official documentation format of the GNU project. It
uses a single source file to produce both on-line information and
printed output. For more details about texinfo, see
http://www.texinfo.org.

In contrast to the HTML produced by 'makeinfo --html' (the 'makeinfo'
program is part of the Texinfo distribution), the HTML output of
'texi2html' is highly configurable. Among others, with 'texi2html' you
can customize your entire page layout (like headers, footers, style
sheets, etc), split documents at various levels and use 'latex2html' to
convert @tex sections.

'texi2html' should reasonably convert all Texinfo 4.0 constructs. If
not, please send a bug report to 'texi2html@mathematik.uni-kl.de'.
<<
DescPort: <<
Uses update-alternatives in case users also have texi2html installed via
tetex-base.

Any pkg that builddepends on this one, and calls it with the '-l2h' option,
must also BuildDepend on latex2html.
<<
DescPackaging: <<
Note that the latest version of texi2html (provided by OS X 10.4) is not
backward compatible and causes some other packages to break. Fink's
texi2html package should be left at version 1.64 until this is resolved.

Previous versions by Christian Schaffner <chris01@users.sourceforge.net>

Update to 1.82 since 1.64 is incompatible with texinfo 5.0. Disable those
tests known to produce different output on darwin's system perl.

Stick with perl5.16 (else fails self-tests, among other possible
reasons due to randomized hash ordering). On 10.9, /usr/bin/perl is
5.16; on 10.10+, /usr/bin/perl is 5.18 but on 10.10-10.12, there is
still /usr/bin/perl5.16 and that also exists back on 10.9. We
therefore hardcode /usr/bin/perl5.16 on 10.9-12 to reduce dependency
on fink's perl5162 for this low-level package. That leaves 10.13 as
the only one that actually needs to depend on and hardocde fink's.
<<
License: GPL
Homepage: http://www.nongnu.org/texi2html/
Maintainer: None <fink-devel@lists.sourceforge.net>
@@ -1,6 +1,8 @@
Package: texi2html
Version: 1.82
Revision: 2
Revision: 3
Distribution: 10.9, 10.10, 10.11, 10.12
# dist-difference due to availability of perl5.16 from apple
Depends: <<
texinfo (>= 4.1-3)
<<
@@ -35,14 +37,8 @@ PatchScript: <<
find test -name \*.sh | xargs perl -pi -e 's/perl -w -x /\$PERL_INTERP -w -x /'
<<
CompileScript: <<
#!/bin/sh -ev
. %p/sbin/fink-buildenv-helper.sh
if [ $DARWIN_MAJOR_VERSION -ge 14 ] ; then
# texi2html has known compatibility issues with perl 5.18
./configure %c PERL=/usr/bin/perl5.16.2
else
./configure %c PERL=/usr/bin/perl
fi
# texi2html has known compatibility issues with perl 5.18
./configure %c PERL=/usr/bin/perl5.16
# echo '#define DEFAULT_INFOPATH "%p/share/info:%p/info:/usr/local/share/info:/usr/local/lib/info:/usr/local/info:/usr/share/info:."' >>config.h
make
<<
@@ -96,7 +92,13 @@ Previous versions by Christian Schaffner <chris01@users.sourceforge.net>
Update to 1.82 since 1.64 is incompatible with texinfo 5.0. Disable those
tests known to produce different output on darwin's system perl.

Stick with perl5.16 on darwin14 and later to pass testsuite.
Stick with perl5.16 (else fails self-tests, among other possible
reasons due to randomized hash ordering). On 10.9, /usr/bin/perl is
5.16; on 10.10+, /usr/bin/perl is 5.18 but on 10.10-10.12, there is
still /usr/bin/perl5.16 and that also exists back on 10.9. We
therefore hardcode /usr/bin/perl5.16 on 10.9-12 to reduce dependency
on fink's perl5162 for this low-level package. That leaves 10.13 as
the only one that actually needs to depend on and hardocde fink's.
<<
License: GPL
Homepage: http://www.nongnu.org/texi2html/

0 comments on commit 633be97

Please sign in to comment.
You can’t perform that action at this time.