blob: 3d0af284cb50dfea4a9a871915ec4b3805b4f4c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# 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
"
src_prepare() {
default
sed -i -e "/subdir('demo')/d" meson.build ||
die "Failed to modify meson.build to exclude the demo program"
}
|