source: trunk/dports/gnome/gtksourceview/Portfile

Last change on this file was 135558, checked in by devans@…, 2 years ago

gtksourceview: patch to fix build, reconfigure using upstream autogen.sh for intltool 0.51 compatibility.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 135558 2015-04-26 13:22:55Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            gtksourceview
7version         1.8.5
8revision        5
9set branch      [join [lrange [split ${version} .] 0 1] .]
10maintainers     nomaintainer
11categories      gnome
12license         GPL-2+
13platforms       darwin
14description     GtkSourceView is a text widget
15
16long_description \
17    GtkSourceView is a text widget that extends the standard gtk+ 2.x \
18    text widget GtkTextView. It improves GtkTextView by implementing \
19    syntax highlighting and other features typical of a source editor.
20
21homepage        https://wiki.gnome.org/Projects/GtkSourceView
22master_sites    gnome:sources/${name}/${branch}/
23use_bzip2       yes
24
25checksums       md5 de67df2944c1cccbc2d0b4a738e11050 \
26                sha1 4e61b6cda043c44dc918edecd2bd9ccfc5438d2c \
27                rmd160 978c59d5f99baeb5d8b9c3c14246ffc48ce150f8
28
29depends_build   port:intltool \
30                port:pkgconfig \
31                port:gnome-common \
32                port:gtk-doc \
33                port:autoconf \
34                port:automake \
35                port:libtool
36
37depends_lib     port:gtk2 \
38                port:gnome-vfs \
39                port:libxml2 \
40                port:libgnomeprint \
41                port:libgnomeprintui \
42                port:gettext \
43                port:gnuregex
44
45patchfiles      patch-configure.in.diff \
46                patch-glib-2.32.diff \
47                patch-gconst_return.diff \
48                patch-gtksourceregex.c.diff \
49                patch-gtksourcelanguage.c.diff
50
51# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
52
53post-patch {
54    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
55}
56
57configure.cmd   ./autogen.sh
58
59configure.args  --enable-compile-warnings=minimum
60
61#test-widget.c:186:26: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
62#        tmp = g_strdup_vprintf (msg, ap);
63#                                ^~~
64#test-widget.c:193:7: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
65#                                         tmp);
66#                                          ^~~
67# TODO: fix code rather than suppress fatal error
68
69configure.cflags-append \
70                -Wno-error=format-nonliteral -Wno-error=format-security -Wno-implicit-function-declaration
71
72livecheck.type  regex
73livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
74livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.