mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
gui-libs/text-engine: Add patch to fix -Wreturn-type errors
Closes: https://bugs.gentoo.org/887649 Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
This commit is contained in:
51
gui-libs/text-engine/text-engine-0.1.1-r2.ebuild
Normal file
51
gui-libs/text-engine/text-engine-0.1.1-r2.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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="LGPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/libxml2:2
|
||||
gui-libs/gtk:4
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/json-glib
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-libs/pango
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-package-version.patch"
|
||||
"${FILESDIR}/${P}-fix-Wreturn-type.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "/subdir('demo')/d" meson.build ||
|
||||
die "Failed to modify meson.build to exclude the demo program"
|
||||
}
|
||||
Reference in New Issue
Block a user