Ticket #8432: libextractor-port.patch

File libextractor-port.patch, 2.5 KB (added by namely_void@…, 19 years ago)

Patch to portfile and additional build patch

  • Portfile

    diff -Nru /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/libextractor/Portfile ./Portfile
    old new  
    11# $Id: Portfile,v 1.4 2005/11/11 06:57:10 mww Exp $
    22PortSystem 1.0
    33name            libextractor
    4 version         0.5.6a
     4version         0.5.11
    55categories      devel
    66maintainers     darwinports@opendarwin.org
    77description     A library for extraction af meta-data.
     
    1414homepage        http://gnunet.org/libextractor/
    1515master_sites    http://gnunet.org/libextractor/download/
    1616platforms       darwin
    17 checksums       md5 1e8022f10d58cc9f83ca3700b6645263
    18 depends_lib     port:bzip2 port:zlib port:gettext port:libiconv
    19 configure.args  --mandir=${prefix}/share/man
    20 configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
    21                 CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress -L${prefix}/lib -lintl"
    22 pre-configure {
    23         reinplace "s|'-Bstatic'|''|g" ${worksrcpath}/configure
    24         reinplace "s|-Bstatic||g" ${worksrcpath}/src/plugins/ole2/Makefile.in
    25         reinplace "s|-Bdynamic||g" ${worksrcpath}/src/plugins/ole2/Makefile.in
    26         reinplace "s|-Bsymbolic||g" ${worksrcpath}/src/plugins/ole2/Makefile.in
    27 }
     17checksums       md5 ba67e55e20bff3fca9f7a5dbfea7d7ed
     18patchfiles      patch-wordextractor.c
     19depends_lib     port:bzip2 port:zlib port:gettext port:libiconv port:glib2
     20configure.args  --mandir=${prefix}/share/man \
     21                --with-libiconv-prefix=${prefix} \
     22                --with-libintl-prefix=${prefix}
     23configure.env   CPPFLAGS="-I${prefix}/include" \
     24                LDFLAGS="-L${prefix}/lib"
  • files/patch-wordextractor.c

    diff -Nru /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/libextractor/files/patch-wordextractor.c ./files/patch-wordextractor.c
    old new  
     1diff -Nru ../libextractor-0.5.11/src/plugins/wordleaker/wordextractor.cc ./src/plugins/wordleaker/wordextractor.cc
     2--- ../libextractor-0.5.11/src/plugins/wordleaker/wordextractor.cc      2006-03-11 02:10:50.000000000 +0200
     3+++ ./src/plugins/wordleaker/wordextractor.cc   2006-04-17 12:06:04.000000000 +0300
     4@@ -84,7 +84,7 @@
     5                      &t))
     6       return NULL;
     7       
     8-    return strndup(f, 128);
     9+    return strdup(f);
     10   }
     11   
     12   static const char * idToProduct( unsigned int id ) {