x11-plugins/wmpower: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Mon, 23 Jul 2018 18:38:32 +0000 (20:38 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 2 Aug 2018 20:17:56 +0000 (22:17 +0200)
x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild b/x11-plugins/wmpower/wmpower-0.4.3-r1.ebuild
new file mode 100644 (file)
index 0000000..6a4a750
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="a dockapp to get/set power management status for laptops (APM, ACPI
+and CPUfreq)"
+HOMEPAGE="http://wmpower.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wmpower/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+DOCS=( AUTHORS BUGS ChangeLog LEGGIMI NEWS README README.compal THANKS TODO )
+
+src_compile() {
+       # override wmpower self-calculated cflags
+       econf MY_CFLAGS="${CFLAGS}"
+       emake prefix="/usr/"
+}