source: trunk/dports/gnome/gtksourceview3/Portfile

Last change on this file was 153251, checked in by devans@…, 14 months ago

gtksourceview3: update to version 3.22.0, disable compile warnings.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
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: Portfile 153251 2016-09-28 02:47:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           compiler_blacklist_versions 1.0
7PortGroup           gobject_introspection 1.0
8
9name                gtksourceview3
10set gname           gtksourceview
11version             3.22.0
12license             LGPL-2.1+
13set branch          [join [lrange [split ${version} .] 0 1] .]
14maintainers         devans openmaintainer
15categories          gnome
16platforms           darwin
17description         GtkSourceView-3.0 is a text widget for GTK+ 3
18
19long_description    GtkSourceView is a text widget that extends the standard \
20                    GTK+ 3.x text widget GtkTextView. It improves GtkTextView \
21                    by implementing syntax highlighting and other features \
22                    typical of a source editor. This port contains version 3 of the \
23                    GtkSourceView widget. Port GtkSourceView2 contains version 2 of the \
24                    widget and port GtkSourceview contains version 1.
25
26homepage            https://wiki.gnome.org/Projects/GtkSourceView
27master_sites        gnome:sources/${gname}/${branch}/
28distname            ${gname}-${version}
29use_xz              yes
30
31checksums           rmd160  58be2fe965690fb29f031c5c0d7cbec169f214ba \
32                    sha256  70657f48732427984dce6cc812bdd3f2b701c0a49e0a0a08889705b3dadcf8e5
33
34depends_build       port:pkgconfig \
35                    port:gtk-doc
36
37depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
38                    port:gettext \
39                    port:gtk3 \
40                    port:libxml2 \
41                    port:vala
42
43gobject_introspection yes
44
45patchfiles          patch-no-as-needed.diff
46
47# autoreconf required due to patching of m4/ax_compiler_flags_ldflags.m4
48
49use_autoreconf      yes
50autoreconf.args     -fvi
51
52# blacklist compilers that do not support C11 (redefinition of typedef ‘GtkSourceTag’ at gtksourceview/gtksourcetag.h:35)
53compiler.blacklist  *gcc* {clang < 300}
54
55configure.args      --enable-compile-warnings=no \
56                    --disable-silent-rules
57
58test.run            yes
59test.target         check
60
61variant quartz {}
62
63if {[variant_isset quartz]} {
64    require_active_variants gtk3 quartz
65} else {
66    require_active_variants gtk3 x11
67}
68
69variant glade description {Install a glade catalog file} {
70    configure.args-append   --enable-glade-catalog
71    depends_lib-append      port:glade
72}
73
74post-destroot {
75    set docdir ${prefix}/share/doc/${name}
76    xinstall -d ${destroot}${docdir}
77    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING MAINTAINERS \
78        NEWS README ${destroot}${docdir}
79
80# glade expects catalog modules and libraries to have a .so suffix
81
82    if {[variant_isset glade]} {
83        set libdir ${prefix}/lib
84        ln -s ${libdir}/libgtksourceview-3.0.dylib ${destroot}${libdir}/libgtksourceview-3.0.so
85    }
86}
87
88livecheck.type      gnome
89livecheck.name      ${gname}
Note: See TracBrowser for help on using the repository browser.