diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-07-28 17:14:17 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-07-28 17:14:17 +0000 |
commit | 9271008521e362618299b13d69e8a7d8386c54bf (patch) | |
tree | 406aba510a4b0a764967abd21b3b4c848e0e6e74 /media-video/nvclock | |
parent | Typo (diff) | |
download | gentoo-2-9271008521e362618299b13d69e8a7d8386c54bf.tar.gz gentoo-2-9271008521e362618299b13d69e8a7d8386c54bf.tar.bz2 gentoo-2-9271008521e362618299b13d69e8a7d8386c54bf.zip |
Add a live ebuild (based on the one by Peter Fern attached to bug #204428).
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'media-video/nvclock')
-rw-r--r-- | media-video/nvclock/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/nvclock/nvclock-9999.ebuild | 59 |
2 files changed, 65 insertions, 1 deletions
diff --git a/media-video/nvclock/ChangeLog b/media-video/nvclock/ChangeLog index 79139a751d9e..61ead691d90a 100644 --- a/media-video/nvclock/ChangeLog +++ b/media-video/nvclock/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/nvclock # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.34 2009/07/28 15:20:52 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.35 2009/07/28 17:14:17 jer Exp $ + +*nvclock-9999 (28 Jul 2009) + + 28 Jul 2009; Jeroen Roovers <jer@gentoo.org> +nvclock-9999.ebuild: + Add a live ebuild (based on the one by Peter Fern attached to bug #204428). 28 Jul 2009; Jeroen Roovers <jer@gentoo.org> metadata.xml: Pick up maintainership. diff --git a/media-video/nvclock/nvclock-9999.ebuild b/media-video/nvclock/nvclock-9999.ebuild new file mode 100644 index 000000000000..d1ca3dc8f39f --- /dev/null +++ b/media-video/nvclock/nvclock-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-9999.ebuild,v 1.1 2009/07/28 17:14:17 jer Exp $ + +EAPI="2" + +inherit eutils autotools cvs + +ECVS_SERVER="nvclock.cvs.sourceforge.net:/cvsroot/nvclock" +ECVS_MODULE="nvclock" +ECVS_USER="anonymous" +ECVS_PASS="" + +DESCRIPTION="NVIDIA Overclocking Utility" +HOMEPAGE="http://www.linuxhardware.org/nvclock/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gtk qt3" + +RDEPEND=" + gtk? ( x11-libs/gtk+:2 ) + qt3? ( x11-libs/qt:3 ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + eautoreconf +} + +src_configure() { + # Needed to ensure it compiles against Qt3 rather than Qt4 + export QTDIR=/usr/qt/3 + export MOC=${QTDIR}/bin/moc + + econf $(use_enable qt3 qt) $(use_enable gtk) || die "econf failed" +} + +src_compile() { + # The build fails with -j[N>1] + emake -j1 || die "emake failed" +} + +src_install() { + dodir /usr/bin + einstall || die "einstall failed" + dodoc AUTHORS README + + newinitd "${FILESDIR}"/nvclock_initd nvclock + newconfd "${FILESDIR}"/nvclock_confd nvclock +} + +pkg_postinst() { + elog "To enable card overclocking at startup, edit your /etc/conf.d/nvclock" + elog "accordingly and then run: rc-update add nvclock default" +} |