summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2006-02-05 16:27:06 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2006-02-05 16:27:06 +0000
commita19254d2bd89b10deb4db6a8d5c1eb65a26ae119 (patch)
treec74e72c88f58dee7da1e18401537d0e2eb1d322c /app-admin/longrun/longrun-0.9-r3.ebuild
parentVersion bumped. (diff)
downloadgentoo-2-a19254d2bd89b10deb4db6a8d5c1eb65a26ae119.tar.gz
gentoo-2-a19254d2bd89b10deb4db6a8d5c1eb65a26ae119.tar.bz2
gentoo-2-a19254d2bd89b10deb4db6a8d5c1eb65a26ae119.zip
Updated to the latest Debian patch set, now installs Swedish and Japanese translations, added a patch that uses user set CFLAGS to compile longrun and removed old revision.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'app-admin/longrun/longrun-0.9-r3.ebuild')
-rw-r--r--app-admin/longrun/longrun-0.9-r3.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/app-admin/longrun/longrun-0.9-r3.ebuild b/app-admin/longrun/longrun-0.9-r3.ebuild
new file mode 100644
index 000000000000..9686143af071
--- /dev/null
+++ b/app-admin/longrun/longrun-0.9-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/longrun/longrun-0.9-r3.ebuild,v 1.1 2006/02/05 16:27:06 betelgeuse Exp $
+
+inherit eutils linux-info
+
+DESCRIPTION="A utility to control Transmeta's Crusoe and Efficeon processors"
+HOMEPAGE="http://freshmeat.net/projects/longrun/"
+
+DEBIAN_PATCH_VERSION="19"
+DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PATCH_VERSION}.diff.gz"
+SRC_URI="mirror://kernel/linux/utils/cpu/crusoe/${P}.tar.bz2
+ mirror://debian/pool/main/l/${PN}/${DEBIAN_PATCH}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-ppc ~x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}
+
+CONFIG_CHECK="X86_MSR X86_CPUID"
+
+ERROR_X86_MSR="
+Longrun needs a MSR device to function. Please select
+MSR under Processor type and features. It can be build
+directly into the kernel or as a module.
+"
+
+ERROR_X86_CPUID="
+Longrun needs a CPUID device to function. Please select
+CPUID under Processor type and features. It can be
+build directly into the kernel or as a module.
+"
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+ cd ${S}
+ epatch "${DISTDIR}/${DEBIAN_PATCH}"
+ epatch "${FILESDIR}/${PV}-makefile_cflags.patch"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc MAKEDEV-cpuid-msr
+}
+
+pkg_postinst() {
+ if linux_chkconfig_module X86_MSR; then
+ einfo "You have compiled MSR as a module."
+ einfo "You need to load it before using Longrun."
+ einfo "The module is called msr."
+ einfo
+ fi
+
+ if linux_chkconfig_module X86_CPUID; then
+ einfo "You have compiled CPUID as a module."
+ einfo "You need to load it before using Longrun."
+ einfo "The module is called cpuid."
+ fi
+}