Ticket #1070: texinfo.patch

File texinfo.patch, 1.5 KB (added by jdputsch@…, 21 years ago)

Patch as described in bug report.

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/textproc/texinfo/Portfile,v
    retrieving revision 1.1
    diff -b -u -r1.1 Portfile
     
    1818                ftp://gatekeeper.dec.com/pub/GNU/${name}/ \
    1919                ftp://ftp.keystealth.org/pub/gnu/${name}/
    2020checksums       md5 5730c8c0c7484494cca7a7e2d7459c64
     21
     22configure.args-append   --infodir=${prefix}/share/info --mandir=${prefix}/share/man
     23
     24post-destroot   { system "rm ${destroot}/${prefix}/share/info/dir" }
  • new file postinstall

    RCS file: postinstall
    diff -N postinstall
    - +  
     1#!/bin/sh
     2#  $1: the full path to the installation package; for example:
     3#    /Volumes/Projects/Testing/Simple_Carbon_App.pkg
     4#  $2: the full path to the installation destination; for example:
     5#    /Applications
     6#  $3: the mountpoint of the destination volume; for example:
     7#    / or /Volumes/External_Drive
     8#  $4: the root directory for the current System folder:
     9#    /
     10
     11infodir=@PREFIX@/share/info
     12
     13# we need to add info file entries to the installed info directory
     14info_files="texinfo info-stnd.info info.info"
     15
     16for file in $(echo $info_files)
     17do
     18    relfile=`echo "$file" | sed 's|^.*/||'`
     19    install-info --info-dir=${infodir} ${infodir}/$relfile || :
     20done