source: trunk/dports/gnome/dia/Portfile

Last change on this file was 146599, checked in by devans@…, 21 months ago

dia: add +quartz variant, update dependencies, post-activate processing, increment revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 146599 2016-03-12 23:33:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                dia
8version             0.97.3
9revision            1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11maintainers         nomaintainer
12license             GPL-2+
13categories          gnome graphics
14platforms           darwin
15description         A diagram program.
16
17long_description    Dia is designed to be much like the commercial Windows \
18                    program Visio. It can be used to draw many different kinds \
19                    of diagrams. It currently has special objects to help draw \
20                    entity relationship diagrams, UML diagrams, flowcharts, \
21                    network diagrams, and simple circuits. It is also possible \
22                    to add support for new shapes by writing simple XML files, \
23                    using a subset of SVG to draw the shape.
24
25homepage            https://wiki.gnome.org/Apps/Dia
26master_sites        gnome:sources/${name}/${branch}/
27
28use_xz              yes
29
30checksums           rmd160  a984efa1663cc154f4394060af37fab146f99175 \
31                    sha256  22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34
32
33depends_build       port:intltool \
34                    port:pkgconfig \
35                    port:autoconf \
36                    port:automake \
37                    port:libtool
38
39depends_lib         port:desktop-file-utils \
40                    path:lib/pkgconfig/cairo.pc:cairo \
41                    port:freetype \
42                    port:libart_lgpl \
43                    port:libpng \
44                    port:libxml2 \
45                    port:libxslt \
46                    port:gettext \
47                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
48                    port:gtk2 \
49                    path:lib/pkgconfig/pango.pc:pango \
50                    port:popt \
51                    port:shared-mime-info \
52                    port:zlib
53
54depends_run         port:librsvg \
55                    port:gnome-themes-standard
56
57patchfiles          patch-autogen.sh.diff \
58                    patch-configure.in.diff
59
60post-patch {
61    reinplace s/isspecial/char_isspecial/ \
62        ${worksrcpath}/objects/GRAFCET/boolequation.c
63}
64
65# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
66
67configure.cmd       ./autogen.sh
68
69configure.args      --with-cairo \
70                    --disable-libemf \
71                    --with-xslt-prefix=${prefix}
72
73post-activate {
74    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
75    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
76    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
77}
78
79variant quartz {}
80
81if {[variant_isset quartz]} {
82    require_active_variants gtk2 quartz
83} else {
84    require_active_variants gtk2 x11
85}
86
87variant python27 description {Add python 2.7 bindings} {
88    set python_prefix       ${frameworks_dir}/Python.framework/Versions/2.7
89    depends_build-append    port:swig
90    depends_lib-append      port:py27-pygtk
91
92    configure.args-append   --with-swig \
93                            --with-python
94    configure.python        ${python_prefix}/bin/python2.7
95    configure.env-append    am_cv_python_pyexecdir=${python_prefix} \
96                            am_cv_python_pythondir=${python_prefix}
97}
98
99livecheck.type      gnome-with-unstable
Note: See TracBrowser for help on using the repository browser.