summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-08-17 23:37:23 +0000
committerJeroen Roovers <jer@gentoo.org>2010-08-17 23:37:23 +0000
commit34193289b927dc920e31392d70fe21a0c72e360d (patch)
treedec4934dc516f82662ba492e11ff088f245db1d5 /media-video
parentMask www-client/chromium dev channel release. (diff)
downloadgentoo-2-34193289b927dc920e31392d70fe21a0c72e360d.tar.gz
gentoo-2-34193289b927dc920e31392d70fe21a0c72e360d.tar.bz2
gentoo-2-34193289b927dc920e31392d70fe21a0c72e360d.zip
Respect LDFLAGS, fix --as-needed, respect CC and CFLAGS, basically what the patches for 0.8_beta4-r4 already do. Describe USE=gtk better than the global description.
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/nvclock/ChangeLog8
-rw-r--r--media-video/nvclock/metadata.xml6
-rw-r--r--media-video/nvclock/nvclock-9999.ebuild14
3 files changed, 22 insertions, 6 deletions
diff --git a/media-video/nvclock/ChangeLog b/media-video/nvclock/ChangeLog
index d2dcd88468a6..5132c6b7eec1 100644
--- a/media-video/nvclock/ChangeLog
+++ b/media-video/nvclock/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/nvclock
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.43 2010/01/03 15:57:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.44 2010/08/17 23:37:23 jer Exp $
+
+ 17 Aug 2010; Jeroen Roovers <jer@gentoo.org> nvclock-9999.ebuild,
+ metadata.xml:
+ Respect LDFLAGS, fix --as-needed, respect CC and CFLAGS, basically what
+ the patches for 0.8_beta4-r4 already do. Describe USE=gtk better than the
+ global description.
03 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
nvclock-0.8_beta4-r4.ebuild, nvclock-9999.ebuild:
diff --git a/media-video/nvclock/metadata.xml b/media-video/nvclock/metadata.xml
index a12514caea4b..c9589d3d7648 100644
--- a/media-video/nvclock/metadata.xml
+++ b/media-video/nvclock/metadata.xml
@@ -6,7 +6,7 @@
<email>jer@gentoo.org</email>
<name>Jeroen Roovers</name>
</maintainer>
- <longdescription lang="en">
- A utility for overclocking NVidia based video cards.
- </longdescription>
+ <use>
+ <flag name="gtk">Install the GTK+ based graphical interface</flag>
+ </use>
</pkgmetadata>
diff --git a/media-video/nvclock/nvclock-9999.ebuild b/media-video/nvclock/nvclock-9999.ebuild
index 8ec2df79259b..1587908239f6 100644
--- a/media-video/nvclock/nvclock-9999.ebuild
+++ b/media-video/nvclock/nvclock-9999.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2010 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.2 2010/01/03 15:57:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-9999.ebuild,v 1.3 2010/08/17 23:37:23 jer Exp $
EAPI="2"
-inherit eutils autotools cvs
+inherit autotools cvs eutils toolchain-funcs
ECVS_SERVER="nvclock.cvs.sourceforge.net:/cvsroot/nvclock"
ECVS_MODULE="nvclock"
@@ -28,9 +28,19 @@ S="${WORKDIR}/${PN}"
src_prepare() {
eautoreconf
+ sed -i \
+ -e 's|^CC=|CC?=|g' \
+ -e 's|^CFLAGS=|CFLAGS+=|g' \
+ -e '/-o .* /s|-o |$(LDFLAGS) -o |g' \
+ $( find . -name Makefile.in ) \
+ || die "Fixing compiler flags"
+ sed -i src/Makefile.in \
+ -e '/LIBS=@X11_LIBS@/{s|@X11_LIBS@||g;s|-lnvcontrol|& @X11_LIBS@|g}' \
+ || die "Fixing Makefile.in"
}
src_configure() {
+ tc-export CC
econf --disable-qt $(use_enable gtk) || die "econf failed"
}