source: trunk/dports/net/libgweather/Portfile

Last change on this file was 152080, checked in by devans@…, 13 months ago

libgweather: update to version 3.20.3, METAR data now provided by https://www.aviationweather.gov.

  • 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 152080 2016-08-29 00:56:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6
7name                libgweather
8version             3.20.3
9set branch          [join [lrange [split ${version} .] 0 1] .]
10maintainers         devans openmaintainer
11categories          net gnome
12license             GPL-2+ LGPL-2.1+
13platforms           darwin
14description         Library to accessing online weather informations.
15
16long_description    libgweather is a library to access weather \
17                    information from online services for numerous \
18                    locations.
19
20homepage            https://wiki.gnome.org/Projects/LibGWeather
21master_sites        gnome:sources/${name}/${branch}/
22
23use_xz              yes
24
25checksums           rmd160  52891cf06d7fb816048bd0968c97514130615c5e \
26                    sha256  fb6bc5b64ef5db3dc40a9798f072b83ebcafe7ff5af472aaee70600619b56c0b
27
28depends_build       port:pkgconfig \
29                    port:intltool \
30                    port:autoconf \
31                    port:automake \
32                    port:libtool \
33                    port:gnome-common \
34                    port:gtk-doc
35
36depends_lib         port:gtk3 \
37                    port:libxml2 \
38                    port:libsoup \
39                    port:geocode-glib \
40                    port:vala
41
42gobject_introspection yes
43
44# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
45
46post-patch {
47    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
48    file delete -force ${worksrcpath}/m4
49}
50
51configure.cmd       ./autogen.sh
52
53configure.args      --enable-compile-warnings=no \
54                    --enable-vala=yes \
55                    --enable-glade-catalog=no \
56                    --disable-schemas-compile \
57                    --disable-silent-rules \
58                    --disable-glibtest
59
60variant glade description {Enable building of glade catalog items} {
61    depends_lib-append  port:glade
62    configure.args-replace --enable-glade-catalog=no --enable-glade-catalog=yes
63}
64
65# glade expects catalog modules and libraries to have a .so suffix
66
67post-destroot {
68    if {[variant_isset glade]} {
69        set libdir ${prefix}/lib
70        ln -s ${libdir}/libgweather-3.dylib ${destroot}${libdir}/libgweather-3.so
71    }
72}
73
74post-activate {
75    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
76}
77
78livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.