From ecd01a2f390b78ad6e84d45c7ed7639d95ed54a2 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sat, 11 Feb 2023 05:26:58 +0100 Subject: app-misc/pdfpc: Make soup and webkit support optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/893858 Signed-off-by: Ulrich Müller --- app-misc/pdfpc/metadata.xml | 11 +++++ app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild | 80 ++++++++++++++++++++++++++++++++++++ app-misc/pdfpc/pdfpc-4.6.0.ebuild | 76 ---------------------------------- 3 files changed, 91 insertions(+), 76 deletions(-) create mode 100644 app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild delete mode 100644 app-misc/pdfpc/pdfpc-4.6.0.ebuild (limited to 'app-misc') 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 @@ ulm@gentoo.org + + + Compile support for movie playback (media-libs/gstreamer) + + + Compile support for REST server (net-libs/libsoup) + + + Enable viewing Markdown notes (net-libs/webkit-gtk) + + pdfpc/pdfpc diff --git a/app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild b/app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild new file mode 100644 index 000000000000..884855a57e36 --- /dev/null +++ b/app-misc/pdfpc/pdfpc-4.6.0-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VALA_MAX_API_VERSION="0.56" # append versions in sed line if increased + +#COMMIT_ID="" + +inherit cmake vala + +DESCRIPTION="Presenter console with multi-monitor support for PDF files" +HOMEPAGE="https://pdfpc.github.io https://github.com/pdfpc/pdfpc" + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 +elif [[ ${PV} == *_p* ]]; then + SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT_ID}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+gstreamer soup webkit" + +RDEPEND=" + app-text/discount:= + app-text/poppler:=[cairo] + dev-libs/glib:2 + dev-libs/json-glib + dev-libs/libgee:0.8= + gnome-base/librsvg + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/pango + gstreamer? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + 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)" + +DOCS=( + CHANGELOG.rst + FAQ.rst + README.rst + SUPPORT.rst +) + +src_prepare() { + cmake_src_prepare + vala_setup + sed -i -e "/find_program/s/valac/& &-0.56 &-0.54 &-0.52 &-0.50/" \ + cmake/vala/FindVala.cmake || die +} + +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 +} diff --git a/app-misc/pdfpc/pdfpc-4.6.0.ebuild b/app-misc/pdfpc/pdfpc-4.6.0.ebuild deleted file mode 100644 index f1047533fe6e..000000000000 --- a/app-misc/pdfpc/pdfpc-4.6.0.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -VALA_MAX_API_VERSION="0.56" # append versions in sed line if increased - -#COMMIT_ID="" - -inherit cmake vala - -DESCRIPTION="Presenter console with multi-monitor support for PDF files" -HOMEPAGE="https://pdfpc.github.io https://github.com/pdfpc/pdfpc" - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" - inherit git-r3 -elif [[ ${PV} == *_p* ]]; then - SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${COMMIT_ID}" -else - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -fi - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+gstreamer" - -RDEPEND=" - app-text/discount:= - app-text/poppler:=[cairo] - dev-libs/glib:2 - 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 - x11-libs/libX11 - x11-libs/pango - gstreamer? ( - media-libs/gstreamer:1.0 - media-libs/gst-plugins-base:1.0 - media-libs/gst-plugins-good:1.0 - media-plugins/gst-plugins-gtk:1.0= - media-plugins/gst-plugins-cairo:1.0= - ) -" -DEPEND="${RDEPEND}" -BDEPEND="$(vala_depend)" - -DOCS=( - CHANGELOG.rst - FAQ.rst - README.rst - SUPPORT.rst -) - -src_prepare() { - cmake_src_prepare - vala_setup - sed -i -e "/find_program/s/valac/& &-0.56 &-0.54 &-0.52 &-0.50/" \ - cmake/vala/FindVala.cmake || die -} - -src_configure() { - local mycmakeargs=( - -DMOVIES=$(usex gstreamer on off) - -DCMAKE_VERBOSE_MAKEFILE=TRUE - ) - cmake_src_configure -} -- cgit v1.2.3-65-gdbad