From 42f068fc4e1dbb763a63240ef15df0fb976d6366 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Sun, 23 Jan 2022 11:01:33 -0800 Subject: dev-embedded/sunxi-tools: cleanup depends for libusb/udev Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Steve Arnold --- .../sunxi-tools/sunxi-tools-1.4.1-r1.ebuild | 45 ++++++++++++++++++++++ dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild | 36 ----------------- 2 files changed, 45 insertions(+), 36 deletions(-) create mode 100644 dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild delete mode 100644 dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild (limited to 'dev-embedded') diff --git a/dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild b/dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild new file mode 100644 index 000000000000..1935b50c89ee --- /dev/null +++ b/dev-embedded/sunxi-tools/sunxi-tools-1.4.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +MY_PV="v${PV}" +SRC_URI="https://github.com/linux-sunxi/sunxi-tools/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="Tools for Allwinner A10 devices." +HOMEPAGE="http://linux-sunxi.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +RDEPEND="acct-group/plugdev + virtual/libusb:1 + virtual/udev" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-respect-user-supplied-cflags.patch" + "${FILESDIR}/${P}-fix-strncpy-compiler-warning.patch" +) + +src_compile() { + 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() { + dobin bin2fex fex2bin phoenix_info sunxi-nand-image-builder + newbin sunxi-bootinfo bootinfo + newbin sunxi-fel fel + newbin sunxi-fexc fexc + newbin sunxi-nand-part nand-part +} diff --git a/dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild b/dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild deleted file mode 100644 index 24b37f3e50e0..000000000000 --- a/dev-embedded/sunxi-tools/sunxi-tools-1.4.1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit toolchain-funcs - -MY_PV="v${PV}" -SRC_URI="https://github.com/linux-sunxi/sunxi-tools/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - -DESCRIPTION="Tools for Allwinner A10 devices." -HOMEPAGE="http://linux-sunxi.org/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="" -KEYWORDS="~amd64" - -DEPEND="virtual/libusb" - -PATCHES=( - "${FILESDIR}/${P}-respect-user-supplied-cflags.patch" - "${FILESDIR}/${P}-fix-strncpy-compiler-warning.patch" -) - -src_compile() { - emake CC="$(tc-getCC)" tools misc -} - -src_install() { - dobin bin2fex fex2bin phoenix_info sunxi-nand-image-builder - newbin sunxi-bootinfo bootinfo - newbin sunxi-fel fel - newbin sunxi-fexc fexc - newbin sunxi-nand-part nand-part -} -- cgit v1.2.3-65-gdbad