source: trunk/dports/textproc/latex2man/Portfile

Last change on this file was 115308, checked in by larryv@…, 4 years ago

latex2man: Mark as conflicting with texlive-bin-extra.

texlive-bin-extra installs latex2man. Maybe we should just obsolete this
port in favor of texlive-bin-extra.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 115308 2013-12-31 01:06:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                latex2man
7version             1.23
8categories          textproc
9conflicts           texlive-bin-extra
10platforms           darwin
11license             LPPL
12maintainers         nomaintainer
13
14supported_archs     noarch
15
16description         Translator program intended to translate a LaTeX \
17                    document into man
18long_description    Latex2man is a tool to translate UNIX manual \
19                    pages written with LaTeX into a format understood \
20                    by the UNIX man(1)-command. Alternatively HTML, \
21                    TexInfo, or LaTeX code can be produced too.
22homepage            http://www.informatik-vollmer.de/software/latex2man.php
23
24master_sites        http://www.informatik-vollmer.de/software
25checksums           md5     3507109dcaabaabe81dc427811a29eb9 \
26                    sha1    e9b10025255510e4e8af066777c959b599131098 \
27                    rmd160  75090f62f12a0a14166514c4854a21567320ae50
28
29depends_lib         bin:tex:texlive \
30                    path:bin/perl:perl5
31
32worksrcdir          ${name}
33
34patchfiles          patch-Makefile.diff
35
36configure {
37    reinplace -locale en_US.ISO8859-1 \
38        "s|\$(HOME)/man|${destroot}${prefix}/share/man|g" \
39        ${worksrcpath}/Makefile
40    reinplace -locale en_US.ISO8859-1 \
41        "s|\$(HOME)/info|${destroot}${prefix}/share/info|g" \
42        ${worksrcpath}/Makefile
43    reinplace -locale en_US.ISO8859-1 \
44        "s|\$(HOME)/public_html|${destroot}${prefix}/share/doc/latex2man|g" \
45        ${worksrcpath}/Makefile
46    reinplace -locale en_US.ISO8859-1 \
47        "s|\$(HOME)/tex/inputs|${destroot}${prefix}/share/texmf-local/tex/latex/latex2man|g" \
48        ${worksrcpath}/Makefile
49    reinplace -locale en_US.ISO8859-1 \
50        "s|\$(HOME)|${destroot}${prefix}|g" \
51        ${worksrcpath}/Makefile
52    reinplace -locale en_US.ISO8859-1 \
53        "s|/usr/bin/env perl|${prefix}/bin/perl|" \
54        ${worksrcpath}/latex2man
55}
56
57# 'make install' first cleans, so no point in doing any build
58build {}
59
60pre-destroot {
61    file mkdir ${destroot}${prefix}/share/doc/latex2man
62    file mkdir ${destroot}${prefix}/share/texmf-local/tex/latex/latex2man
63}
64destroot.env    LANG=C
65
66post-activate {
67    system "\
68        texhash && \
69        fmtutil-sys --enablefmt latex2man && \
70        fmtutil-sys --missing && \
71        fmtutil-sys --all"
72
73    # These are required so that local additions are picked
74    # up if teTeX is updated:
75    system "mktexlsr"
76    system "updmap-sys"
77}
Note: See TracBrowser for help on using the repository browser.