Ticket #41984: Portfile

File Portfile, 2.6 KB (added by wdc@…, 10 years ago)

Portfile that uses latest gtk-osx-application integration. Note we STOP using a patch to gtksourceview-i18n.c

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 119543 2014-04-29 23:20:21Z devans@macports.org $
3
4PortSystem      1.0
5
6name                gtksourceview2
7set my_name     gtksourceview
8version             2.10.5
9revision        7
10license         LGPL-2.1+
11# respository indicates they were in process of shift
12# from LGPL-2+ to LGPL-2.1+
13set branch      [join [lrange [split ${version} .] 0 1] .]
14maintainers         gmail.com:micah.lerner openmaintainer
15categories          gnome
16platforms           darwin
17description         GtkSourceView is a text widget
18
19long_description \
20        GtkSourceView is a text widget that extends the standard \
21        gtk+ 2.x text widget GtkTextView. It improves GtkTextView \
22        by implementing syntax highlighting and other features \
23        typical of a source editor. This port contains version 2 of the \
24        GtkSourceView widget. Port GtkSourceView contains version 1 of the \
25        widget.
26
27homepage            https://wiki.gnome.org/Projects/GtkSourceView
28master_sites    gnome:sources/${my_name}/${branch}/
29distname            ${my_name}-${version}
30use_bzip2           yes
31
32checksums       md5     1219ad1694df136f126507466aeb41aa \
33                sha1    5081dc7a081954d0af73852c22e874a746bda30e \
34                rmd160  081679debc8ca021749136e952329bb3ea0aa4f2
35
36depends_build   port:intltool \
37                port:pkgconfig \
38                port:gnome-common \
39                port:gtk-doc
40
41depends_lib \
42    path:lib/pkgconfig/glib-2.0.pc:glib2 \
43    port:gettext \
44    port:gtk2 \
45    port:libxml2 \
46    port:gtk-osx-application
47
48
49
50patchfiles      patch-configure.ac.diff \
51                gtkosxapplication.diff
52
53# update m4/intltool.m4 and autoreconf
54
55pre-configure {
56    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
57}
58
59use_autoreconf  yes
60autoreconf.args -fvi
61
62configure.args  --enable-compile-warnings=minimum
63
64test.run        yes
65test.target     check
66
67post-destroot {
68    set docdir ${prefix}/share/doc/${name}
69    xinstall -d ${destroot}${docdir}
70    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.lib MAINTAINERS \
71        NEWS README ${destroot}${docdir}
72
73# glade-3 expects catalog modules and libraries to have a .so suffix
74
75    if {[variant_isset glade]} {
76        set libdir ${prefix}/lib
77        ln -s ${libdir}/libgtksourceview-2.0.dylib ${destroot}${libdir}/libgtksourceview-2.0.so
78    }
79}
80
81variant glade description {Build glade catalog} {
82    depends_lib-append port:glade3
83    configure.args-append   --enable-glade-catalog
84}
85
86livecheck.type  regex
87livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
88livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}