dev-embedded/rauc: Use docs eclass

That one takes care of everything regarding the documentation.

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
Kurt Kanzenbach
2020-05-01 13:44:52 +02:00
parent fc06fbb697
commit ae18ad5d31

View File

@@ -3,6 +3,11 @@
EAPI=7
DOCBUILDER="sphinx"
DOCDIR="${S}/docs"
inherit 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"
@@ -10,13 +15,12 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE="doc json network service test"
IUSE="json network service test"
RESTRICT="!test? ( test )"
BDEPEND="
virtual/pkgconfig
doc? ( dev-python/sphinx )
test? ( sys-fs/squashfs-tools )
"
RDEPEND="
@@ -40,13 +44,3 @@ src_configure() {
)
econf "${myconf[@]}"
}
src_compile() {
default
use doc && emake doc
}
src_install() {
use doc && local HTML_DOCS=( docs/build/html/. )
default
}