|
new file 100644
|
|
|
# Copyright 1999-2005 Gentoo Foundation
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
# $Header: $
|
|
|
|
|
|
inherit eutils
|
|
|
|
|
|
MY_P="${PN}-${PV}"
|
|
|
S=${WORKDIR}/${PN}
|
|
|
DESCRIPTION="Smartdimmer"
|
|
|
HOMEPAGE="http://www.acc.umu.se/~erikw/program/"
|
|
|
SRC_URI="http://www.acc.umu.se/~erikw/program/${MY_P}.tar.bz2"
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
SLOT="0"
|
|
|
KEYWORDS="x86"
|
|
|
|
|
|
|
|
|
RDEPEND="virtual/libc"
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
sys-devel/autoconf"
|
|
|
|
|
|
src_unpack() {
|
|
|
unpack ${A}
|
|
|
cd ${S}
|
|
|
}
|
|
|
|
|
|
src_compile() {
|
|
|
./configure --prefix=/usr || die "Configure failed"
|
|
|
make all || die "Make failed"
|
|
|
}
|
|
|
|
|
|
src_install() {
|
|
|
dodir /usr/bin
|
|
|
einstall || die
|
|
|
dodoc README
|
|
|
}
|
|
|
|
|
|
pkg_postinst() {
|
|
|
einfo "To enable the smartdimmer at boot edit /etc/conf.d/local.start"
|
|
|
einfo "See http://forums.gentoo.org/viewtopic-t-361872.html for news"
|
|
|
}
|
|
|
|