Ticket #22713: Portfile

File Portfile, 3.2 KB (added by sharky@…, 14 years ago)

Portfile for inkscape 0.47

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name            inkscape
7conflicts       inkscape-devel
8version         0.47
9revision        0
10maintainers     devans
11categories      graphics gnome
12platforms       darwin
13homepage        http://www.inkscape.org/
14
15description     Inkscape is an open source SVG editor.
16
17long_description \
18                Inkscape is an open source SVG editor with \
19                capabilities similar to Illustrator, CorelDraw, \
20                Visio, etc. Supported SVG features include basic \
21                shapes, paths, text, alpha blending, transforms, \
22                gradients, node editing, svg-to-png export, \
23                grouping, and more.
24
25universal_variant no
26
27use_bzip2       yes
28master_sites    sourceforge
29checksums       md5 7b497c8f673e40b05295a29f6e2111f4 \
30                sha1 7c75352f3882ebf4fcaebc22413bcb79bf3b7895
31
32depends_lib     port:libgnomeprintui \
33                port:boehmgc \
34                port:gsl \
35                port:gtkmm \
36                port:gnome-vfs \
37                port:libxslt \
38                port:lcms \
39                port:dbus \
40                port:dbus-glib \
41                port:py25-xml \
42                port:libcroco \
43                port:poppler \
44                port:py25-numpy \
45                port:py25-lxml \
46                port:boost \
47                port:ImageMagick \
48                port:libwpg
49
50patchfiles      patch-configure.diff
51
52configure.args  \
53        --mandir=${prefix}/share/man \
54        --with-xft \
55        --with-gnome-print \
56        --with-gnome-vfs \
57        --with-python \
58        --enable-lcms \
59        --enable-inkboard
60
61configure.python \
62        ${prefix}/bin/python2.5
63
64configure.cppflags-append \
65        -I${worksrcpath}/src/extension/script
66
67default_variants \
68        disable_debugging
69
70variant disable_debugging conflicts enable_debugging description {Disable debugging. Strip executables to save disk space} {
71        # this variant strips the executables saving @200MB of disk space
72        # at the cost of not being able to get meaningful debugging information
73        # in the event of an application crash
74        post-destroot {
75            system "strip ${destroot}${prefix}/bin/inkscape"
76            system "strip ${destroot}${prefix}/bin/inkview"
77        }
78}
79
80variant enable_debugging conflicts disable_debugging description {Enable debugging. Executables not stripped} {
81        # does nothing but offer a counter-point to disable_debugging
82}
83
84post-patch {
85        reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.5\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
86        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
87        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
88}
89
90livecheck.type          regex
91livecheck.url           http://sourceforge.net/export/rss2_projfiles.php?project=${name}
92livecheck.regex         <title>${name} (\[0-9.\]+) released.*</title>
93