Search:  
Gentoo Wiki

Sony_Vaio_VGN-S580/kvaio.cpp_hack


Create local copy of kvaio.cpp in /software/kmilo:

Code: ls -l /software/kmilo
-rw-rw-rw-  1 root        root  17073 May 13 23:38 kvaio.cpp

Enable overlays in make.conf

Code:
# cat /etc/make.conf | grep PORTDIR_OVERLAY
PORTDIR_OVERLAY="/usr/local/portage"

Configure portage overlay for kmilo:

Code:
mkdir -p /usr/local/portage
mkdir -p /usr/local/portage/kde-base/kmilo
cp /usr/portage/kde-base/kmilo/* /usr/local/portage/kde-base/kmilo/*

Modify kmilo-3.5.2.ebuild to copy over new kvaio.cpp during emerge:

File: /usr/local/portage/kde-base/kmilo/kmilo-3.5.2.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kmilo/kmilo-3.5.2.ebuild,v 1.2 2006/03/28 00:16:40 agriffis Exp $

KMNAME=kdeutils
MAXKDEVER=$PV
KM_DEPRANGE="$PV $MAXKDEVER"
inherit kde-meta eutils

DESCRIPTION="kmilo - a kded module that can be extended to support various types of hardware
input devices that exist, such as those on keyboards."
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="pbbuttonsd"
DEPEND="pbbuttonsd? ( app-laptop/pbbuttonsd )"
RDEPEND="${DEPEND}"

src_compile() {

    echo *** +++++++++++++++ COPY kvaio.cpp +++++++++++++++++ ***

    cp -f /software/kmilo/kvaio.cpp /var/tmp/portage/kmilo-3.5.2/work/kmilo-3.5.2/kmilo/kmilo_kvaio/kvaio.cpp

    #read
    
	local myconf="$(use_with pbbuttonsd powerbook)"

	kde-meta_src_compile
}

Update digest on kmilo-3.5.2.ebuild

Code:
ebuild /usr/local/portage/kde-base/kmilo/kmilo-3.5.2.ebuild digest

Build kmilo, this will rebuild kde libs dependent on kvaio

Code:
emerge kmilo

Build nvclock 0.8 beta

Code:
emerge nvclock

Restart kde

Eventually it is necessary to create a link from the nvclock binary if it doesn't exist in /usr/local/bin

Code:
ln /usr/bin/nvclock /usr/local/bin/nvclock


Done.

REQUEST: if you've gone this far, please consider creating & sharing the ebuild instead if the above. Thank you.

Retrieved from "http://www.gentoo-wiki.info/Sony_Vaio_VGN-S580/kvaio.cpp_hack"

Last modified: Thu, 14 Aug 2008 07:01:00 +0000 Hits: 2,158