commit:     172d17f6b13f9aebc22b169691251c98d544746c
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 10:43:14 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 12:07:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=172d17f6

x11-misc/cbatticon: add 1.6.12

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 x11-misc/cbatticon/Manifest                |  1 +
 x11-misc/cbatticon/cbatticon-1.6.12.ebuild | 49 ++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/x11-misc/cbatticon/Manifest b/x11-misc/cbatticon/Manifest
index 998ace344358..4b1b3ca4edf1 100644
--- a/x11-misc/cbatticon/Manifest
+++ b/x11-misc/cbatticon/Manifest
@@ -1 +1,2 @@
 DIST cbatticon-1.6.10.tar.gz 32402 BLAKE2B 
91ba6eb581b4cd0b31ae5a49b12970fc7d02d1ba790bffc80886c05ad2b0573ee1aca479d90591498dd6d816bb7e24bee6918e5a8fa8823cf376a3a3da598993
 SHA512 
cf499eb7ac1d775918a7af01700a9e8eeefd9e31a44fd63c9f38bff83945cea9fb21dde960052768f8d0a0c004caeea115f2d80cb3838789859d43e432eae055
+DIST cbatticon-1.6.12.tar.gz 34670 BLAKE2B 
cfae33c7e5393626a4e17d649bb7e242d35cfe7f79fda1b85e058a93a6b1c6da61ed9ff4463a44b5d6efa17d78f960021671d6bde1581af3e3eae70f369b6d52
 SHA512 
4946bf8a0514c0d595dd335a1388fd0e2c1cbb4d4e7fa774ab58bca4914d635d23cf32d7299dc9cad0f4dc7a37d88b875d9432234bfea0251f699d7776e5b019

diff --git a/x11-misc/cbatticon/cbatticon-1.6.12.ebuild 
b/x11-misc/cbatticon/cbatticon-1.6.12.ebuild
new file mode 100644
index 000000000000..aec71acea6c9
--- /dev/null
+++ b/x11-misc/cbatticon/cbatticon-1.6.12.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit strip-linguas toolchain-funcs
+
+DESCRIPTION="A lightweight and fast battery icon that sits in your system tray"
+HOMEPAGE="https://github.com/valr/cbatticon";
+SRC_URI="https://github.com/valr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+IUSE="libnotify"
+
+RDEPEND="dev-libs/glib:2
+       x11-libs/gtk+:3
+       libnotify? ( x11-libs/libnotify )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( Changelog README )
+
+src_prepare() {
+       default
+
+       strip-linguas -i .
+}
+
+src_compile() {
+       tc-export CC
+       emake \
+               $(usex libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \
+               V=1 \
+               VERSION="${PF}" \
+               WITH_GTK3=1
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               DOCDIR="/usr/share/doc/${PF}" \
+               LANGUAGES="${LINGUAS}" \
+               V=1 VERSION="${PF}" \
+               install
+
+       einstalldocs
+}

Reply via email to