summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-02-11 05:26:58 +0100
committerUlrich Müller <ulm@gentoo.org>2023-02-11 05:30:29 +0100
commitecd01a2f390b78ad6e84d45c7ed7639d95ed54a2 (patch)
tree13b29c00aee7d8b021a0ddc9a5b729bc3f30eb8f /app-misc/pdfpc
parentdev-perl/Tk: fix configure w/ clang 16, backport other crash fixes (diff)
downloadgentoo-ecd01a2f390b78ad6e84d45c7ed7639d95ed54a2.tar.gz
gentoo-ecd01a2f390b78ad6e84d45c7ed7639d95ed54a2.tar.bz2
gentoo-ecd01a2f390b78ad6e84d45c7ed7639d95ed54a2.zip
app-misc/pdfpc: Make soup and webkit support optional
Closes: https://bugs.gentoo.org/893858 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-misc/pdfpc')
-rw-r--r--app-misc/pdfpc/metadata.xml11
-rw-r--r--app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild (renamed from app-misc/pdfpc/pdfpc-4.6.0.ebuild)12
2 files changed, 19 insertions, 4 deletions
diff --git a/app-misc/pdfpc/metadata.xml b/app-misc/pdfpc/metadata.xml
index b398906d022f..780c14d9b256 100644
--- a/app-misc/pdfpc/metadata.xml
+++ b/app-misc/pdfpc/metadata.xml
@@ -4,6 +4,17 @@
<maintainer type="person">
<email>ulm@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="gstreamer">
+ Compile support for movie playback (<pkg>media-libs/gstreamer</pkg>)
+ </flag>
+ <flag name="soup">
+ Compile support for REST server (<pkg>net-libs/libsoup</pkg>)
+ </flag>
+ <flag name="webkit">
+ Enable viewing Markdown notes (<pkg>net-libs/webkit-gtk</pkg>)
+ </flag>
+ </use>
<upstream>
<remote-id type="github">pdfpc/pdfpc</remote-id>
</upstream>
diff --git a/app-misc/pdfpc/pdfpc-4.6.0.ebuild b/app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild
index f1047533fe6e..884855a57e36 100644
--- a/app-misc/pdfpc/pdfpc-4.6.0.ebuild
+++ b/app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild
@@ -25,7 +25,7 @@ fi
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+gstreamer"
+IUSE="+gstreamer soup webkit"
RDEPEND="
app-text/discount:=
@@ -34,9 +34,6 @@ RDEPEND="
dev-libs/json-glib
dev-libs/libgee:0.8=
gnome-base/librsvg
- media-gfx/qrencode
- net-libs/libsoup:2.4
- net-libs/webkit-gtk:4=
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
@@ -49,6 +46,11 @@ RDEPEND="
media-plugins/gst-plugins-gtk:1.0=
media-plugins/gst-plugins-cairo:1.0=
)
+ soup? (
+ media-gfx/qrencode
+ net-libs/libsoup:2.4
+ )
+ webkit? ( net-libs/webkit-gtk:4= )
"
DEPEND="${RDEPEND}"
BDEPEND="$(vala_depend)"
@@ -70,6 +72,8 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DMOVIES=$(usex gstreamer on off)
+ -DREST=$(usex soup on off)
+ -DMDVIEW=$(usex webkit on off)
-DCMAKE_VERBOSE_MAKEFILE=TRUE
)
cmake_src_configure