1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils multilib toolchain-funcs
11 DESCRIPTION="Advanced Power Management Daemon"
12 HOMEPAGE="http://packages.qa.debian.org/a/apmd.html"
13 SRC_URI="mirror://debian/pool/main/a/apmd/${MY_P}.orig.tar.gz
14 mirror://debian/pool/main/a/apmd/${MY_P}-${PATCHV}.diff.gz"
18 KEYWORDS="amd64 arm ppc ppc64 x86"
21 RDEPEND=">=sys-apps/debianutils-1.16
22 >=sys-power/powermgmt-base-1.31
34 S=${WORKDIR}/${PN}-${MY_PV}.orig
37 epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff
41 -e 's:\(EXES=.*\)xapm:\1:' \
42 -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \
46 # use system headers and skip on_ac_power
51 -e 's:-I/usr/src/linux/include -I/usr/X11R6/include::' \
52 -e 's:-L/usr/X11R6/lib::' \
57 emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
62 emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install
64 keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d}
66 doexe debian/apmd_proxy
67 dodoc AUTHORS {,apmsleep.}README debian/{changelog,README.Debian}
71 # note: apmd_proxy.conf is currently disabled and not used, thus
72 # not installed - liquidx (01 Mar 2004)
74 newconfd "${FILESDIR}"/apmd.confd apmd
75 newinitd "${FILESDIR}"/apmd.rc6 apmd
77 use nls || rm -rf "${D}"/usr/share/man/fr