summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-14 12:59:35 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-14 13:01:23 +0100
commit7a34377e3277a6a0e2eedd40e90452a44c55f1e6 (patch)
tree55844e5dd52ea20d3ad289c7f219462455e3713c /media-gfx/qrencode
parentapp-admin/pass: Prepare for new qrencode[png] flag (diff)
downloadgentoo-7a34377e3277a6a0e2eedd40e90452a44c55f1e6.tar.gz
gentoo-7a34377e3277a6a0e2eedd40e90452a44c55f1e6.tar.bz2
gentoo-7a34377e3277a6a0e2eedd40e90452a44c55f1e6.zip
media-gfx/qrencode: Add "png" flag
Closes: https://bugs.gentoo.org/833147 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-gfx/qrencode')
-rw-r--r--media-gfx/qrencode/metadata.xml3
-rw-r--r--media-gfx/qrencode/qrencode-4.1.1.ebuild8
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>mgorny@gentoo.org</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