summaryrefslogtreecommitdiff
path: root/app-misc/open-plc-utils/open-plc-utils-9999.ebuild
blob: a88fa87071c6d654d15f17114e61140889836b14 (plain) (blame)
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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

if [[ ${PV} = 9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/qca/open-plc-utils.git"
	S=${WORKDIR}/open-plc-utils-${PV}
else
	SRC_URI="https://github.com/qca/open-plc-utils/archive/v${PV}.tar.gz -> python-diamond-${PV}.tar.gz"
	S=${WORKDIR}/open-plc-utils-${PV}
fi

DESCRIPTION="Qualcomm Atheros Open Powerline Toolkit. "
HOMEPAGE="https://github.com/qca/open-plc-utils"
KEYWORDS="~amd64 ~x86"

LICENSE="BSD"
SLOT="0"
IUSE="doc"
HTML_DOCS=( docbook/. )

RDEPEND=""
DEPEND="${RDEPEND}"

src_install() {
	emake ROOTFS="${D}" install || die "emake install failed"
	emake ROOTFS="${D}" manuals || die "emake manuals failed"
	use doc && einstalldocs
}