commit: 908fab4f4a04e0928a31960231d12331111f3a09 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Mar 11 07:26:43 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 11 07:29:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=908fab4f
sys-block/libzbd: multiple QA fixes * Define RDEPEND * Move pkgconfig to BDEPEND * Make pkgconfig dependency conditional (only used for GUI * Fix unrecognised configure flags (--enable-gui, not --with-gtk) Closes: https://bugs.gentoo.org/771573 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-block/libzbd/libzbd-1.2.0.ebuild | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/sys-block/libzbd/libzbd-1.2.0.ebuild b/sys-block/libzbd/libzbd-1.2.0.ebuild index 568e9787c1b..ca893c6e8be 100644 --- a/sys-block/libzbd/libzbd-1.2.0.ebuild +++ b/sys-block/libzbd/libzbd-1.2.0.ebuild @@ -9,17 +9,20 @@ DESCRIPTION="Zoned block device manipulation library and tools" HOMEPAGE="https://github.com/westerndigitalcorporation/libzbd" SRC_URI="https://github.com/westerndigitalcorporation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +# Examples/tools are GPL-3+, library is LGPL-3+ LICENSE="GPL-3+ LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" IUSE="gtk" -DEPEND="virtual/pkgconfig +# PKG_CHECK_MODULES is only for GTK right now +# https://github.com/westerndigitalcorporation/libzbd/blob/master/configure.ac#L71 +BDEPEND="gtk? ( virtual/pkgconfig )" +DEPEND=" >=sys-kernel/linux-headers-4.13 - gtk? ( x11-libs/gtk+:3 )" - -PATCHES=( -) + gtk? ( x11-libs/gtk+:3 ) +" +RDEPEND="${DEPEND}" src_prepare() { default @@ -28,7 +31,7 @@ src_prepare() { src_configure() { econf \ - $(use_with gtk gtk3) \ + $(use_enable gtk gui) \ --disable-static }