commit:     b115b759f8c78fb46dd431231328cacd15a29748
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Sep 10 10:51:40 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Sep 14 07:38:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b115b759

app-text/zathura-cb: add jpeg optfeature

Fixes: https://git.pwmt.org/pwmt/zathura/-/issues/213

Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/22258
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-text/zathura-cb/zathura-cb-0.1.8.ebuild | 4 +++-
 app-text/zathura-cb/zathura-cb-9999.ebuild  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-text/zathura-cb/zathura-cb-0.1.8.ebuild 
b/app-text/zathura-cb/zathura-cb-0.1.8.ebuild
index 48ce63a869f..98bbcc88ced 100644
--- a/app-text/zathura-cb/zathura-cb-0.1.8.ebuild
+++ b/app-text/zathura-cb/zathura-cb-0.1.8.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit meson xdg-utils
+inherit meson xdg-utils optfeature
 
 if [[ ${PV} == *9999 ]]; then
        inherit git-r3
@@ -31,6 +31,8 @@ BDEPEND="virtual/pkgconfig"
 
 pkg_postinst() {
        xdg_desktop_database_update
+
+       optfeature "jpeg support" x11-libs/gdk-pixbuf:=[jpeg]
 }
 
 pkg_postrm() {

diff --git a/app-text/zathura-cb/zathura-cb-9999.ebuild 
b/app-text/zathura-cb/zathura-cb-9999.ebuild
index 58014fc992e..2218f9a4ff8 100644
--- a/app-text/zathura-cb/zathura-cb-9999.ebuild
+++ b/app-text/zathura-cb/zathura-cb-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit meson xdg-utils
+inherit meson xdg-utils optfeature
 
 if [[ ${PV} == *9999 ]]; then
        inherit git-r3
@@ -31,6 +31,8 @@ BDEPEND="virtual/pkgconfig"
 
 pkg_postinst() {
        xdg_desktop_database_update
+
+       optfeature "jpeg support" x11-libs/gdk-pixbuf:=[jpeg]
 }
 
 pkg_postrm() {

Reply via email to