wmacpi-1.34.ebuild 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils
  4. DESCRIPTION="WMaker DockApp: ACPI status monitor for laptops"
  5. HOMEPAGE="http://www.ne.jp/asahi/linux/timecop/"
  6. SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz"
  7. LICENSE="GPL-2"
  8. SLOT="0"
  9. KEYWORDS="amd64 ppc -sparc x86"
  10. IUSE="acpi apm"
  11. DEPEND="<x11-libs/libdockapp-0.7"
  12. RDEPEND="${DEPEND}"
  13. src_unpack() {
  14. unpack ${A}
  15. cd "${S}"
  16. use apm && use acpi && eerror "APM and ACPI are in USE ... defaulting to ACPI"
  17. use apm || use acpi || eerror "Neither APM or ACPI are in USE ... defaulting to ACPI"
  18. if use acpi || ! use apm ; then
  19. epatch "${FILESDIR}"/${PV}-acpi.patch
  20. else
  21. epatch "${FILESDIR}"/${PV}-apm.patch
  22. fi
  23. }
  24. src_compile() {
  25. emake OPT="${CFLAGS}" || die "emake failed."
  26. }
  27. src_install() {
  28. dobin wmacpi || die "dobin failed."
  29. dodoc AUTHORS ChangeLog README
  30. }