x11-plugins/wmtime: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Tue, 24 Jul 2018 18:09:52 +0000 (20:09 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 2 Aug 2018 20:21:31 +0000 (22:21 +0200)
x11-plugins/wmtime/wmtime-1.4-r1.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/wmtime/wmtime-1.4-r1.ebuild b/x11-plugins/wmtime/wmtime-1.4-r1.ebuild
new file mode 100644 (file)
index 0000000..4ea44b1
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="applet which displays the date and time in a dockable tile"
+HOMEPAGE="https://www.dockapps.net/wmtime"
+SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=x11-libs/libdockapp-0.7:=
+       x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXau
+       x11-libs/libXdmcp
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+DOCS=( BUGS CHANGES HINTS README TODO )
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install () {
+       emake DESTDIR="${D}" PREFIX=/usr install
+       einstalldocs
+}