mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
66 lines
1.1 KiB
Bash
66 lines
1.1 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..11} )
|
|
DOCS_BUILDER="sphinx"
|
|
DOCS_DIR="${S}/docs"
|
|
|
|
inherit autotools python-any-r1 docs
|
|
|
|
DESCRIPTION="Lightweight update client that runs on your Embedded Linux device"
|
|
HOMEPAGE="https://rauc.io/"
|
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
|
|
|
SLOT="0"
|
|
LICENSE="LGPL-2.1"
|
|
KEYWORDS="~amd64"
|
|
IUSE="gpt json network service test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="
|
|
dev-util/gdbus-codegen
|
|
virtual/pkgconfig
|
|
test? (
|
|
dev-libs/opensc
|
|
net-misc/casync
|
|
sys-fs/mtd-utils
|
|
sys-fs/squashfs-tools
|
|
sys-libs/libfaketime
|
|
)
|
|
"
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
dev-libs/openssl:0=
|
|
json? ( dev-libs/json-glib )
|
|
network? ( net-misc/curl )
|
|
service? ( sys-apps/dbus )
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
"
|
|
|
|
PATCHES=( "${FILESDIR}/${P}-tests.patch" )
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myconf=(
|
|
$(use_enable gpt)
|
|
$(use_enable json)
|
|
$(use_enable network)
|
|
$(use_enable service)
|
|
)
|
|
econf "${myconf[@]}"
|
|
}
|
|
|
|
src_compile() {
|
|
default
|
|
docs_compile
|
|
}
|