commit: 7a34377e3277a6a0e2eedd40e90452a44c55f1e6 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Feb 14 11:59:35 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Feb 14 12:01:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a34377e
media-gfx/qrencode: Add "png" flag Closes: https://bugs.gentoo.org/833147 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> media-gfx/qrencode/metadata.xml | 3 +++ media-gfx/qrencode/qrencode-4.1.1.ebuild | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/media-gfx/qrencode/metadata.xml b/media-gfx/qrencode/metadata.xml index e13c48b5c567..f60e509e8b44 100644 --- a/media-gfx/qrencode/metadata.xml +++ b/media-gfx/qrencode/metadata.xml @@ -9,4 +9,7 @@ <email>[email protected]</email> <name>Michał Górny</name> </maintainer> + <use> + <flag name="png">Enable PNG output support in qrencode tool</flag> + </use> </pkgmetadata> diff --git a/media-gfx/qrencode/qrencode-4.1.1.ebuild b/media-gfx/qrencode/qrencode-4.1.1.ebuild index e30ccba4b199..147bb0f0b5d4 100644 --- a/media-gfx/qrencode/qrencode-4.1.1.ebuild +++ b/media-gfx/qrencode/qrencode-4.1.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -10,15 +10,17 @@ SRC_URI="https://fukuchi.org/works/${PN}/${P}.tar.bz2" LICENSE="LGPL-2" SLOT="0/4" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos" -IUSE="test" +IUSE="png test" RESTRICT="!test? ( test )" -RDEPEND="media-libs/libpng:0=" +RDEPEND=" + png? ( media-libs/libpng:0= )" DEPEND="${RDEPEND} virtual/pkgconfig" src_configure() { local myconf=( + $(use_with png) $(use_with test tests) # TODO: figure out how to make SDL check fail as the SDL test # program is not useful
