blob: eb638efdfb923c58d40175ca96fee3c5d53c0346 (
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
47
48
49
50
51
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic meson
DESCRIPTION="UI library that focuses on simplicity and minimalism"
HOMEPAGE="https://pwmt.org/projects/girara/"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/pwmt/${PN}.git"
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/pwmt/girara/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
LICENSE="ZLIB"
SLOT="0/5.0" # SONAME (see meson.build)
IUSE="doc X"
RDEPEND="
>=dev-libs/glib-2.84:2
dev-libs/gobject-introspection
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
doc? ( app-text/doxygen )
"
DOCS=( AUTHORS README.md )
src_configure() {
# defang automagic dependencies
# Currently only needed for X11-specific workarounds
use X || append-flags -DGENTOO_GTK_HIDE_X11
local emesonargs=(
$(meson_feature doc docs)
)
meson_src_configure
}
src_compile() {
meson_src_compile
use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) # BUILD_DIR is set by meson_src_compile
}
|