Changeset 14185


Ignore:
Timestamp:
Sep 20, 2005, 10:23:44 PM (15 years ago)
Author:
gwright
Message:

Fix build when DP is in a nonstandard location with a long path (BSD sed
pattern space overflow bug). Turn on French hyphenation rules.
Run updmap-sys and mktexlsr in port-activate so teTeX can find its
files after an upgrade.
Bug: 3123, 4519
Submitted by: Paul Guyot (4519), Paul Lucas (3123)
Reviewed by:
Approved by:
Obtained from:

Location:
trunk/dports/print/teTeX
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/teTeX/Portfile

    r12294 r14185  
    1 # $Id: Portfile,v 1.26 2005/05/17 15:31:34 gwright Exp $
     1# $Id: Portfile,v 1.27 2005/09/20 22:23:43 gwright Exp $
    22
    33PortSystem 1.0
    44name                    teTeX
    55version                 3.0
     6revision                1
    67epoch                   20050216
    78categories              print textproc
     
    4748post-extract    { file mkdir ${tetex_texmftree}
    4849                  file mkdir ${destroot}${tetex_top}
    49                   cd ${tetex_texmftree}
    50                   system "tar vxfz ${distpath}/${tetex_texmf}"
     50                  system "tar vxz -C ${tetex_texmftree} -f ${distpath}/${tetex_texmf}"
     51
     52                  # Patch to enable french hyphenation:
     53
     54                  system "cd ${tetex_texmftree} && patch -p0 < ${portpath}/${filesdir}/patch-language.dat"
     55
     56                  # This fixes a pattern space overflow in BSD sed, which
     57                  # can be triggered if darwinports is installed in a
     58                  # nonstandard location:
     59
     60                  reinplace "s|sed -f|${prefix}/bin/gnused -f|g" ${workpath}/${worksrcdir}/texk/make/man.mk
     61                  reinplace "s|sed -n|${prefix}/bin/gnused -n|g" ${workpath}/${worksrcdir}/texk/make/man.mk
     62                  reinplace "s|sed -e|${prefix}/bin/gnused -e|g" ${workpath}/${worksrcdir}/texk/make/man.mk
    5163                }
    5264
     65depends_build           port:gawk               \
     66                        port:gsed
    5367depends_lib             lib:libX11.6:XFree86
    54 depends_run             path:${prefix}/bin/info:texinfo                 \
    55                         path:${prefix}/bin/texi2html:texi2html
     68depends_run             port:texinfo            \
     69                        port:texi2html
    5670
    5771configure.args          --prefix=${destroot}${prefix}                   \
     
    8599                }
    86100
    87 post-activate   { system "fmtutil-sys --all" }
     101post-activate   { system "fmtutil-sys --all"
    88102
     103                  # These are required so that local additions are picked
     104                  # up if teTeX is updated:
     105
     106                  system "mktexlsr"
     107                  system "updmap-sys"
     108                }
     109
Note: See TracChangeset for help on using the changeset viewer.