summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2022-01-23 11:01:33 -0800
committerSteve Arnold <nerdboy@gentoo.org>2022-01-23 11:01:33 -0800
commit42f068fc4e1dbb763a63240ef15df0fb976d6366 (patch)
treef34198f3281f64656f8339d8d4f02a5e8eb8ab49 /dev-embedded
parentdev-python/jupyter_server: drop 1.11.1, 1.12.0, 1.12.1 (diff)
downloadgentoo-42f068fc4e1dbb763a63240ef15df0fb976d6366.tar.gz
gentoo-42f068fc4e1dbb763a63240ef15df0fb976d6366.tar.bz2
gentoo-42f068fc4e1dbb763a63240ef15df0fb976d6366.zip
dev-embedded/sunxi-tools: cleanup depends for libusb/udev
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild (renamed from dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild)13
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild b/dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild
index 24b37f3e50e0..1935b50c89ee 100644
--- a/dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild
+++ b/dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild
@@ -16,7 +16,12 @@ SLOT="0"
IUSE=""
KEYWORDS="~amd64"
-DEPEND="virtual/libusb"
+RDEPEND="acct-group/plugdev
+ virtual/libusb:1
+ virtual/udev"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${P}-respect-user-supplied-cflags.patch"
@@ -24,7 +29,11 @@ PATCHES=(
)
src_compile() {
- emake CC="$(tc-getCC)" tools misc
+ tc-export PKG_CONFIG
+
+ emake LIBUSB_CFLAGS="$(${PKG_CONFIG} --cflags libusb-1.0)" \
+ LIBUSB_LIBS="$(${PKG_CONFIG} --libs libusb-1.0)" \
+ CC="$(tc-getCC)" tools misc
}
src_install() {