You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1019 B
51 lines
1019 B
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit cmake linux-info
|
||
|
|
||
|
DESCRIPTION="An unofficial userspace driver for HID++ Logitech devices"
|
||
|
HOMEPAGE="https://github.com/PixlOne/logiops"
|
||
4 years ago
|
SRC_URI="https://github.com/PixlOne/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
4 years ago
|
|
||
|
LICENSE="GPL-3+"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="systemd"
|
||
|
|
||
|
DEPEND="
|
||
4 years ago
|
dev-libs/libconfig:=[cxx]
|
||
4 years ago
|
dev-libs/libevdev
|
||
|
virtual/libudev
|
||
|
systemd? ( sys-apps/systemd )
|
||
|
"
|
||
|
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
|
DOCS=( "README.md" "TESTED.md" )
|
||
|
|
||
|
pkg_pretend() {
|
||
|
local CHECK_CONFIG="~HID_LOGITECH ~HID_LOGITECH_HIDPP"
|
||
|
|
||
|
check_extra_config
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
cmake_src_install
|
||
|
|
||
|
insinto /etc
|
||
|
newins logid.example.cfg logid.cfg
|
||
|
|
||
|
newinitd "${FILESDIR}"/logid.initd logid
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
einfo "An example config file has been installed as /etc/logid.cfg."
|
||
|
einfo "See https://github.com/PixlOne/logiops/wiki/Configuration for more information."
|
||
|
}
|