1 | # -*- coding: utf-8; mode: _tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- vim:fenc=utf-8:filetype=tcl:et:sw=2:ts=2:sts=2 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup gobject_introspection 1.0 |
---|
5 | # PortGroup user 1.0 |
---|
6 | |
---|
7 | name librsvg |
---|
8 | # version 2.42.3 requires unstable cairo >= 1.15.4 |
---|
9 | # no upgrade until this is resolved |
---|
10 | # https://gitlab.gnome.org/GNOME/librsvg/issues/217 |
---|
11 | |
---|
12 | version 2.42.2 |
---|
13 | revision 0 |
---|
14 | license {GPL-2+ LGPL-2+} |
---|
15 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
16 | categories graphics gnome |
---|
17 | platforms darwin |
---|
18 | maintainers {devans @dbevans} {pixilla @pixilla} openmaintainer |
---|
19 | description GNOME implementation of rsvg. |
---|
20 | |
---|
21 | long_description ${description} |
---|
22 | |
---|
23 | homepage https://wiki.gnome.org/Projects/LibRsvg |
---|
24 | master_sites gnome:sources/${name}/${branch}/ |
---|
25 | use_xz yes |
---|
26 | |
---|
27 | # checksums rmd160 3391bb15defd5ae046393258bcf620599cda5f66 \ |
---|
28 | # sha256 0c550a0bffef768a436286116c03d9f6cd3f97f5021c13e7f093b550fac12562 \ |
---|
29 | # size 6054020 |
---|
30 | |
---|
31 | depends_build port:pkgconfig |
---|
32 | |
---|
33 | depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
34 | path:lib/pkgconfig/cairo.pc:cairo \ |
---|
35 | path:lib/pkgconfig/pango.pc:pango \ |
---|
36 | port:libcroco \ |
---|
37 | port:libxml2 \ |
---|
38 | port:gdk-pixbuf2 \ |
---|
39 | port:vala \ |
---|
40 | port:cargo |
---|
41 | |
---|
42 | license_noconflict gobject-introspection \ |
---|
43 | rust \ |
---|
44 | vala |
---|
45 | |
---|
46 | set pyversion 2.7 |
---|
47 | depends_run port:python[join [split ${pyversion} "."] ""] |
---|
48 | |
---|
49 | # version 2.40.20 |
---|
50 | # epoch 1 |
---|
51 | |
---|
52 | checksums rmd160 e697e1220779f77e81a890718ef5cda5b5e6b740 \ |
---|
53 | sha256 cff4dd3c3b78bfe99d8fcfad3b8ba1eee3289a0823c0e118d78106be6b84c92b \ |
---|
54 | size 1796376 |
---|
55 | |
---|
56 | gobject_introspection yes |
---|
57 | |
---|
58 | configure.args --enable-vala=yes \ |
---|
59 | --disable-silent-rules \ |
---|
60 | --disable-Bsymbolic \ |
---|
61 | --disable-dependency-tracking \ |
---|
62 | --enable-fast-install \ |
---|
63 | --disable-maintainer-mode |
---|
64 | |
---|
65 | test.run yes |
---|
66 | test.dir ${worksrcpath}/tests |
---|
67 | test.target check |
---|
68 | |
---|
69 | # variant viewer disabled by default in an attempt to avoid loading |
---|
70 | # gtk3 by those who are using it strictly as a library outside of GTK+/GNOME. |
---|
71 | # https://trac.macports.org/ticket/43328 |
---|
72 | # https://trac.macports.org/ticket/47443 |
---|
73 | # https://trac.macports.org/ticket/47596 |
---|
74 | |
---|
75 | variant viewer description "Build the rsvg-view-3 viewer utility." { |
---|
76 | depends_lib-append port:gtk3 |
---|
77 | depends_run-append port:adwaita-icon-theme |
---|
78 | } |
---|
79 | |
---|
80 | if {![variant_isset viewer]} { |
---|
81 | patchfiles-append patch-disable-viewer.diff |
---|
82 | } |
---|
83 | |
---|
84 | post-destroot { |
---|
85 | set docdir ${prefix}/share/doc/${name} |
---|
86 | xinstall -d ${destroot}${docdir} |
---|
87 | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LIB NEWS \ |
---|
88 | ${destroot}${docdir} |
---|
89 | |
---|
90 | xinstall -m 755 -W ${filespath} svg2pdf \ |
---|
91 | ${destroot}${prefix}/bin |
---|
92 | |
---|
93 | set badfile ${prefix}/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a |
---|
94 | if {[file exists ${destroot}${badfile}]} { |
---|
95 | file delete ${destroot}${badfile} |
---|
96 | } |
---|
97 | } |
---|
98 | |
---|
99 | post-activate { |
---|
100 | system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache" |
---|
101 | } |
---|
102 | |
---|
103 | post-deactivate { |
---|
104 | system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache" |
---|
105 | } |
---|
106 | |
---|
107 | variant x11 conflicts quartz {} |
---|
108 | variant quartz conflicts x11 {} |
---|
109 | |
---|
110 | livecheck.type gnome |
---|