Ignore:
Timestamp:
Oct 12, 2003, 3:33:26 PM (16 years ago)
Author:
mij
Message:
  • Install docs into ${prefix}/share/doc
  • Don't install as root
  • Patch the txt2html binary so it knows about the dict file that gets installed

Bug: 1012
Submitted by: Simon Cotsworth <simon@…>
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/txt2html/Portfile

    r3173 r3658  
    1 # $Id: Portfile,v 1.4 2003/08/05 09:29:40 jkh Exp $
     1# $Id: Portfile,v 1.5 2003/10/12 15:33:26 mij Exp $
    22
    33PortSystem 1.0
     
    2323
    2424configure       {}
     25post-configure  { reinplace "s|/usr/share/misc|${prefix}/share/${portname}|g" \
     26                    ${worksrcpath}/${portname}.pl }
     27
    2528build           {}
    2629
    27 destroot        { system "install -o root -m 755 -d ${destroot}${prefix}/bin"
    28                   system "install -o root -m 755 ${worksrcpath}/txt2html.pl \
    29                     ${destroot}${prefix}/bin/txt2html"
    30                   system "install -o root -m 755 -d \
     30destroot        { system "install -m 755 -d ${destroot}${prefix}/bin"
     31                  system "install -m 755 ${worksrcpath}/${portname}.pl \
     32                    ${destroot}${prefix}/bin/${portname}"
     33                  system "install -m 755 -d \
    3134                    ${destroot}${prefix}/share/${portname}"
    32                   system "install -o root -m 644 ${worksrcpath}/txt2html.dict \
    33                     ${destroot}${prefix}/share/${portname}" }
     35                  system "install -m 644 ${worksrcpath}/${portname}.dict \
     36                    ${destroot}${prefix}/share/${portname}"
     37                  system "install -m 755 -d \
     38                    ${destroot}${prefix}/share/doc/${portname}"
     39                  system "install -m 644 ${worksrcpath}/* \
     40                    ${destroot}${prefix}/share/doc/${portname}"
     41                  system "rm ${destroot}${prefix}/share/doc/${portname}/${portname}.*" }
Note: See TracChangeset for help on using the changeset viewer.