forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.2.27
- Loading branch information
Jeroen Roovers
committed
Feb 10, 2016
1 parent
f286ea9
commit b66d8df
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 1999-2014 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="A lightweight and fast battery icon that sits in your system tray" | ||
HOMEPAGE="https://github.com/ColinJones/cbatticon" | ||
SRC_URI="https://github.com/ColinJones/cbatticon/archive/${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="libnotify" | ||
|
||
RDEPEND=" | ||
dev-libs/glib:2 | ||
x11-libs/gtk+:3 | ||
libnotify? ( x11-libs/libnotify ) | ||
" | ||
DEPEND=" | ||
${RDEPEND} | ||
virtual/pkgconfig | ||
" | ||
|
||
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}" V=1 VERSION="${PF}" install | ||
} |