blob: bb693994c38c8c8712d567155918234c6f565757 (
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
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson vala
DESCRIPTION="A library full of GTK+ widgets for mobile phones"
HOMEPAGE="https://source.puri.sm/Librem5/libhandy"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://source.puri.sm/guido.gunther/${PN}.git"
EGIT_BRANCH="g-enum-no-auto-ptr"
else
SRC_URI="https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-v${PV}"
PATCHES=("${FILESDIR}/g-enum-no-auto-ptr.patch")
fi
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="dev-util/meson
dev-lang/vala
dev-util/glade
dev-libs/gobject-introspection
gnome-base/gnome-desktop"
VALA_USE_DEPEND=vapigen
BUILD_DIR="${S}/build"
src_prepare() {
default
vala_src_prepare --vala-api-version $(vala_best_api_version)
}
|