1 |
commit: 0ebed35897e6cc837998721cd4701192c4b3d0ad |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 17:17:59 2022 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 24 17:17:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ebed358 |
7 |
|
8 |
app-admin/conky: add 1.13.1 |
9 |
|
10 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
11 |
|
12 |
app-admin/conky/Manifest | 1 + |
13 |
app-admin/conky/conky-1.13.1.ebuild | 191 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 192 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/conky/Manifest b/app-admin/conky/Manifest |
17 |
index 952bedc81c94..eb757a6c087f 100644 |
18 |
--- a/app-admin/conky/Manifest |
19 |
+++ b/app-admin/conky/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST conky-1.12.2.tar.gz 2407428 BLAKE2B b8d1b40dc4b547679b5ab4bf0328aabaac868025433729f48baf572c536da4a527a073a6d47f36c179851aecef58535dccb956e3a695700f06bf8e6ab170ae1f SHA512 55280953da437efe36320e4c12f74d95b8406bd7d8b7d93c6582f9b346c1c80a94b71d1c27860f6274de9171865fca91e330dfc39feb80bb2f453a538bc5ce1a |
22 |
+DIST conky-1.13.1.tar.gz 2443276 BLAKE2B e51610172e830d0368e8c9a48ea056285efe48275364c4d0c973da6467ea044303d75f94cc0b963c3b423a7ec61d8eff26da30c102c557ccd5a4e8cf984db4f6 SHA512 3ee0e14f6ff2bac39404c272790055ac1106f47a00e8298da909a0febf6de0661486e8ce23f34e8c5050e364168b2efcefd0b28736cbd0bc135e1362f0dc5516 |
23 |
|
24 |
diff --git a/app-admin/conky/conky-1.13.1.ebuild b/app-admin/conky/conky-1.13.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a85625ab38f0 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/conky/conky-1.13.1.ebuild |
29 |
@@ -0,0 +1,191 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+LUA_COMPAT=( lua5-3 ) |
36 |
+ |
37 |
+inherit cmake linux-info lua-single readme.gentoo-r1 xdg |
38 |
+ |
39 |
+DESCRIPTION="An advanced, highly configurable system monitor for X" |
40 |
+HOMEPAGE="https://github.com/brndnmtthws/conky" |
41 |
+SRC_URI="https://github.com/brndnmtthws/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3 BSD LGPL-2.1 MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
46 |
+IUSE="apcupsd bundled-toluapp cmus curl doc hddtemp ical iconv imlib |
47 |
+ intel-backlight iostats ipv6 irc lua-cairo lua-imlib lua-rsvg math moc |
48 |
+ mpd mysql nano-syntax ncurses nvidia +portmon pulseaudio rss systemd |
49 |
+ thinkpad truetype vim-syntax weather-metar webserver wifi X xinerama |
50 |
+ xmms2" |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ cmus? ( media-sound/cmus ) |
54 |
+ curl? ( net-misc/curl ) |
55 |
+ ical? ( dev-libs/libical:= ) |
56 |
+ iconv? ( virtual/libiconv ) |
57 |
+ imlib? ( media-libs/imlib2[X] ) |
58 |
+ irc? ( net-libs/libircclient ) |
59 |
+ lua-cairo? ( x11-libs/cairo[X] ) |
60 |
+ lua-imlib? ( media-libs/imlib2[X] ) |
61 |
+ lua-rsvg? ( gnome-base/librsvg ) |
62 |
+ mysql? ( dev-db/mysql-connector-c ) |
63 |
+ ncurses? ( sys-libs/ncurses:= ) |
64 |
+ nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] ) |
65 |
+ pulseaudio? ( media-sound/pulseaudio ) |
66 |
+ rss? ( dev-libs/libxml2 net-misc/curl dev-libs/glib:2 ) |
67 |
+ systemd? ( sys-apps/systemd ) |
68 |
+ truetype? ( x11-libs/libXft >=media-libs/freetype-2 ) |
69 |
+ wifi? ( net-wireless/wireless-tools ) |
70 |
+ weather-metar? ( net-misc/curl ) |
71 |
+ webserver? ( net-libs/libmicrohttpd ) |
72 |
+ X? ( |
73 |
+ x11-libs/libX11 |
74 |
+ x11-libs/libXdamage |
75 |
+ x11-libs/libXfixes |
76 |
+ x11-libs/libXext |
77 |
+ ) |
78 |
+ xinerama? ( x11-libs/libXinerama ) |
79 |
+ xmms2? ( media-sound/xmms2 ) |
80 |
+ ${LUA_DEPS} |
81 |
+" |
82 |
+RDEPEND=" |
83 |
+ ${COMMON_DEPEND} |
84 |
+ apcupsd? ( sys-power/apcupsd ) |
85 |
+ hddtemp? ( app-admin/hddtemp ) |
86 |
+ moc? ( media-sound/moc ) |
87 |
+ nano-syntax? ( app-editors/nano ) |
88 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
89 |
+" |
90 |
+DEPEND=" |
91 |
+ ${COMMON_DEPEND} |
92 |
+ doc? ( app-text/docbook2X dev-libs/libxslt ) |
93 |
+" |
94 |
+ |
95 |
+REQUIRED_USE=" |
96 |
+ imlib? ( X ) |
97 |
+ lua-cairo? ( X bundled-toluapp ) |
98 |
+ lua-imlib? ( X bundled-toluapp ) |
99 |
+ lua-rsvg? ( X bundled-toluapp ) |
100 |
+ nvidia? ( X ) |
101 |
+ truetype? ( X ) |
102 |
+ xinerama? ( X ) |
103 |
+" |
104 |
+ |
105 |
+CONFIG_CHECK="~IPV6" |
106 |
+ |
107 |
+DOCS=( README.md AUTHORS ) |
108 |
+ |
109 |
+DISABLE_AUTOFORMATTING="yes" |
110 |
+DOC_CONTENTS="You can find sample configurations at ${ROOT}/usr/share/doc/${PF}. |
111 |
+To customize, copy to \${XDG_CONFIG_HOME}/conky/conky.conf |
112 |
+and edit it to your liking. |
113 |
+ |
114 |
+There are pretty html docs available at the conky homepage |
115 |
+or in ${ROOT}/usr/share/doc/${PF}/html when built with USE=doc. |
116 |
+ |
117 |
+Also see https://wiki.gentoo.org/wiki/Conky/HOWTO" |
118 |
+ |
119 |
+pkg_setup() { |
120 |
+ use ipv6 && linux-info_pkg_setup |
121 |
+ |
122 |
+ lua-single_pkg_setup |
123 |
+} |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ cmake_src_prepare |
127 |
+ |
128 |
+ xdg_environment_reset |
129 |
+ |
130 |
+ sed -i -e "s|find_program(APP_MAN man)|set(APP_MAN $(which man) CACHE FILEPATH MAN_BINARY)|" \ |
131 |
+ cmake/ConkyPlatformChecks.cmake || die |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ local mycmakeargs |
136 |
+ |
137 |
+ if use X; then |
138 |
+ mycmakeargs=( |
139 |
+ -DBUILD_ARGB=yes |
140 |
+ -DBUILD_X11=yes |
141 |
+ -DBUILD_XDAMAGE=yes |
142 |
+ -DBUILD_XDBE=yes |
143 |
+ -DBUILD_XSHAPE=yes |
144 |
+ -DOWN_WINDOW=yes |
145 |
+ ) |
146 |
+ else |
147 |
+ mycmakeargs=( |
148 |
+ -DBUILD_X11=no |
149 |
+ ) |
150 |
+ fi |
151 |
+ |
152 |
+ mycmakeargs+=( |
153 |
+ -DBUILD_APCUPSD=$(usex apcupsd) |
154 |
+ -DBUILD_AUDACIOUS=no |
155 |
+ -DBUILD_BUILTIN_CONFIG=yes |
156 |
+ -DBUILD_CMUS=$(usex cmus) |
157 |
+ -DBUILD_CURL=$(usex curl) |
158 |
+ -DBUILD_DOCS=$(usex doc) |
159 |
+ -DBUILD_HDDTEMP=$(usex hddtemp) |
160 |
+ -DBUILD_HTTP=$(usex webserver) |
161 |
+ -DBUILD_I18N=yes |
162 |
+ -DBUILD_IBM=$(usex thinkpad) |
163 |
+ -DBUILD_ICAL=$(usex ical) |
164 |
+ -DBUILD_ICONV=$(usex iconv) |
165 |
+ -DBUILD_IMLIB2=$(usex imlib) |
166 |
+ -DBUILD_INTEL_BACKLIGHT=$(usex intel-backlight) |
167 |
+ -DBUILD_IOSTATS=$(usex iostats) |
168 |
+ -DBUILD_IPV6=$(usex ipv6) |
169 |
+ -DBUILD_IRC=$(usex irc) |
170 |
+ -DBUILD_JOURNAL=$(usex systemd) |
171 |
+ -DBUILD_LUA_CAIRO=$(usex lua-cairo) |
172 |
+ -DBUILD_LUA_IMLIB2=$(usex lua-imlib) |
173 |
+ -DBUILD_LUA_RSVG=$(usex lua-rsvg) |
174 |
+ -DBUILD_MATH=$(usex math) |
175 |
+ -DBUILD_MOC=$(usex moc) |
176 |
+ -DBUILD_MPD=$(usex mpd) |
177 |
+ -DBUILD_MYSQL=$(usex mysql) |
178 |
+ -DBUILD_NCURSES=$(usex ncurses) |
179 |
+ -DBUILD_NVIDIA=$(usex nvidia) |
180 |
+ -DBUILD_OLD_CONFIG=yes |
181 |
+ -DBUILD_PORT_MONITORS=$(usex portmon) |
182 |
+ -DBUILD_PULSEAUDIO=$(usex pulseaudio) |
183 |
+ -DBUILD_RSS=$(usex rss) |
184 |
+ -DBUILD_WEATHER_METAR=$(usex weather-metar) |
185 |
+ -DBUILD_WLAN=$(usex wifi) |
186 |
+ -DBUILD_XFT=$(usex truetype) |
187 |
+ -DBUILD_XINERAMA=$(usex xinerama) |
188 |
+ -DBUILD_XMMS2=$(usex xmms2) |
189 |
+ -DDOC_PATH=/usr/share/doc/${PF} |
190 |
+ -DMAINTAINER_MODE=no |
191 |
+ -DRELEASE=yes |
192 |
+ ) |
193 |
+ |
194 |
+ cmake_src_configure |
195 |
+} |
196 |
+ |
197 |
+src_install() { |
198 |
+ cmake_src_install |
199 |
+ |
200 |
+ if use vim-syntax; then |
201 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
202 |
+ doins "${S}"/extras/vim/ftdetect/conkyrc.vim |
203 |
+ |
204 |
+ insinto /usr/share/vim/vimfiles/syntax |
205 |
+ doins "${S}"/extras/vim/syntax/conkyrc.vim |
206 |
+ fi |
207 |
+ |
208 |
+ if use nano-syntax; then |
209 |
+ insinto /usr/share/nano/ |
210 |
+ doins "${S}"/extras/nano/conky.nanorc |
211 |
+ fi |
212 |
+ |
213 |
+ readme.gentoo_create_doc |
214 |
+} |
215 |
+ |
216 |
+pkg_postinst() { |
217 |
+ readme.gentoo_print_elog |
218 |
+ |
219 |
+ xdg_pkg_postinst |
220 |
+} |