Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: x11-misc/gammy/
Date: Mon, 05 Oct 2020 23:11:12
Message-Id: 1601939397.a9cc9c2452d72e088ce01a56b71957f304a7c6eb.xgqt@gentoo
1 commit: a9cc9c2452d72e088ce01a56b71957f304a7c6eb
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Mon Oct 5 23:09:49 2020 +0000
4 Commit: Maciej Barć <xgqt <AT> protonmail <DOT> com>
5 CommitDate: Mon Oct 5 23:09:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9cc9c24
7
8 x11-misc/gammy: new package; add version 0.9.58a and 9999 (live)
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 x11-misc/gammy/Manifest | 1 +
14 x11-misc/gammy/gammy-0.9.58a.ebuild | 63 +++++++++++++++++++++++++++++++++++++
15 x11-misc/gammy/gammy-9999.ebuild | 63 +++++++++++++++++++++++++++++++++++++
16 x11-misc/gammy/metadata.xml | 16 ++++++++++
17 4 files changed, 143 insertions(+)
18
19 diff --git a/x11-misc/gammy/Manifest b/x11-misc/gammy/Manifest
20 new file mode 100644
21 index 00000000..f0d51f1b
22 --- /dev/null
23 +++ b/x11-misc/gammy/Manifest
24 @@ -0,0 +1 @@
25 +DIST gammy-0.9.58a.tar.gz 208411 BLAKE2B 1681f5bbe49d8645a5f55be338c82fe6728bd2b643d5cff1343a3c3bc00ba06c7a903a1c4c6d8ca21f1e2e2991ecec79c392f17aeacb75f1b17f0994cc05b1f6 SHA512 fced7b742e15a70933146901dc07c8375bd7fffc6e000e8fa323029366e09d090c9c9c3e5d783fc5ad923259abf798649652af40e1a9bc83f6c60cbb81ee53a8
26
27 diff --git a/x11-misc/gammy/gammy-0.9.58a.ebuild b/x11-misc/gammy/gammy-0.9.58a.ebuild
28 new file mode 100644
29 index 00000000..9e6fa88b
30 --- /dev/null
31 +++ b/x11-misc/gammy/gammy-0.9.58a.ebuild
32 @@ -0,0 +1,63 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit desktop eutils qmake-utils xdg
39 +
40 +DESCRIPTION="Adaptive screen brightness/temperature"
41 +HOMEPAGE="https://getgammy.com/"
42 +
43 +if [[ "${PV}" == *9999* ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/Fushko/${PN}.git"
46 + KEYWORDS=""
47 +else
48 + SRC_URI="https://github.com/Fushko/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~amd64"
50 +fi
51 +
52 +LICENSE="GPL-3"
53 +SLOT="0"
54 +IUSE=""
55 +
56 +RDEPEND="
57 + dev-qt/qtcore:5
58 + x11-libs/libXxf86vm
59 +"
60 +DEPEND="
61 + ${RDEPEND}
62 + media-gfx/imagemagick
63 +"
64 +
65 +src_configure() {
66 + eqmake5 PREFIX="${D}/usr"
67 +}
68 +
69 +src_install() {
70 + default
71 +
72 + local sizes="
73 + 128
74 + 16
75 + 32
76 + 64
77 + "
78 + cd ./icons || die
79 + for size in ${sizes}; do
80 + convert "${size}x${size}ball.ico" "${size}x${size}ball.png" || die
81 + newicon -s "${size}" "${size}x${size}ball.png" "${PN}.png"
82 + done
83 +
84 + make_desktop_entry "${PN}" "${PN^}" "${PN}" "Graphics;Settings"
85 +}
86 +
87 +pkg_postinst() {
88 + xdg_desktop_database_update
89 + xdg_icon_cache_update
90 +}
91 +
92 +pkg_postrm() {
93 + xdg_desktop_database_update
94 + xdg_icon_cache_update
95 +}
96
97 diff --git a/x11-misc/gammy/gammy-9999.ebuild b/x11-misc/gammy/gammy-9999.ebuild
98 new file mode 100644
99 index 00000000..9e6fa88b
100 --- /dev/null
101 +++ b/x11-misc/gammy/gammy-9999.ebuild
102 @@ -0,0 +1,63 @@
103 +# Copyright 1999-2020 Gentoo Authors
104 +# Distributed under the terms of the GNU General Public License v2
105 +
106 +EAPI=7
107 +
108 +inherit desktop eutils qmake-utils xdg
109 +
110 +DESCRIPTION="Adaptive screen brightness/temperature"
111 +HOMEPAGE="https://getgammy.com/"
112 +
113 +if [[ "${PV}" == *9999* ]]; then
114 + inherit git-r3
115 + EGIT_REPO_URI="https://github.com/Fushko/${PN}.git"
116 + KEYWORDS=""
117 +else
118 + SRC_URI="https://github.com/Fushko/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
119 + KEYWORDS="~amd64"
120 +fi
121 +
122 +LICENSE="GPL-3"
123 +SLOT="0"
124 +IUSE=""
125 +
126 +RDEPEND="
127 + dev-qt/qtcore:5
128 + x11-libs/libXxf86vm
129 +"
130 +DEPEND="
131 + ${RDEPEND}
132 + media-gfx/imagemagick
133 +"
134 +
135 +src_configure() {
136 + eqmake5 PREFIX="${D}/usr"
137 +}
138 +
139 +src_install() {
140 + default
141 +
142 + local sizes="
143 + 128
144 + 16
145 + 32
146 + 64
147 + "
148 + cd ./icons || die
149 + for size in ${sizes}; do
150 + convert "${size}x${size}ball.ico" "${size}x${size}ball.png" || die
151 + newicon -s "${size}" "${size}x${size}ball.png" "${PN}.png"
152 + done
153 +
154 + make_desktop_entry "${PN}" "${PN^}" "${PN}" "Graphics;Settings"
155 +}
156 +
157 +pkg_postinst() {
158 + xdg_desktop_database_update
159 + xdg_icon_cache_update
160 +}
161 +
162 +pkg_postrm() {
163 + xdg_desktop_database_update
164 + xdg_icon_cache_update
165 +}
166
167 diff --git a/x11-misc/gammy/metadata.xml b/x11-misc/gammy/metadata.xml
168 new file mode 100644
169 index 00000000..a68db4e7
170 --- /dev/null
171 +++ b/x11-misc/gammy/metadata.xml
172 @@ -0,0 +1,16 @@
173 +<?xml version="1.0" encoding="UTF-8"?>
174 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
175 +<pkgmetadata>
176 + <maintainer type="person">
177 + <email>xgqt@××××××××××.com</email>
178 + <name>Maciej Barć</name>
179 + </maintainer>
180 + <upstream>
181 + <remote-id type="github">Fushko/gammy</remote-id>
182 + </upstream>
183 + <longdescription>
184 + Gammy is a GUI tool for adjusting pixel brightness/temperature automatically or manually.
185 + It can dim the screen if its content is too bright, or brighten it otherwise. This can help your eyes adjust when switching between dark and light windows, especially at night or in suboptimal lighting conditions.
186 + Screenshots available on its website.
187 + </longdescription>
188 +</pkgmetadata>