mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
Manually went through some entries for `pkgcheck scan -c VariableOrderCheck`. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
31 lines
812 B
Bash
31 lines
812 B
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Library to interface with USB Type-c/Power Delivery devices"
|
|
HOMEPAGE="https://github.com/Rajaram-Regupathy/libtypec"
|
|
SRC_URI="https://github.com/Rajaram-Regupathy/libtypec/releases/download/${P}/${P}-Source.tar.gz"
|
|
|
|
S="${WORKDIR}/${P}-Source"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-0.5.0-CMakeLists.txt-fix-pkgconfig-install-path.patch"
|
|
"${FILESDIR}/${PN}-0.5.0-sysfs_ops-define-feature-test-macro-for-nft.patch"
|
|
"${FILESDIR}/${PN}-0.5.0-sysfs_ops-fix-nftw-fun-pointer-def.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
# don't force CFLAGS to allow Gentoo toolchain to set them
|
|
local mycmakeargs=(
|
|
-DLIBTYPEC_STRICT_CFLAGS=OFF
|
|
)
|
|
cmake_src_configure
|
|
}
|