libgweather-4.4.0

Introduction to libgweather

The libgweather package is a library used to access weather information from online services for numerous locations.

This package is known to build and work properly using an LFS 12.1 platform.

Package Information

libgweather Dependencies

Required

geocode-glib-3.26.4, GTK+-3.24.41, libsoup-3.4.4, and PyGObject-3.46.0

Recommended

Optional

Gi-DocGen-2023.3 (gi-docgen is also provided as a meson subproject, which will be used if -Dgtk_doc=false is not passed to meson), LLVM-17.0.6 (for clang-format), and pylint

[Note]

Note

An Internet connection is needed for some tests of this package.

Installation of libgweather

Install libgweather by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr       \
            --buildtype=release \
            -Dgtk_doc=false     \
            ..                  &&
ninja

If you have Gi-DocGen-2023.3 installed and wish to build the API documentation for this package, issue:

sed "s/libgweather_full_version/'libgweather-4.4.0'/" \
    -i ../doc/meson.build                             &&
meson configure -Dgtk_doc=true                        &&
ninja

One test needs that the locale files be installed on the system, so it is better to run the tests after installing the package.

Now, as the root user:

ninja install

To test the results, issue: LC_ALL=C ninja test. One test, style / style-format, is known to fail due to differences between LLVM-16 and LLVM-17's version of clang-format. One test named libgweather / metar is known to fail because it requires some online resources which have been moved away.

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=false: Allow building this package without Gi-DocGen-2023.3 installed. If you have Gi-DocGen-2023.3 installed and you wish to rebuild and install the API documentation, a meson configure command will reset this option.

Contents

Installed Programs: None
Installed Libraries: libgweather-4.so
Installed Directories: /usr/lib/libgweather-4, /usr/include/libgweather-4.0, /usr/share/gtk-doc/html/libgweather-4.0 (optional), and /usr/share/libgweather-4

Short Descriptions

libgweather-4.so

contains functions that allow for the retrieval of weather information