Ticket #12461: dia2code-0.8.3.patch

File dia2code-0.8.3.patch, 1.8 KB (added by simon@…, 17 years ago)
  • Portfile

     
    11# $Id: Portfile 21477 2007-01-26 02:39:47Z eridius@macports.org $
    22PortSystem 1.0
     3
    34name            dia2code
    4 version         0.8.1
     5version         0.8.3
    56description     Dia2Code is a small utility used to generate code from a Dia diagram.
    67long_description        ${description}
    78maintainers     nomaintainer@macports.org
    89categories      devel
    910platforms       darwin
    10 homepage        http://${name}.sf.net
     11homepage        http://${name}.sourceforge.net
    1112master_sites    sourceforge
    12 checksums       md5 549eb4da412d92d779bcd3e65175064f
     13
     14checksums       md5 af64302f4e6633f26e28f74cbfbab742 \
     15        sha1 9a3e3fb766928ad4cf59d97cdfa099bbdd5801af \
     16        rmd160 6db53298445a864e3895edd469713db24692f4aa
     17
    1318depends_lib     port:libxml2
    14 patchfiles      patch-dia2code.h
     19
     20patchfiles  patch-dia2code.h
     21
    1522configure.args  --mandir=${prefix}/share/man
    16 configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
    17                 CFLAGS="-I${prefix}/include/libxml2/libxml"
     23
    1824post-destroot {
    1925        file copy ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
    2026}
  • files/patch-dia2code.h

     
    1 --- dia2code/dia2code.h.org     2005-05-09 19:45:48.000000000 +0200
    2 +++ dia2code/dia2code.h 2005-05-09 19:46:12.000000000 +0200
    3 @@ -20,13 +20,12 @@
     1--- dia2code/dia2code.h 2007-08-14 02:37:26.000000000 +0200
     2+++ dia2code/dia2code.h 2007-08-14 02:39:44.000000000 +0200
     3@@ -20,7 +20,6 @@
    44 
    55 #include <string.h>
    66 #include <ctype.h>
    77-#include <malloc.h>
    88 #include <stdio.h>
    99 #include <stdlib.h>
    10  
    11  /* libxml[2] headers */
    12 -#include <parser.h>
    13 -#include <tree.h>
    14 +#include <libxml/parser.h>
    15 +#include <libxml/tree.h>
    16  
    17  #define VERSION "0.8.1"
    18  
     10 #include <stdarg.h>