Ticket #1069: a2ps.patch

File a2ps.patch, 2.8 KB (added by jdputsch@…, 21 years ago)

Patch as described in bug report.

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/print/a2ps/Portfile,v
    retrieving revision 1.5
    diff -b -u -r1.5 Portfile
     
    1717checksums       md5 0c8e0c31b08c14f7a7198ce967eb3281
    1818worksrcdir      ${name}-4.13
    1919
     20depends_build   bin:makeinfo:texinfo
     21
     22configure.args  --infodir=${prefix}/share/info --mandir=${prefix}/share/man
     23
     24variant letter {
     25        configure.args-append   --with-medium=Letter
     26}
     27
    2028variant darwin {
    2129        pre-configure {
    2230                file copy -force /usr/share/libtool/config.guess ${worksrcpath}/auxdir/
    2331                file copy -force /usr/share/libtool/config.sub ${worksrcpath}/auxdir/
     32                foreach makefile [ exec find ${worksrcpath} -name Makefile.in -print ] {
     33                        reinplace "s|\$(MAKE)|\$(MAKE) DESTDIR=\$(DESTDIR)|g" ${makefile}
     34                        reinplace "s|^DESTDIR|\#DESTDIR|g" ${makefile}
    2435        }
     36        }
     37        post-destroot   { system "rm ${destroot}/${prefix}/share/info/dir" }
    2538}
  • 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="a2ps.info regex.info"
     15
     16for file in $(echo $info_files)
     17do
     18    relfile=`echo "$file" | sed 's|^.*/||'`
     19    install-info --info-dir=${infodir} ${infodir}/$relfile || :
     20done
  • new file postremove

    RCS file: postremove
    diff -N postremove
    - +  
     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="a2ps.info regex.info"
     15
     16for file in $(echo $info_files)
     17do
     18    relfile=`echo "$file" | sed 's|^.*/||'`
     19    install-info --quiet --delete --info-dir=${infodir} $relfile || :
     20done