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.
40 lines
964 B
40 lines
964 B
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
|
|
||
6 years ago
|
inherit cmake-utils linux-info
|
||
5 years ago
|
|
||
6 years ago
|
DESCRIPTION="Thunderbolt(TM) user-space components"
|
||
|
HOMEPAGE="https://github.com/intel/thunderbolt-software-user-space"
|
||
5 years ago
|
SRC_URI="https://github.com/intel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||
|
https://dev.gentoo.org/~asturm/distfiles/${P}-tbtadm.1.tar.xz"
|
||
6 years ago
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
5 years ago
|
DEPEND="dev-libs/boost:="
|
||
6 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
5 years ago
|
PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
|
||
|
|
||
6 years ago
|
pkg_pretend() {
|
||
|
CONFIG_CHECK="THUNDERBOLT"
|
||
|
ERROR_THUNDERBOLT="This program talks to the thunderbolt kernel driver, so please enable it."
|
||
|
CONFIG_CHECK="HOTPLUG_PCI"
|
||
5 years ago
|
ERROR_HOTPLUG_PCI="Thunderbolt needs pci hotplug support, so please enable it."
|
||
6 years ago
|
check_extra_config
|
||
|
}
|
||
5 years ago
|
|
||
|
src_prepare() {
|
||
|
cmake-utils_src_prepare
|
||
|
cmake_comment_add_subdirectory docs
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cmake-utils_src_install
|
||
|
doman tbtadm.1
|
||
|
}
|