Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/rofi/
Date: Sun, 10 Oct 2021 09:25:40
Message-Id: 1633857924.9fed0ccf36b2ad2036d6ae10da11dd13f44ad47c.flow@gentoo
1 commit: 9fed0ccf36b2ad2036d6ae10da11dd13f44ad47c
2 Author: Petrus.Z <silencly07 <AT> gmail <DOT> com>
3 AuthorDate: Sat Oct 9 05:53:06 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 10 09:25:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fed0ccf
7
8 x11-misc/rofi: version bump to 1.7.0
9
10 Package-Manager: Portage-3.0.26, Repoman-3.0.3
11 Signed-off-by: Petrus Zhao <petrus.zy.07 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/22524
13 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
14
15 x11-misc/rofi/Manifest | 1 +
16 x11-misc/rofi/metadata.xml | 27 ++++++++++++-----
17 x11-misc/rofi/rofi-1.7.0.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++
18 3 files changed, 86 insertions(+), 8 deletions(-)
19
20 diff --git a/x11-misc/rofi/Manifest b/x11-misc/rofi/Manifest
21 index 4786f50a50b..6c71b2feda6 100644
22 --- a/x11-misc/rofi/Manifest
23 +++ b/x11-misc/rofi/Manifest
24 @@ -1 +1,2 @@
25 DIST rofi-1.6.1.tar.gz 569262 BLAKE2B 938b45f8326b5a28e349ac9f7028c476274faa4f932a773acc350d5e1dc8d5c05c7cfb7ec10f1ab5d8c83590074424c3379768671d37ee799d78e508b8c4a4cb SHA512 b54e75818a98fa9262a3016260051837de189d49beff4f4a158cb2e7f41438641377e11d75c164f423e6a86d8b8fca3b76e2630611678525465d06c21b393f60
26 +DIST rofi-1.7.0.tar.gz 902294 BLAKE2B 281f48702650f65e4b037fdbbe6861e173dd3465cf6a80a1d2038271511a9f85ebdb19d8e7a1854f82d52172bbfea6eb1b1685228fc4ff874773033406c9267b SHA512 84a42ecf519c7eed8093c4af3b66731b890939a2bf2a63290e599103705f6bacaba59ade1b8a1bc854f6b767e8d44ee42c20e44f63886bcacbfdbe0468d350b4
27
28 diff --git a/x11-misc/rofi/metadata.xml b/x11-misc/rofi/metadata.xml
29 index 87511edddce..040d877273a 100644
30 --- a/x11-misc/rofi/metadata.xml
31 +++ b/x11-misc/rofi/metadata.xml
32 @@ -1,12 +1,23 @@
33 <?xml version="1.0" encoding="UTF-8"?>
34 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
35 <pkgmetadata>
36 - <!-- maintainer-needed -->
37 -<use>
38 -<flag name="drun">Enable desktop file run dialog</flag>
39 -<flag name="windowmode">Enable normal window mode</flag>
40 -</use>
41 -<upstream>
42 -<remote-id type="github">DaveDavenport/rofi</remote-id>
43 -</upstream>
44 + <maintainer type="person" proxied="yes">
45 + <email>petrus.zy.07@×××××.com</email>
46 + <name>Petrus Zhao</name>
47 + </maintainer>
48 + <maintainer type="project" proxied="proxy">
49 + <email>proxy-maint@g.o</email>
50 + <name>Proxy Maintainers</name>
51 + </maintainer>
52 + <maintainer type="person">
53 + <name>Florian Schmaus</name>
54 + <email>flow@g.o</email>
55 + </maintainer>
56 + <use>
57 + <flag name="drun">Enable desktop file run dialog</flag>
58 + <flag name="windowmode">Enable normal window mode</flag>
59 + </use>
60 + <upstream>
61 + <remote-id type="github">DaveDavenport/rofi</remote-id>
62 + </upstream>
63 </pkgmetadata>
64
65 diff --git a/x11-misc/rofi/rofi-1.7.0.ebuild b/x11-misc/rofi/rofi-1.7.0.ebuild
66 new file mode 100644
67 index 00000000000..bfa3300d765
68 --- /dev/null
69 +++ b/x11-misc/rofi/rofi-1.7.0.ebuild
70 @@ -0,0 +1,66 @@
71 +# Copyright 1999-2021 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=8
75 +
76 +inherit autotools toolchain-funcs
77 +
78 +DESCRIPTION="A window switcher, run dialog and dmenu replacement"
79 +HOMEPAGE="https://github.com/davatorium/rofi"
80 +SRC_URI="https://github.com/davatorium/rofi/releases/download/${PV}/${P}.tar.gz"
81 +
82 +LICENSE="MIT"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~arm64 ~x86"
85 +IUSE="+drun test +windowmode"
86 +RESTRICT="!test? ( test )"
87 +
88 +BDEPEND="virtual/pkgconfig"
89 +RDEPEND="
90 + dev-libs/glib:2
91 + gnome-base/librsvg:2
92 + media-libs/freetype
93 + virtual/jpeg
94 + x11-libs/cairo[X,xcb(+)]
95 + x11-libs/libXft
96 + x11-libs/libXinerama
97 + x11-libs/libxcb
98 + x11-libs/libxkbcommon[X]
99 + x11-libs/pango[X]
100 + x11-libs/startup-notification
101 + x11-libs/xcb-util
102 + x11-libs/xcb-util-wm
103 + x11-libs/xcb-util-xrm
104 +"
105 +DEPEND="
106 + ${RDEPEND}
107 + x11-base/xorg-proto
108 + test? ( >=dev-libs/check-0.11 )
109 +"
110 +
111 +src_prepare() {
112 + default
113 + eautoreconf
114 +}
115 +
116 +src_configure() {
117 + tc-export CC
118 +
119 + local myeconfargs=(
120 + $(use_enable drun)
121 + $(use_enable test check)
122 + $(use_enable windowmode)
123 + )
124 + econf "${myeconfargs[@]}"
125 +}
126 +
127 +pkg_postinst() {
128 + for v in ${REPLACING_VERSIONS}; do
129 + if ver_test "${v}" -lt 1.7.0; then
130 + elog "Rofi 1.7.0 removed the (deprecated) xresources based configuration setup."
131 + elog "If you are still using old configuration setup, please convert it to new format manually."
132 + elog "The new format configuration can be generated by 'rofi -dump-config > ~/.config/rofi/config.rasi'."
133 + elog "For more information, please see https://github.com/davatorium/rofi/releases/tag/1.7.0"
134 + fi
135 + done
136 +}