Ticket #1012: txt2html-1.35-Portfile.patch

File txt2html-1.35-Portfile.patch, 1.3 KB (added by simon@…, 21 years ago)

Portfile patch

  • Portfile

    old new  
    2222checksums       md5 ba007af9d0681b3f493c84869b147071
    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 \
    31                     ${destroot}${prefix}/share/${portname}"
    32                   system "install -o root -m 644 ${worksrcpath}/txt2html.dict \
    33                     ${destroot}${prefix}/share/${portname}" }
     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 \
     34                                ${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}.*" }