Ticket #8388: html2text.patch

File html2text.patch, 1.0 KB (added by meissnem@…, 19 years ago)

update an existing patchfile and the portfile to allow building with gcc4

  • Portfile

    old new  
    2525
    2626patchfiles              patch-configure.diff
    2727
    28 pre-configure           { reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/configure }
    29 
    30 configure.env           CC="gcc3" \
    31                         CXX="g++3"
    32 
    3328destroot {              file copy ${worksrcpath}/html2text ${destroot}${prefix}/bin
    3429                        file copy ${worksrcpath}/html2text.1.gz ${destroot}${prefix}/share/man/man1
    3530                        file copy ${worksrcpath}/html2textrc.5.gz ${destroot}${prefix}/share/man/man5
  • files/patch-configure.diff

    diff -ru html2text.old/files/patch-configure.diff html2text/files/patch-configure.diff
    old new  
    55 EOF
    66 CXX=unknown;
    77-for i in "CC" "g++" "cc" "$CC"; do
    8 +for i in "c++ -no-cpp-precomp -isystem __PREFIX__/include -DAUTO_PTR_BROKEN=1" "CC" "g++"; do
     8+for i in "g++" "c++" "$CXX"; do
    99   if $i -c $tmp_file.C 2>/dev/null; then
    1010     CXX="$i";
    1111     break;