diff options
-rw-r--r-- | sys-apps/apmd/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/apmd/apmd-3.2.2_p14.ebuild | 78 |
2 files changed, 87 insertions, 2 deletions
diff --git a/sys-apps/apmd/ChangeLog b/sys-apps/apmd/ChangeLog index f0f7ec1fa0c9..c17de80e11e0 100644 --- a/sys-apps/apmd/ChangeLog +++ b/sys-apps/apmd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/apmd -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/ChangeLog,v 1.38 2007/07/22 06:22:14 dberkholz Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/ChangeLog,v 1.39 2010/07/08 11:25:40 ssuominen Exp $ + +*apmd-3.2.2_p14 (08 Jul 2010) + + 08 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + +apmd-3.2.2_p14.ebuild: + Use latest Debian patchset. Respect CFLAGS and LDFLAGS. Strip X11R6 + directories. 22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; apmd-3.0.2-r3.ebuild, apmd-3.2.0.ebuild, apmd-3.2.1_p4.ebuild, apmd-3.2.2_p5.ebuild: diff --git a/sys-apps/apmd/apmd-3.2.2_p14.ebuild b/sys-apps/apmd/apmd-3.2.2_p14.ebuild new file mode 100644 index 000000000000..139b95e88669 --- /dev/null +++ b/sys-apps/apmd/apmd-3.2.2_p14.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/apmd-3.2.2_p14.ebuild,v 1.1 2010/07/08 11:25:40 ssuominen Exp $ + +EAPI=2 +inherit eutils multilib toolchain-funcs + +MY_PV=${PV%_p*} +MY_P=${PN}_${MY_PV} +PATCHV=${PV#*_p} + +DESCRIPTION="Advanced Power Management Daemon" +HOMEPAGE="http://packages.qa.debian.org/a/apmd.html" +SRC_URI="mirror://debian/pool/main/a/apmd/${MY_P}.orig.tar.gz + mirror://debian/pool/main/a/apmd/${MY_P}-${PATCHV}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="nls X" + +RDEPEND=">=sys-apps/debianutils-1.16 + >=sys-power/powermgmt-base-1.31 + X? ( x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libSM + x11-libs/libICE + x11-libs/libXt + x11-libs/libXext )" +DEPEND="${RDEPEND} + virtual/os-headers" + +S=${WORKDIR}/${PN}-${MY_PV}.orig + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff + + if ! use X; then + sed -i \ + -e 's:\(EXES=.*\)xapm:\1:' \ + -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \ + Makefile || die + fi + + # use system headers and skip on_ac_power + rm -f on_ac_power* + + sed -i \ + -e '/on_ac_power/d' \ + -e 's:-I/usr/src/linux/include -I/usr/X11R6/include::' \ + -e 's:-L/usr/X11R6/lib::' \ + Makefile || die +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die +} + +src_install() { + dodir /usr/sbin + emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install || die + + keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d} + exeinto /etc/apm + doexe debian/apmd_proxy || die + dodoc AUTHORS {,apmsleep.}README debian/{changelog,README.Debian} + + doman *.{1,8} || die + + # note: apmd_proxy.conf is currently disabled and not used, thus + # not installed - liquidx (01 Mar 2004) + + newconfd "${FILESDIR}"/apmd.confd apmd || die + newinitd "${FILESDIR}"/apmd.rc6 apmd || die + + use nls || rm -rf "${D}"/usr/share/man/fr +} |