source: trunk/dports/textproc/texinfo/Portfile

Last change on this file was 154391, checked in by mojca@…, 11 months ago

texinfo: edit comments only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 154391 2016-10-28 21:46:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                texinfo
7version             6.3
8categories          textproc
9platforms           darwin
10license             GPL-3+
11maintainers         nomaintainer
12
13installs_libs       no
14
15description         The official documentation format of the GNU project
16long_description    Texinfo is the official documentation format of \
17                    the GNU project. It uses a single source file to \
18                    produce output in a number of formats, both \
19                    online and printed (dvi, info, html, xml, etc.). \
20                    This means that instead of writing different \
21                    documents for online information and another for \
22                    a printed manual, you need write only one \
23                    document. Some features need texlive (unnecessary \
24                    if only the info command is used).
25homepage            http://www.gnu.org/software/texinfo/
26
27# set pbranch to desired perl version
28# currently 5.24 (#52081)
29
30set pbranch         5.24
31
32depends_build       port:help2man
33depends_lib         port:gettext \
34                    port:libiconv \
35                    port:ncurses \
36                    port:perl${pbranch}
37
38master_sites        gnu
39use_xz              yes
40checksums           rmd160  cac43ff7164d44b653d8423c4a855aab6adb4605 \
41                    sha256  246cf3ffa54985118ec2eea2b8d0c71b92114efe6282c2ae90d65029db4cf93a
42
43configure.perl      ${prefix}/bin/perl${pbranch}
44
45destroot.target-append  install-tex
46destroot.args           TEXMF=${prefix}/share/texmf
47
48pre-destroot {
49    xinstall -d ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 644 -v -W ${worksrcpath} \
51        AUTHORS COPYING ChangeLog NEWS README TODO doc/refcard/txirefcard.pdf \
52        ${destroot}${prefix}/share/doc/${name}
53}
54
55post-destroot {
56    file delete -force ${destroot}${prefix}/lib/charset.alias
57}
58
59# mktexlsr is provided by texlive-bin (and needed only if texlive-bin
60# is installed). texlive-bin may be installed/uninstalled independently
61# of texinfo (but not at the same time, unless a locking mechanism is
62# provided). The use of a variant would not be flexible enough.
63
64post-activate {
65    if {[file exists ${prefix}/bin/mktexlsr]} {
66        ui_debug {Rebuilding TeX ls-R filename databases}
67        system ${prefix}/bin/mktexlsr
68    }
69}
70
71post-deactivate {
72    if {[file exists ${prefix}/bin/mktexlsr]} {
73        ui_debug {Rebuilding TeX ls-R filename databases}
74        system ${prefix}/bin/mktexlsr
75    }
76}
77
78# We need to support names like 'texinfo-4.8a.tar.bz2'.
79livecheck.type      regex
80livecheck.url       http://ftp.gnu.org/gnu/texinfo/?C=M\;O=D
81livecheck.regex     ${name}-(\[0-9.a-s\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.