mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-29 07:00:21 +00:00
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271485: > Clang 16 has a new error about incompatible function types, which shows > up when building devel/libgee: > > hashmap.c:4089:23: error: incompatible function pointer types assigning to 'gboolean (*)(GeeMapIterator *)' (aka 'int (*)(struct _GeeMapIterator *)') from 'gboolean (GeeHashMapNodeIterator *)' (aka 'int (struct _GeeHashMapNodeIterator *)') [-Wincompatible-function-pointer-types] > iface->get_read_only = gee_hash_map_map_iterator_real_get_read_only; > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Since the error occurs in vala-generated code, it does not make sense to > patch the .c file. Suppress the warning instead.
21 lines
800 B
Bash
21 lines
800 B
Bash
TERMUX_PKG_HOMEPAGE=https://wiki.gnome.org/Projects/Libgee
|
|
TERMUX_PKG_DESCRIPTION="A collection library providing GObject-based interfaces and classes for commonly used data structures"
|
|
TERMUX_PKG_LICENSE="LGPL-2.1"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
_MAJOR_VERSION=0.20
|
|
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.6
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://ftp.gnome.org/pub/GNOME/sources/libgee/${_MAJOR_VERSION}/libgee-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=1bf834f5e10d60cc6124d74ed3c1dd38da646787fbf7872220b8b4068e476d4d
|
|
TERMUX_PKG_DEPENDS="glib"
|
|
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner, valac"
|
|
TERMUX_PKG_DISABLE_GIR=false
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-introspection=yes
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CFLAGS+=" -Wno-incompatible-function-pointer-types"
|
|
termux_setup_gir
|
|
}
|