Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/pdfpc/
Date: Fri, 24 Jun 2022 07:49:34
Message-Id: 1656056965.b6a75e9258da04390f5cc419dc381a39166c1ec4.ulm@gentoo
1 commit: b6a75e9258da04390f5cc419dc381a39166c1ec4
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 07:46:57 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 07:49:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6a75e92
7
8 app-misc/pdfpc: Update vala versions
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 app-misc/pdfpc/pdfpc-4.5.0-r1.ebuild | 74 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 74 insertions(+)
14
15 diff --git a/app-misc/pdfpc/pdfpc-4.5.0-r1.ebuild b/app-misc/pdfpc/pdfpc-4.5.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..19911fdc5956
18 --- /dev/null
19 +++ b/app-misc/pdfpc/pdfpc-4.5.0-r1.ebuild
20 @@ -0,0 +1,74 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +VALA_MIN_API_VERSION="0.50"
27 +VALA_MAX_API_VERSION="0.56" # append versions in sed line if increased
28 +
29 +#COMMIT_ID=""
30 +
31 +inherit cmake vala
32 +
33 +DESCRIPTION="Presenter console with multi-monitor support for PDF files"
34 +HOMEPAGE="https://pdfpc.github.io https://github.com/pdfpc/pdfpc"
35 +
36 +if [[ ${PV} == *9999 ]]; then
37 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
38 + inherit git-r3
39 +elif [[ ${PV} == *_p* ]]; then
40 + SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
41 + S="${WORKDIR}/${PN}-${COMMIT_ID}"
42 +else
43 + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +fi
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+gstreamer"
50 +
51 +RDEPEND="
52 + app-text/discount
53 + app-text/poppler:=[cairo]
54 + dev-libs/glib:2
55 + dev-libs/json-glib
56 + dev-libs/libgee:0.8=
57 + gnome-base/librsvg
58 + net-libs/webkit-gtk:4=
59 + x11-libs/cairo
60 + x11-libs/gdk-pixbuf:2
61 + x11-libs/gtk+:3
62 + x11-libs/libX11
63 + x11-libs/pango
64 + gstreamer? (
65 + media-libs/gstreamer:1.0
66 + media-libs/gst-plugins-base:1.0
67 + media-plugins/gst-plugins-gtk:1.0=
68 + media-plugins/gst-plugins-cairo:1.0=
69 + )
70 +"
71 +DEPEND="${RDEPEND}"
72 +BDEPEND="$(vala_depend)"
73 +
74 +DOCS=(
75 + CHANGELOG.rst
76 + FAQ.rst
77 + README.rst
78 + SUPPORT.rst
79 +)
80 +
81 +src_prepare() {
82 + cmake_src_prepare
83 + vala_setup
84 + sed -i -e "/find_program/s/valac/& &-0.56 &-0.54 &-0.52 &-0.50/" \
85 + cmake/vala/FindVala.cmake || die
86 +}
87 +
88 +src_configure() {
89 + local mycmakeargs=(
90 + -DMOVIES=$(usex gstreamer on off)
91 + -DCMAKE_VERBOSE_MAKEFILE=TRUE
92 + )
93 + cmake_src_configure
94 +}