Ticket #15890: patch-inkscape-Portfile.diff

File patch-inkscape-Portfile.diff, 5.0 KB (added by dbevans (David B. Evans), 16 years ago)

Updated patch for Portfile r38088

  • Portfile

    old new  
    33
    44PortSystem 1.0
    55
    6 name            inkscape
    7 version         0.46
    8 revision        3
    9 maintainers     gmail.com:dbevans
    10 categories      gnome graphics
    11 platforms       darwin
    12 homepage        http://www.inkscape.org/
    13 
    14 description     Inkscape is an open source SVG editor.
    15 long_description\
    16         Inkscape is an open source SVG editor with \
    17         capabilities similar to Illustrator, CorelDraw, \
    18         Visio, etc. Supported SVG features include basic \
    19         shapes, paths, text, alpha blending, transforms, \
    20         gradients, node editing, svg-to-png export, \
    21         grouping, and more.
     6name            inkscape
     7version         0.46
     8revision        3
     9maintainers     gmail.com:dbevans
     10categories      gnome graphics
     11platforms       darwin
     12homepage        http://www.inkscape.org/
     13
     14description     Inkscape is an open source SVG editor.
     15
     16long_description \
     17                Inkscape is an open source SVG editor with \
     18                capabilities similar to Illustrator, CorelDraw, \
     19                Visio, etc. Supported SVG features include basic \
     20                shapes, paths, text, alpha blending, transforms, \
     21                gradients, node editing, svg-to-png export, \
     22                grouping, and more.
    2223
    23 use_bzip2               yes
     24use_bzip2       yes
    2425master_sites    sourceforge
    2526checksums       md5 59997096c3640b2601c2b4afba8a3d75 \
    26                                 sha1 ca68fc9bf539d7bcfc31f36d24f884255b2154e7
     27                sha1 ca68fc9bf539d7bcfc31f36d24f884255b2154e7
    2728
    28 depends_lib     \
    29                 port:libgnomeprintui \
    30                 port:boehmgc \
    31                 port:gtkmm \
    32                 port:gnome-vfs \
    33                 port:libxslt \
    34                 port:lcms \
    35                 port:dbus \
    36                 port:dbus-glib \
    37                 port:py25-xml \
    38                 port:libcroco \
    39                 port:poppler \
    40                 port:py25-numpy \
    41                 port:py25-lxml \
    42                 port:boost \
    43                 port:ImageMagick \
    44                 port:libwpg
     29depends_lib     port:libgnomeprintui \
     30                port:boehmgc \
     31                port:gtkmm \
     32                port:gnome-vfs \
     33                port:libxslt \
     34                port:lcms \
     35                port:dbus \
     36                port:dbus-glib \
     37                port:py25-xml \
     38                port:libcroco \
     39                port:poppler \
     40                port:py25-numpy \
     41                port:py25-lxml \
     42                port:boost \
     43                port:ImageMagick \
     44                port:libwpg
    4545
    4646patchfiles      patch-configure.diff \
    4747                patch-src-Makefile.in.diff \
    4848                patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff
    4949
    50 configure.args  \
    51         --mandir=${prefix}/share/man \
    52         --with-xft \
    53         --with-gnome-print \
    54         --with-gnome-vfs \
    55         --with-perl \
    56         --with-python \
    57         --enable-lcms \
    58         --enable-inkboard
     50configure.args  \
     51        --mandir=${prefix}/share/man \
     52        --with-xft \
     53        --with-gnome-print \
     54        --with-gnome-vfs \
     55        --with-perl \
     56        --with-python \
     57        --enable-lcms \
     58        --enable-inkboard
    5959
    60 configure.python        ${prefix}/bin/python2.5
    61 configure.cppflags-append       -I${worksrcpath}/src/extension/script
     60configure.python \
     61        ${prefix}/bin/python2.5
     62
     63configure.cppflags-append \
     64        -I${worksrcpath}/src/extension/script
    6265
    6366default_variants \
    64     disable_debugging
     67        disable_debugging
    6568
    6669variant disable_debugging conflicts enable_debugging description {Disable debugging. Strip executables to save disk space} {
    67     # this variant strips the executables saving @200MB of disk space
    68     # at the cost of not being able to get meaningful debugging information
    69     # in the event of an application crash
    70     post-destroot {
    71         system "strip ${destroot}${prefix}/bin/inkscape"
    72         system "strip ${destroot}${prefix}/bin/inkview"
    73     }
     70        # this variant strips the executables saving @200MB of disk space
     71        # at the cost of not being able to get meaningful debugging information
     72        # in the event of an application crash
     73        post-destroot {
     74            system "strip ${destroot}${prefix}/bin/inkscape"
     75            system "strip ${destroot}${prefix}/bin/inkview"
     76        }
    7477}
    7578
    7679variant enable_debugging conflicts disable_debugging description {Enable debugging. Executables not stripped} {
    77     # does nothing but offer a counter-point to disable_debugging
     80        # does nothing but offer a counter-point to disable_debugging
    7881}
    7982
    8083post-patch {
    81         reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.5\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
    82         reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
     84        reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.5\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
     85        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
    8386}
     87
     88livecheck.check         regex
     89livecheck.url           http://sourceforge.net/export/rss2_projfiles.php?project=${name}
     90livecheck.regex         <title>${name} (\[0-9.\]+) released.*</title>
     91