Bump to EAPI=3, add prefix keywords
authorJonathan Callen <jcallen@gentoo.org>
Wed, 31 Mar 2010 21:35:31 +0000 (21:35 +0000)
committerJonathan Callen <jcallen@gentoo.org>
Wed, 31 Mar 2010 21:35:31 +0000 (21:35 +0000)
Package-Manager: portage--svn/cvs/Linux i686

sys-power/cpufrequtils/ChangeLog
sys-power/cpufrequtils/cpufrequtils-007.ebuild
sys-power/powertop/ChangeLog
sys-power/powertop/powertop-1.11.ebuild

index e00b29ba4e15575275ceef7a74824c84aa32be91..6908e8298259153a74012cc55b72de6904132245 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for sys-power/cpufrequtils
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.49 2010/01/16 23:57:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.50 2010/03/31 21:32:11 abcd Exp $
+
+  31 Mar 2010; Jonathan Callen <abcd@gentoo.org> cpufrequtils-007.ebuild:
+  Bump to EAPI=3, add prefix keywords
 
 *cpufrequtils-007 (16 Jan 2010)
 
index 19a3bf644d85b4fa1ff33c46f187086ede81b1a7..84bbc78887e95a52dbe3788d7c88359bba8762e4 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-007.ebuild,v 1.1 2010/01/16 23:57:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-007.ebuild,v 1.2 2010/03/31 21:32:11 abcd Exp $
+
+EAPI=3
 
 inherit eutils toolchain-funcs multilib
 
@@ -10,24 +12,24 @@ SRC_URI="mirror://kernel/linux/utils/kernel/cpufreq/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
 IUSE="debug nls"
 
 DEPEND="sys-fs/sysfsutils"
 
 ft() { use $1 && echo true || echo false ; }
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
        epatch "${FILESDIR}"/${PN}-007-build.patch
        epatch "${FILESDIR}"/${PN}-007-nls.patch #205576 #292246
+}
 
+src_configure() {
        export DEBUG=$(ft debug) V=true NLS=$(ft nls)
        unset bindir sbindir includedir localedir confdir
-       export mandir="/usr/share/man"
-       export libdir="/usr/$(get_libdir)"
-       export docdir="/usr/share/doc/${PF}"
+       export mandir="${EPREFIX}/usr/share/man"
+       export libdir="${EPREFIX}/usr/$(get_libdir)"
+       export docdir="${EPREFIX}/usr/share/doc/${PF}"
 }
 
 src_compile() {
@@ -37,6 +39,8 @@ src_compile() {
                AR="$(tc-getAR)" \
                STRIP=: \
                RANLIB="$(tc-getRANLIB)" \
+               LIBTOOL="${EPREFIX}"/usr/bin/libtool \
+               INSTALL="${EPREFIX}"/usr/bin/install \
                || die
 }
 
index ea28f657a9a476260e7218bfed8c49b105700c4c..5e6cae1a1bd968d57fec743939bc31b0e41ee0bd 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for sys-power/powertop
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.30 2010/03/08 20:57:44 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.31 2010/03/31 21:35:31 abcd Exp $
+
+  31 Mar 2010; Jonathan Callen <abcd@gentoo.org> powertop-1.11.ebuild:
+  Bump to EAPI=3, add prefix keywords
 
   08 Mar 2010; Markus Meier <maekke@gentoo.org> powertop-1.11.ebuild:
   arm stable, bug #302349
index 2d389f8711d4d92e48296e58b026f94c6c3d8c79..606457c4113aa23bf523e4026b6aab32bacfb89b 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-1.11.ebuild,v 1.7 2010/03/08 20:57:44 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-1.11.ebuild,v 1.8 2010/03/31 21:35:31 abcd Exp $
+
+EAPI=3
 
 inherit toolchain-funcs eutils
 
@@ -10,29 +12,26 @@ SRC_URI="http://www.lesswatts.org/projects/powertop/download/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ppc ~sparc x86"
+KEYWORDS="amd64 arm ppc ~sparc x86 ~amd64-linux ~x86-linux"
 IUSE="unicode"
 
-DEPEND="sys-libs/ncurses
+DEPEND="sys-libs/ncurses[unicode?]
        sys-devel/gettext"
 RDEPEND="${DEPEND}"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
        sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile
        use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile
 }
 
-src_compile() {
+src_configure() {
        tc-export CC
-       emake || die
 }
 
 src_install() {
-       emake install DESTDIR="${D}" || die
+       emake install DESTDIR="${ED}" || die
        dodoc Changelog README
-       gunzip "${D}"/usr/share/man/man1/powertop.1.gz
+       gunzip "${ED}"/usr/share/man/man1/powertop.1.gz
 }
 
 pkg_postinst() {