From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/
Date: Sat, 14 May 2022 21:30:37 +0000 (UTC) [thread overview]
Message-ID: <1652563814.33aa4c20fa753b8a31ebe46446e3e8f501f9a8bb.soap@gentoo> (raw)
commit: 33aa4c20fa753b8a31ebe46446e3e8f501f9a8bb
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:30:14 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:30:14 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33aa4c20
media-gfx/pngquant: [QA] tc-has-openmp → tc-check-openmp
Signed-off-by: David Seifert <soap <AT> gentoo.org>
media-gfx/pngquant/pngquant-2.12.6.ebuild | 17 ++++++++++++-----
media-gfx/pngquant/pngquant-2.17.0.ebuild | 15 +++++++++++----
2 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/media-gfx/pngquant/pngquant-2.12.6.ebuild b/media-gfx/pngquant/pngquant-2.12.6.ebuild
index ded2693e8e4a..2e645d7f52f3 100644
--- a/media-gfx/pngquant/pngquant-2.12.6.ebuild
+++ b/media-gfx/pngquant/pngquant-2.12.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
@@ -22,14 +22,21 @@ RDEPEND="
sys-libs/zlib:=
lcms? ( media-libs/lcms:2 )
"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
-"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
src_prepare() {
default
@@ -45,7 +52,7 @@ src_configure() {
--with-libimagequant \
$(use debug && echo --enable-debug) \
$(use_enable cpu_flags_x86_sse2 sse) \
- $(use openmp && tc-has-openmp && echo --with-openmp) \
+ $(use openmp && echo --with-openmp) \
$(use_with lcms lcms2) \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
diff --git a/media-gfx/pngquant/pngquant-2.17.0.ebuild b/media-gfx/pngquant/pngquant-2.17.0.ebuild
index dff2d725f4fd..aad64b726dac 100644
--- a/media-gfx/pngquant/pngquant-2.17.0.ebuild
+++ b/media-gfx/pngquant/pngquant-2.17.0.ebuild
@@ -22,14 +22,21 @@ RDEPEND="
sys-libs/zlib:=
lcms? ( media-libs/lcms:2 )
"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
-"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
src_prepare() {
default
@@ -45,7 +52,7 @@ src_configure() {
--with-libimagequant \
$(use debug && echo --enable-debug) \
$(use_enable cpu_flags_x86_sse2 sse) \
- $(use openmp && tc-has-openmp && echo --with-openmp) \
+ $(use openmp && echo --with-openmp) \
$(use_with lcms lcms2) \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
next reply other threads:[~2022-05-14 21:30 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-14 21:30 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-26 6:04 [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/ Arthur Zamarin
2024-05-25 18:28 Arthur Zamarin
2024-05-25 18:28 Arthur Zamarin
2023-02-06 5:21 Sam James
2023-02-06 5:21 Sam James
2022-06-07 5:54 Sam James
2022-06-06 6:28 Jakov Smolić
2022-06-06 6:28 Jakov Smolić
2022-05-17 7:56 WANG Xuerui
2022-03-05 23:08 Andreas K. Hüttel
2022-03-05 22:39 Andreas K. Hüttel
2021-09-16 12:32 Marek Szuba
2020-10-06 4:37 Sam James
2020-07-20 18:49 Sam James
2020-06-21 15:24 Thomas Deutschmann
2020-06-14 17:54 Pacho Ramos
2020-06-06 23:18 Andreas K. Hüttel
2020-06-04 17:14 Mart Raudsepp
2020-06-04 14:06 Michał Górny
2020-06-01 19:12 Georgy Yakovlev
2020-04-23 9:38 Pacho Ramos
2020-04-23 8:49 Pacho Ramos
2020-03-11 19:47 Pacho Ramos
2019-12-05 7:47 Pacho Ramos
2019-11-20 11:16 Agostino Sarubbo
2019-05-30 19:15 Thomas Deutschmann
2019-03-09 8:54 Pacho Ramos
2019-02-07 13:20 Mikle Kolyada
2019-01-19 11:57 Jonas Stein
2018-04-25 21:25 Aaron Bauman
2018-03-31 5:02 Tim Harder
2018-03-31 5:02 Tim Harder
2017-11-29 0:09 Thomas Deutschmann
2016-08-20 1:15 Tim Harder
2016-01-11 17:08 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1652563814.33aa4c20fa753b8a31ebe46446e3e8f501f9a8bb.soap@gentoo \
--to=soap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox