Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/projecteur/, x11-misc/projecteur/files/
Date: Sat, 27 Feb 2021 15:31:24
Message-Id: 1614439863.834e62a9e5a36262c50f68d3ecdd78df3ac7a1fa.conikost@gentoo
1 commit: 834e62a9e5a36262c50f68d3ecdd78df3ac7a1fa
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 15:29:14 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 15:31:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=834e62a9
7
8 x11-misc/projecteur: bump to version 0.9.1
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 x11-misc/projecteur/Manifest | 1 +
14 .../projecteur-0.9.1-dont-compress-manpage.patch | 27 +++++++++++
15 x11-misc/projecteur/projecteur-0.9.1.ebuild | 53 ++++++++++++++++++++++
16 3 files changed, 81 insertions(+)
17
18 diff --git a/x11-misc/projecteur/Manifest b/x11-misc/projecteur/Manifest
19 index e2af8f9c8b6..2f6e18330ca 100644
20 --- a/x11-misc/projecteur/Manifest
21 +++ b/x11-misc/projecteur/Manifest
22 @@ -1 +1,2 @@
23 DIST projecteur-0.8.tar.gz 379203 BLAKE2B b2171bd6120c9f6245c129519e33adbb4661ea4cd0df5f30c6c90fbefb8b7c5024da5c6d920d4e162b818bc0fc6417731dcf0c540103ed6f12976123c45c69eb SHA512 e892e87f442cfa7f0102efa01b43e63ed7ea9c30c875496dd3d683ee769de66f0a4ccfae149f060924e5613dfd7758a0b19d565232fb6db75b9228cee4a956de
24 +DIST projecteur-0.9.1.tar.gz 392308 BLAKE2B 31ec19b81b9f3cf8c60712a52d3cf4dd96a215115d2fffc437892f276b9f1e6a58cf0c2165226166f0c2067f6ab2180829c8bc8204dbe368facbeef398da837f SHA512 28e0030a481dd2adb9eaba54066f060b61f7e4477918f46e25fad1e1a1c841dd5500c24779d66d3fab643e5aa39f92b0dd0c2fd7a0b80b8de8f258ae7572ed36
25
26 diff --git a/x11-misc/projecteur/files/projecteur-0.9.1-dont-compress-manpage.patch b/x11-misc/projecteur/files/projecteur-0.9.1-dont-compress-manpage.patch
27 new file mode 100644
28 index 00000000000..e7c96648e0c
29 --- /dev/null
30 +++ b/x11-misc/projecteur/files/projecteur-0.9.1-dont-compress-manpage.patch
31 @@ -0,0 +1,27 @@
32 +--- a/CMakeLists.txt
33 ++++ b/CMakeLists.txt
34 +@@ -223,14 +223,7 @@
35 +
36 + # Configure man page and gzip it.
37 + configure_file("${TMPLDIR}/projecteur.1" "projecteur.1" @ONLY)
38 +-find_program(GZIP_EXECUTABLE gzip)
39 +-add_custom_command(
40 +- OUTPUT ${OUTDIR}/projecteur.1.gz
41 +- COMMAND ${GZIP_EXECUTABLE} -9f -n "${OUTDIR}/projecteur.1"
42 +- WORKING_DIRECTORY ${OUTDIR}
43 +-)
44 +-add_custom_target(gzip-manpage ALL DEPENDS "${OUTDIR}/projecteur.1.gz")
45 +-install(FILES "${OUTDIR}/projecteur.1.gz" DESTINATION share/man/man1/)
46 ++install(FILES "${OUTDIR}/projecteur.1" DESTINATION share/man/man1/)
47 +
48 + configure_file("${TMPLDIR}/projecteur.metainfo.xml" "projecteur.metainfo.xml" @ONLY)
49 + install(FILES "${OUTDIR}/projecteur.metainfo.xml" DESTINATION share/metainfo/)
50 +@@ -270,7 +263,7 @@
51 + # PREINST_SCRIPT "${OUTDIR}/pkg/scripts/preinst"
52 + POSTINST_SCRIPT "${OUTDIR}/pkg/scripts/postinst"
53 + )
54 +- add_dependencies(dist-package gzip-manpage projecteur)
55 ++ add_dependencies(dist-package projecteur)
56 +
57 + # Additional files for debian packages, adhering to some debian rules,
58 + # see https://manpages.debian.org/buster/lintian/lintian.1.en.html
59
60 diff --git a/x11-misc/projecteur/projecteur-0.9.1.ebuild b/x11-misc/projecteur/projecteur-0.9.1.ebuild
61 new file mode 100644
62 index 00000000000..6a27eb2c810
63 --- /dev/null
64 +++ b/x11-misc/projecteur/projecteur-0.9.1.ebuild
65 @@ -0,0 +1,53 @@
66 +# Copyright 1999-2021 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI=7
70 +
71 +MY_PN="${PN/p/P}"
72 +
73 +inherit cmake udev xdg-utils
74 +
75 +DESCRIPTION="Linux Desktop Application for the Logitech Spotlight device"
76 +HOMEPAGE="https://github.com/jahnf/Projecteur"
77 +SRC_URI="https://github.com/jahnf/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
78 +S="${WORKDIR}/${MY_PN}-${PV}"
79 +
80 +LICENSE="MIT"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~x86"
83 +
84 +RDEPEND="
85 + dev-qt/qtcore:5
86 + dev-qt/qtdeclarative:5
87 + || (
88 + dev-qt/qtgui:5[X(-)]
89 + dev-qt/qtgui:5[xcb(-)]
90 + )
91 + dev-qt/qtnetwork:5
92 + dev-qt/qtwidgets:5
93 + dev-qt/qtx11extras:5
94 + virtual/udev
95 + x11-libs/libX11
96 +"
97 +DEPEND="${RDEPEND}"
98 +
99 +BDEPEND="virtual/pkgconfig"
100 +
101 +PATCHES=( "${FILESDIR}/${PN}-0.9.1-dont-compress-manpage.patch" )
102 +
103 +src_prepare() {
104 + cmake_src_prepare
105 +
106 + # Don't treat all warnings as errors
107 + sed -e '/add_compile_options/d' -i CMakeLists.txt || die
108 +}
109 +
110 +pkg_postinst() {
111 + udev_reload
112 + xdg_icon_cache_update
113 +}
114 +
115 +pkg_postrm() {
116 + udev_reload
117 + xdg_icon_cache_update
118 +}