/[gentoo-x86]/media-video/nvidia-settings/nvidia-settings-302.11.ebuild
Gentoo

Contents of /media-video/nvidia-settings/nvidia-settings-302.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Apr 20 20:43:55 2013 UTC (16 months, 1 week ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old 2xx series ebuilds. Version bumps.

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)

1 idl0r 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 idl0r 1.2 # $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-302.11.ebuild,v 1.1 2012/06/17 20:21:28 idl0r Exp $
4 idl0r 1.1
5     EAPI=4
6    
7     inherit eutils multilib toolchain-funcs
8    
9     DESCRIPTION="NVIDIA Linux X11 Settings Utility"
10     HOMEPAGE="http://www.nvidia.com/"
11     SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.bz2"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16     IUSE="examples"
17    
18     COMMON_DEPEND="x11-libs/libX11
19     x11-libs/libXext
20     x11-libs/libXxf86vm
21     x11-libs/gtk+:2
22     x11-libs/gdk-pixbuf[X]
23     media-libs/mesa
24     x11-libs/pango[X]
25     x11-libs/libXv
26     x11-libs/libXrandr
27     dev-libs/glib:2"
28    
29     RDEPEND="=x11-drivers/nvidia-drivers-3*
30     ${COMMON_DEPEND}"
31     DEPEND="${RDEPEND}
32     virtual/pkgconfig
33     x11-proto/xproto"
34    
35     src_compile() {
36     einfo "Building libXNVCtrl..."
37     emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
38     emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
39    
40     einfo "Building nvidia-settings..."
41     emake -C src/ CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD="$(type -P true)" NV_VERBOSE=1
42     }
43    
44     src_install() {
45     emake -C src/ DESTDIR="${D}" PREFIX=/usr install
46    
47     insinto /usr/$(get_libdir)
48     doins src/libXNVCtrl/libXNVCtrl.a
49    
50     insinto /usr/include/NVCtrl
51     doins src/libXNVCtrl/*.h
52    
53     # doicon doc/${PN}.png # Installed through nvidia-drivers
54     make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Settings
55    
56     # bug 412569 - Installed through nvidia-drivers
57     # rm -rf "${D}"/usr/share/man
58    
59     dodoc doc/*.txt
60    
61     if use examples; then
62     docinto examples/
63     dodoc samples/*.c
64     dodoc samples/README
65     fi
66     }

  ViewVC Help
Powered by ViewVC 1.1.20