mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
As of the time when this commit is authored, the latest stable version
of dev-libs/glib in ::gentoo is 2.70.4; however, some new tests of this
package added in commits staged for the next release would fail with
glib 2.70.4:
Bail out! GLib-FATAL-ERROR: ../glib-2.70.4/glib/gmem.c:112: failed to allocate 18446744073709551611 bytes
(test/split:29196): GLib-ERROR **: 11:25:10.093: ../glib-2.70.4/glib/gmem.c:112: failed to allocate 18446744073709551611 bytes
Trace/breakpoint trap (core dumped)
These failures can be fixed by upgrading glib to >=2.72.0; 2.72.0 is
also the version used by the upstream in this project's CI builds.
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
47 lines
849 B
Bash
47 lines
849 B
Bash
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/mjakeman/text-engine.git"
|
|
else
|
|
SRC_URI="https://github.com/mjakeman/text-engine/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
DESCRIPTION="A lightweight rich-text framework for GTK 4"
|
|
HOMEPAGE="https://github.com/mjakeman/text-engine"
|
|
|
|
LICENSE="|| ( MPL-2.0 LGPL-2.1+ )"
|
|
SLOT="0"
|
|
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
COMMON_DEPEND="
|
|
>=dev-libs/glib-2.72.0:2
|
|
dev-libs/libxml2:2
|
|
gui-libs/gtk:4
|
|
"
|
|
|
|
DEPEND="
|
|
${COMMON_DEPEND}
|
|
dev-libs/json-glib
|
|
"
|
|
|
|
RDEPEND="
|
|
${COMMON_DEPEND}
|
|
x11-libs/pango
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i -e "/subdir('demo')/d" meson.build ||
|
|
die "Failed to modify meson.build to exclude the demo program"
|
|
}
|