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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gtksourceview2 |
---|
7 | set my_name gtksourceview |
---|
8 | version 2.10.5 |
---|
9 | revision 7 |
---|
10 | license LGPL-2.1+ |
---|
11 | # respository indicates they were in process of shift |
---|
12 | # from LGPL-2+ to LGPL-2.1+ |
---|
13 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
14 | maintainers gmail.com:micah.lerner openmaintainer |
---|
15 | categories gnome |
---|
16 | platforms darwin |
---|
17 | description GtkSourceView is a text widget |
---|
18 | |
---|
19 | long_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 | |
---|
27 | homepage https://wiki.gnome.org/Projects/GtkSourceView |
---|
28 | master_sites gnome:sources/${my_name}/${branch}/ |
---|
29 | distname ${my_name}-${version} |
---|
30 | use_bzip2 yes |
---|
31 | |
---|
32 | checksums md5 1219ad1694df136f126507466aeb41aa \ |
---|
33 | sha1 5081dc7a081954d0af73852c22e874a746bda30e \ |
---|
34 | rmd160 081679debc8ca021749136e952329bb3ea0aa4f2 |
---|
35 | |
---|
36 | depends_build port:intltool \ |
---|
37 | port:pkgconfig \ |
---|
38 | port:gnome-common \ |
---|
39 | port:gtk-doc |
---|
40 | |
---|
41 | depends_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 | |
---|
50 | patchfiles patch-configure.ac.diff \ |
---|
51 | gtkosxapplication.diff |
---|
52 | |
---|
53 | # update m4/intltool.m4 and autoreconf |
---|
54 | |
---|
55 | pre-configure { |
---|
56 | copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4 |
---|
57 | } |
---|
58 | |
---|
59 | use_autoreconf yes |
---|
60 | autoreconf.args -fvi |
---|
61 | |
---|
62 | configure.args --enable-compile-warnings=minimum |
---|
63 | |
---|
64 | test.run yes |
---|
65 | test.target check |
---|
66 | |
---|
67 | post-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 | |
---|
81 | variant glade description {Build glade catalog} { |
---|
82 | depends_lib-append port:glade3 |
---|
83 | configure.args-append --enable-glade-catalog |
---|
84 | } |
---|
85 | |
---|
86 | livecheck.type regex |
---|
87 | livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/ |
---|
88 | livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|