Ticket #15890: patch-inkscape-Portfile.diff
File patch-inkscape-Portfile.diff, 5.0 KB (added by dbevans (David B. Evans), 16 years ago) |
---|
-
Portfile
old new 3 3 4 4 PortSystem 1.0 5 5 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. 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 16 long_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. 22 23 23 use_bzip2 24 use_bzip2 yes 24 25 master_sites sourceforge 25 26 checksums md5 59997096c3640b2601c2b4afba8a3d75 \ 26 27 sha1 ca68fc9bf539d7bcfc31f36d24f884255b2154e7 27 28 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 29 depends_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 45 45 46 46 patchfiles patch-configure.diff \ 47 47 patch-src-Makefile.in.diff \ 48 48 patch-src-extension-internal-pdfinput-pdf-parser.cpp.diff 49 49 50 configure.args 51 52 53 54 55 56 57 58 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 59 59 60 configure.python ${prefix}/bin/python2.5 61 configure.cppflags-append -I${worksrcpath}/src/extension/script 60 configure.python \ 61 ${prefix}/bin/python2.5 62 63 configure.cppflags-append \ 64 -I${worksrcpath}/src/extension/script 62 65 63 66 default_variants \ 64 disable_debugging67 disable_debugging 65 68 66 69 variant disable_debugging conflicts enable_debugging description {Disable debugging. Strip executables to save disk space} { 67 # this variant strips the executables saving @200MB of disk space68 # at the cost of not being able to get meaningful debugging information69 # in the event of an application crash70 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 } 74 77 } 75 78 76 79 variant enable_debugging conflicts disable_debugging description {Enable debugging. Executables not stripped} { 77 # does nothing but offer a counter-point to disable_debugging80 # does nothing but offer a counter-point to disable_debugging 78 81 } 79 82 80 83 post-patch { 81 82 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 83 86 } 87 88 livecheck.check regex 89 livecheck.url http://sourceforge.net/export/rss2_projfiles.php?project=${name} 90 livecheck.regex <title>${name} (\[0-9.\]+) released.*</title> 91